1. Packages
  2. Grafana Cloud
  3. API Docs
  4. CloudStackServiceAccountToken
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

grafana.CloudStackServiceAccountToken

Explore with Pulumi AI

grafana logo
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

    Create CloudStackServiceAccountToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudStackServiceAccountToken(name: string, args: CloudStackServiceAccountTokenArgs, opts?: CustomResourceOptions);
    @overload
    def CloudStackServiceAccountToken(resource_name: str,
                                      args: CloudStackServiceAccountTokenArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudStackServiceAccountToken(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      service_account_id: Optional[str] = None,
                                      stack_slug: Optional[str] = None,
                                      name: Optional[str] = None,
                                      seconds_to_live: Optional[int] = None)
    func NewCloudStackServiceAccountToken(ctx *Context, name string, args CloudStackServiceAccountTokenArgs, opts ...ResourceOption) (*CloudStackServiceAccountToken, error)
    public CloudStackServiceAccountToken(string name, CloudStackServiceAccountTokenArgs args, CustomResourceOptions? opts = null)
    public CloudStackServiceAccountToken(String name, CloudStackServiceAccountTokenArgs args)
    public CloudStackServiceAccountToken(String name, CloudStackServiceAccountTokenArgs args, CustomResourceOptions options)
    
    type: grafana:CloudStackServiceAccountToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CloudStackServiceAccountTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudStackServiceAccountTokenArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudStackServiceAccountTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudStackServiceAccountTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudStackServiceAccountTokenArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var cloudStackServiceAccountTokenResource = new Grafana.CloudStackServiceAccountToken("cloudStackServiceAccountTokenResource", new()
    {
        ServiceAccountId = "string",
        StackSlug = "string",
        Name = "string",
        SecondsToLive = 0,
    });
    
    example, err := grafana.NewCloudStackServiceAccountToken(ctx, "cloudStackServiceAccountTokenResource", &grafana.CloudStackServiceAccountTokenArgs{
    	ServiceAccountId: pulumi.String("string"),
    	StackSlug:        pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	SecondsToLive:    pulumi.Int(0),
    })
    
    var cloudStackServiceAccountTokenResource = new CloudStackServiceAccountToken("cloudStackServiceAccountTokenResource", CloudStackServiceAccountTokenArgs.builder()        
        .serviceAccountId("string")
        .stackSlug("string")
        .name("string")
        .secondsToLive(0)
        .build());
    
    cloud_stack_service_account_token_resource = grafana.CloudStackServiceAccountToken("cloudStackServiceAccountTokenResource",
        service_account_id="string",
        stack_slug="string",
        name="string",
        seconds_to_live=0)
    
    const cloudStackServiceAccountTokenResource = new grafana.CloudStackServiceAccountToken("cloudStackServiceAccountTokenResource", {
        serviceAccountId: "string",
        stackSlug: "string",
        name: "string",
        secondsToLive: 0,
    });
    
    type: grafana:CloudStackServiceAccountToken
    properties:
        name: string
        secondsToLive: 0
        serviceAccountId: string
        stackSlug: string
    

    CloudStackServiceAccountToken Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CloudStackServiceAccountToken resource accepts the following input properties:

    serviceAccountId String
    stackSlug String
    name String
    secondsToLive Integer
    serviceAccountId string
    stackSlug string
    name string
    secondsToLive number
    serviceAccountId String
    stackSlug String
    name String
    secondsToLive Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudStackServiceAccountToken resource produces the following output properties:

    Expiration string
    HasExpired bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Expiration string
    HasExpired bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    expiration String
    hasExpired Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    expiration string
    hasExpired boolean
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    expiration str
    has_expired bool
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    expiration String
    hasExpired Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    key String

    Look up Existing CloudStackServiceAccountToken Resource

    Get an existing CloudStackServiceAccountToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudStackServiceAccountTokenState, opts?: CustomResourceOptions): CloudStackServiceAccountToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            expiration: Optional[str] = None,
            has_expired: Optional[bool] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            seconds_to_live: Optional[int] = None,
            service_account_id: Optional[str] = None,
            stack_slug: Optional[str] = None) -> CloudStackServiceAccountToken
    func GetCloudStackServiceAccountToken(ctx *Context, name string, id IDInput, state *CloudStackServiceAccountTokenState, opts ...ResourceOption) (*CloudStackServiceAccountToken, error)
    public static CloudStackServiceAccountToken Get(string name, Input<string> id, CloudStackServiceAccountTokenState? state, CustomResourceOptions? opts = null)
    public static CloudStackServiceAccountToken get(String name, Output<String> id, CloudStackServiceAccountTokenState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Expiration string
    HasExpired bool
    Key string
    Name string
    SecondsToLive int
    ServiceAccountId string
    StackSlug string
    Expiration string
    HasExpired bool
    Key string
    Name string
    SecondsToLive int
    ServiceAccountId string
    StackSlug string
    expiration String
    hasExpired Boolean
    key String
    name String
    secondsToLive Integer
    serviceAccountId String
    stackSlug String
    expiration string
    hasExpired boolean
    key string
    name string
    secondsToLive number
    serviceAccountId string
    stackSlug string
    expiration String
    hasExpired Boolean
    key String
    name String
    secondsToLive Number
    serviceAccountId String
    stackSlug String

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse