1. Packages
  2. Spotinst Provider
  3. API Docs
  4. CredentialsAzure
Spotinst v3.110.0 published on Thursday, Feb 6, 2025 by Pulumi

spotinst.CredentialsAzure

Explore with Pulumi AI

spotinst logo
Spotinst v3.110.0 published on Thursday, Feb 6, 2025 by Pulumi

    Provides a Spotinst credential Azure resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spotinst from "@pulumi/spotinst";
    
    // set credential Azure
    const credential = new spotinst.CredentialsAzure("credential", {
        accountId: "act-123456",
        clientId: "redacted",
        clientSecret: "redacted",
        tenantId: "redacted",
        subscriptionId: "redacted",
    });
    
    import pulumi
    import pulumi_spotinst as spotinst
    
    # set credential Azure
    credential = spotinst.CredentialsAzure("credential",
        account_id="act-123456",
        client_id="redacted",
        client_secret="redacted",
        tenant_id="redacted",
        subscription_id="redacted")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// set credential Azure
    		_, err := spotinst.NewCredentialsAzure(ctx, "credential", &spotinst.CredentialsAzureArgs{
    			AccountId:      pulumi.String("act-123456"),
    			ClientId:       pulumi.String("redacted"),
    			ClientSecret:   pulumi.String("redacted"),
    			TenantId:       pulumi.String("redacted"),
    			SubscriptionId: pulumi.String("redacted"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SpotInst = Pulumi.SpotInst;
    
    return await Deployment.RunAsync(() => 
    {
        // set credential Azure
        var credential = new SpotInst.CredentialsAzure("credential", new()
        {
            AccountId = "act-123456",
            ClientId = "redacted",
            ClientSecret = "redacted",
            TenantId = "redacted",
            SubscriptionId = "redacted",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spotinst.CredentialsAzure;
    import com.pulumi.spotinst.CredentialsAzureArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // set credential Azure
            var credential = new CredentialsAzure("credential", CredentialsAzureArgs.builder()
                .accountId("act-123456")
                .clientId("redacted")
                .clientSecret("redacted")
                .tenantId("redacted")
                .subscriptionId("redacted")
                .build());
    
        }
    }
    
    resources:
      # set credential Azure
      credential:
        type: spotinst:CredentialsAzure
        properties:
          accountId: act-123456
          clientId: redacted
          clientSecret: redacted
          tenantId: redacted
          subscriptionId: redacted
    

    Create CredentialsAzure Resource

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

    Constructor syntax

    new CredentialsAzure(name: string, args: CredentialsAzureArgs, opts?: CustomResourceOptions);
    @overload
    def CredentialsAzure(resource_name: str,
                         args: CredentialsAzureArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CredentialsAzure(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_id: Optional[str] = None,
                         client_id: Optional[str] = None,
                         client_secret: Optional[str] = None,
                         subscription_id: Optional[str] = None,
                         tenant_id: Optional[str] = None)
    func NewCredentialsAzure(ctx *Context, name string, args CredentialsAzureArgs, opts ...ResourceOption) (*CredentialsAzure, error)
    public CredentialsAzure(string name, CredentialsAzureArgs args, CustomResourceOptions? opts = null)
    public CredentialsAzure(String name, CredentialsAzureArgs args)
    public CredentialsAzure(String name, CredentialsAzureArgs args, CustomResourceOptions options)
    
    type: spotinst:CredentialsAzure
    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 CredentialsAzureArgs
    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 CredentialsAzureArgs
    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 CredentialsAzureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CredentialsAzureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CredentialsAzureArgs
    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 credentialsAzureResource = new SpotInst.CredentialsAzure("credentialsAzureResource", new()
    {
        AccountId = "string",
        ClientId = "string",
        ClientSecret = "string",
        SubscriptionId = "string",
        TenantId = "string",
    });
    
    example, err := spotinst.NewCredentialsAzure(ctx, "credentialsAzureResource", &spotinst.CredentialsAzureArgs{
    	AccountId:      pulumi.String("string"),
    	ClientId:       pulumi.String("string"),
    	ClientSecret:   pulumi.String("string"),
    	SubscriptionId: pulumi.String("string"),
    	TenantId:       pulumi.String("string"),
    })
    
    var credentialsAzureResource = new CredentialsAzure("credentialsAzureResource", CredentialsAzureArgs.builder()
        .accountId("string")
        .clientId("string")
        .clientSecret("string")
        .subscriptionId("string")
        .tenantId("string")
        .build());
    
    credentials_azure_resource = spotinst.CredentialsAzure("credentialsAzureResource",
        account_id="string",
        client_id="string",
        client_secret="string",
        subscription_id="string",
        tenant_id="string")
    
    const credentialsAzureResource = new spotinst.CredentialsAzure("credentialsAzureResource", {
        accountId: "string",
        clientId: "string",
        clientSecret: "string",
        subscriptionId: "string",
        tenantId: "string",
    });
    
    type: spotinst:CredentialsAzure
    properties:
        accountId: string
        clientId: string
        clientSecret: string
        subscriptionId: string
        tenantId: string
    

    CredentialsAzure Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CredentialsAzure resource accepts the following input properties:

    AccountId string
    The ID of the account associated with your token.
    ClientId string
    Set the application ID.
    ClientSecret string
    Set the key secret.
    SubscriptionId string
    Set the subscription ID.
    TenantId string
    Set the directory ID.
    AccountId string
    The ID of the account associated with your token.
    ClientId string
    Set the application ID.
    ClientSecret string
    Set the key secret.
    SubscriptionId string
    Set the subscription ID.
    TenantId string
    Set the directory ID.
    accountId String
    The ID of the account associated with your token.
    clientId String
    Set the application ID.
    clientSecret String
    Set the key secret.
    subscriptionId String
    Set the subscription ID.
    tenantId String
    Set the directory ID.
    accountId string
    The ID of the account associated with your token.
    clientId string
    Set the application ID.
    clientSecret string
    Set the key secret.
    subscriptionId string
    Set the subscription ID.
    tenantId string
    Set the directory ID.
    account_id str
    The ID of the account associated with your token.
    client_id str
    Set the application ID.
    client_secret str
    Set the key secret.
    subscription_id str
    Set the subscription ID.
    tenant_id str
    Set the directory ID.
    accountId String
    The ID of the account associated with your token.
    clientId String
    Set the application ID.
    clientSecret String
    Set the key secret.
    subscriptionId String
    Set the subscription ID.
    tenantId String
    Set the directory ID.

    Outputs

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

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

    Look up Existing CredentialsAzure Resource

    Get an existing CredentialsAzure 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?: CredentialsAzureState, opts?: CustomResourceOptions): CredentialsAzure
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            client_id: Optional[str] = None,
            client_secret: Optional[str] = None,
            subscription_id: Optional[str] = None,
            tenant_id: Optional[str] = None) -> CredentialsAzure
    func GetCredentialsAzure(ctx *Context, name string, id IDInput, state *CredentialsAzureState, opts ...ResourceOption) (*CredentialsAzure, error)
    public static CredentialsAzure Get(string name, Input<string> id, CredentialsAzureState? state, CustomResourceOptions? opts = null)
    public static CredentialsAzure get(String name, Output<String> id, CredentialsAzureState state, CustomResourceOptions options)
    resources:  _:    type: spotinst:CredentialsAzure    get:      id: ${id}
    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:
    AccountId string
    The ID of the account associated with your token.
    ClientId string
    Set the application ID.
    ClientSecret string
    Set the key secret.
    SubscriptionId string
    Set the subscription ID.
    TenantId string
    Set the directory ID.
    AccountId string
    The ID of the account associated with your token.
    ClientId string
    Set the application ID.
    ClientSecret string
    Set the key secret.
    SubscriptionId string
    Set the subscription ID.
    TenantId string
    Set the directory ID.
    accountId String
    The ID of the account associated with your token.
    clientId String
    Set the application ID.
    clientSecret String
    Set the key secret.
    subscriptionId String
    Set the subscription ID.
    tenantId String
    Set the directory ID.
    accountId string
    The ID of the account associated with your token.
    clientId string
    Set the application ID.
    clientSecret string
    Set the key secret.
    subscriptionId string
    Set the subscription ID.
    tenantId string
    Set the directory ID.
    account_id str
    The ID of the account associated with your token.
    client_id str
    Set the application ID.
    client_secret str
    Set the key secret.
    subscription_id str
    Set the subscription ID.
    tenant_id str
    Set the directory ID.
    accountId String
    The ID of the account associated with your token.
    clientId String
    Set the application ID.
    clientSecret String
    Set the key secret.
    subscriptionId String
    Set the subscription ID.
    tenantId String
    Set the directory ID.

    Package Details

    Repository
    Spotinst pulumi/pulumi-spotinst
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the spotinst Terraform Provider.
    spotinst logo
    Spotinst v3.110.0 published on Thursday, Feb 6, 2025 by Pulumi