Class AccessServiceToken
Access Service Tokens are used for service-to-service communication when an application is behind Cloudflare Access.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var myApp = new Cloudflare.AccessServiceToken("myApp", new Cloudflare.AccessServiceTokenArgs
{
AccountId = "d41d8cd98f00b204e9800998ecf8427e",
Name = "CI/CD app",
});
}
}
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class AccessServiceToken : CustomResource
Constructors
View SourceAccessServiceToken(String, AccessServiceTokenArgs, CustomResourceOptions)
Create a AccessServiceToken resource with the given unique name, arguments, and options.
Declaration
public AccessServiceToken(string name, AccessServiceTokenArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccessServiceTokenArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountId
The ID of the account where the Access Service is being created.
Declaration
public Output<string> AccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientId
UUID client ID associated with the Service Token.
Declaration
public Output<string> ClientId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientSecret
A secret for interacting with Access protocols.
Declaration
public Output<string> ClientSecret { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Friendly name of the token's intent.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AccessServiceTokenState, CustomResourceOptions)
Get an existing AccessServiceToken resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccessServiceToken Get(string name, Input<string> id, AccessServiceTokenState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccessServiceTokenState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccessServiceToken |