1. Packages
  2. Grafana Cloud
  3. API Docs
  4. CloudStackApiKey
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.CloudStackApiKey

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Create CloudStackApiKey Resource

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

    Constructor syntax

    new CloudStackApiKey(name: string, args: CloudStackApiKeyArgs, opts?: CustomResourceOptions);
    @overload
    def CloudStackApiKey(resource_name: str,
                         args: CloudStackApiKeyArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudStackApiKey(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         role: Optional[str] = None,
                         stack_slug: Optional[str] = None,
                         name: Optional[str] = None,
                         seconds_to_live: Optional[int] = None)
    func NewCloudStackApiKey(ctx *Context, name string, args CloudStackApiKeyArgs, opts ...ResourceOption) (*CloudStackApiKey, error)
    public CloudStackApiKey(string name, CloudStackApiKeyArgs args, CustomResourceOptions? opts = null)
    public CloudStackApiKey(String name, CloudStackApiKeyArgs args)
    public CloudStackApiKey(String name, CloudStackApiKeyArgs args, CustomResourceOptions options)
    
    type: grafana:CloudStackApiKey
    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 CloudStackApiKeyArgs
    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 CloudStackApiKeyArgs
    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 CloudStackApiKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudStackApiKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudStackApiKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var cloudStackApiKeyResource = new Grafana.CloudStackApiKey("cloudStackApiKeyResource", new()
    {
        Role = "string",
        StackSlug = "string",
        Name = "string",
        SecondsToLive = 0,
    });
    
    example, err := grafana.NewCloudStackApiKey(ctx, "cloudStackApiKeyResource", &grafana.CloudStackApiKeyArgs{
    	Role:          pulumi.String("string"),
    	StackSlug:     pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	SecondsToLive: pulumi.Int(0),
    })
    
    var cloudStackApiKeyResource = new CloudStackApiKey("cloudStackApiKeyResource", CloudStackApiKeyArgs.builder()
        .role("string")
        .stackSlug("string")
        .name("string")
        .secondsToLive(0)
        .build());
    
    cloud_stack_api_key_resource = grafana.CloudStackApiKey("cloudStackApiKeyResource",
        role="string",
        stack_slug="string",
        name="string",
        seconds_to_live=0)
    
    const cloudStackApiKeyResource = new grafana.CloudStackApiKey("cloudStackApiKeyResource", {
        role: "string",
        stackSlug: "string",
        name: "string",
        secondsToLive: 0,
    });
    
    type: grafana:CloudStackApiKey
    properties:
        name: string
        role: string
        secondsToLive: 0
        stackSlug: string
    

    CloudStackApiKey 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 CloudStackApiKey resource accepts the following input properties:

    Role string
    StackSlug string
    Name string
    SecondsToLive int
    Role string
    StackSlug string
    Name string
    SecondsToLive int
    role String
    stackSlug String
    name String
    secondsToLive Integer
    role string
    stackSlug string
    name string
    secondsToLive number
    role String
    stackSlug String
    name String
    secondsToLive Number

    Outputs

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

    Expiration string
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Expiration string
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    expiration String
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    expiration string
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    expiration str
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    expiration String
    id String
    The provider-assigned unique ID for this managed resource.
    key String

    Look up Existing CloudStackApiKey Resource

    Get an existing CloudStackApiKey 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?: CloudStackApiKeyState, opts?: CustomResourceOptions): CloudStackApiKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            expiration: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            role: Optional[str] = None,
            seconds_to_live: Optional[int] = None,
            stack_slug: Optional[str] = None) -> CloudStackApiKey
    func GetCloudStackApiKey(ctx *Context, name string, id IDInput, state *CloudStackApiKeyState, opts ...ResourceOption) (*CloudStackApiKey, error)
    public static CloudStackApiKey Get(string name, Input<string> id, CloudStackApiKeyState? state, CustomResourceOptions? opts = null)
    public static CloudStackApiKey get(String name, Output<String> id, CloudStackApiKeyState 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
    Key string
    Name string
    Role string
    SecondsToLive int
    StackSlug string
    Expiration string
    Key string
    Name string
    Role string
    SecondsToLive int
    StackSlug string
    expiration String
    key String
    name String
    role String
    secondsToLive Integer
    stackSlug String
    expiration string
    key string
    name string
    role string
    secondsToLive number
    stackSlug string
    expiration String
    key String
    name String
    role String
    secondsToLive Number
    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.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse