1. Packages
  2. Dome9 Provider
  3. API Docs
  4. CloudaccountAzure
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.CloudaccountAzure

Explore with Pulumi AI

dome9 logo
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

    This resource is used to onboard Azure cloud accounts to Dome9. This is the first and pre-requisite step in order to apply Dome9 features, such as compliance testing, on the account.

    Example Usage

    Basic usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as dome9 from "@pulumi/dome9";
    
    const test = new dome9.CloudaccountAzure("test", {
        clientId: "CLIENT ID",
        clientPassword: "CLIENT PASSWORD",
        operationMode: "OPERATION MODE",
        organizationalUnitId: "ORGANIZATIONAL UNIT ID",
        subscriptionId: "SUBSCRIPTION ID",
        tenantId: "TENANT ID",
    });
    
    import pulumi
    import pulumi_dome9 as dome9
    
    test = dome9.CloudaccountAzure("test",
        client_id="CLIENT ID",
        client_password="CLIENT PASSWORD",
        operation_mode="OPERATION MODE",
        organizational_unit_id="ORGANIZATIONAL UNIT ID",
        subscription_id="SUBSCRIPTION ID",
        tenant_id="TENANT ID")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dome9.NewCloudaccountAzure(ctx, "test", &dome9.CloudaccountAzureArgs{
    			ClientId:             pulumi.String("CLIENT ID"),
    			ClientPassword:       pulumi.String("CLIENT PASSWORD"),
    			OperationMode:        pulumi.String("OPERATION MODE"),
    			OrganizationalUnitId: pulumi.String("ORGANIZATIONAL UNIT ID"),
    			SubscriptionId:       pulumi.String("SUBSCRIPTION ID"),
    			TenantId:             pulumi.String("TENANT ID"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dome9 = Pulumi.Dome9;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Dome9.CloudaccountAzure("test", new()
        {
            ClientId = "CLIENT ID",
            ClientPassword = "CLIENT PASSWORD",
            OperationMode = "OPERATION MODE",
            OrganizationalUnitId = "ORGANIZATIONAL UNIT ID",
            SubscriptionId = "SUBSCRIPTION ID",
            TenantId = "TENANT ID",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dome9.CloudaccountAzure;
    import com.pulumi.dome9.CloudaccountAzureArgs;
    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) {
            var test = new CloudaccountAzure("test", CloudaccountAzureArgs.builder()
                .clientId("CLIENT ID")
                .clientPassword("CLIENT PASSWORD")
                .operationMode("OPERATION MODE")
                .organizationalUnitId("ORGANIZATIONAL UNIT ID")
                .subscriptionId("SUBSCRIPTION ID")
                .tenantId("TENANT ID")
                .build());
    
        }
    }
    
    resources:
      test:
        type: dome9:CloudaccountAzure
        properties:
          clientId: CLIENT ID
          clientPassword: CLIENT PASSWORD
          operationMode: OPERATION MODE
          organizationalUnitId: ORGANIZATIONAL UNIT ID
          subscriptionId: SUBSCRIPTION ID
          tenantId: TENANT ID
    

    Create CloudaccountAzure Resource

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

    Constructor syntax

    new CloudaccountAzure(name: string, args: CloudaccountAzureArgs, opts?: CustomResourceOptions);
    @overload
    def CloudaccountAzure(resource_name: str,
                          args: CloudaccountAzureArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudaccountAzure(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          client_id: Optional[str] = None,
                          client_password: Optional[str] = None,
                          operation_mode: Optional[str] = None,
                          subscription_id: Optional[str] = None,
                          tenant_id: Optional[str] = None,
                          cloudaccount_azure_id: Optional[str] = None,
                          name: Optional[str] = None,
                          organizational_unit_id: Optional[str] = None,
                          vendor: Optional[str] = None)
    func NewCloudaccountAzure(ctx *Context, name string, args CloudaccountAzureArgs, opts ...ResourceOption) (*CloudaccountAzure, error)
    public CloudaccountAzure(string name, CloudaccountAzureArgs args, CustomResourceOptions? opts = null)
    public CloudaccountAzure(String name, CloudaccountAzureArgs args)
    public CloudaccountAzure(String name, CloudaccountAzureArgs args, CustomResourceOptions options)
    
    type: dome9:CloudaccountAzure
    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 CloudaccountAzureArgs
    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 CloudaccountAzureArgs
    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 CloudaccountAzureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudaccountAzureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudaccountAzureArgs
    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 cloudaccountAzureResource = new Dome9.CloudaccountAzure("cloudaccountAzureResource", new()
    {
        ClientId = "string",
        ClientPassword = "string",
        OperationMode = "string",
        SubscriptionId = "string",
        TenantId = "string",
        CloudaccountAzureId = "string",
        Name = "string",
        OrganizationalUnitId = "string",
        Vendor = "string",
    });
    
    example, err := dome9.NewCloudaccountAzure(ctx, "cloudaccountAzureResource", &dome9.CloudaccountAzureArgs{
    	ClientId:             pulumi.String("string"),
    	ClientPassword:       pulumi.String("string"),
    	OperationMode:        pulumi.String("string"),
    	SubscriptionId:       pulumi.String("string"),
    	TenantId:             pulumi.String("string"),
    	CloudaccountAzureId:  pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	OrganizationalUnitId: pulumi.String("string"),
    	Vendor:               pulumi.String("string"),
    })
    
    var cloudaccountAzureResource = new CloudaccountAzure("cloudaccountAzureResource", CloudaccountAzureArgs.builder()
        .clientId("string")
        .clientPassword("string")
        .operationMode("string")
        .subscriptionId("string")
        .tenantId("string")
        .cloudaccountAzureId("string")
        .name("string")
        .organizationalUnitId("string")
        .vendor("string")
        .build());
    
    cloudaccount_azure_resource = dome9.CloudaccountAzure("cloudaccountAzureResource",
        client_id="string",
        client_password="string",
        operation_mode="string",
        subscription_id="string",
        tenant_id="string",
        cloudaccount_azure_id="string",
        name="string",
        organizational_unit_id="string",
        vendor="string")
    
    const cloudaccountAzureResource = new dome9.CloudaccountAzure("cloudaccountAzureResource", {
        clientId: "string",
        clientPassword: "string",
        operationMode: "string",
        subscriptionId: "string",
        tenantId: "string",
        cloudaccountAzureId: "string",
        name: "string",
        organizationalUnitId: "string",
        vendor: "string",
    });
    
    type: dome9:CloudaccountAzure
    properties:
        clientId: string
        clientPassword: string
        cloudaccountAzureId: string
        name: string
        operationMode: string
        organizationalUnitId: string
        subscriptionId: string
        tenantId: string
        vendor: string
    

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

    ClientId string
    Azure account id
    ClientPassword string
    Password for account*
    OperationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    SubscriptionId string
    The Azure subscription id for account
    TenantId string
    The Azure tenant id
    CloudaccountAzureId string
    The ID of the Azure cloud account
    Name string
    The name of the Azure account in Dome9
    OrganizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    Vendor string
    The cloud provider ("Azure")
    ClientId string
    Azure account id
    ClientPassword string
    Password for account*
    OperationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    SubscriptionId string
    The Azure subscription id for account
    TenantId string
    The Azure tenant id
    CloudaccountAzureId string
    The ID of the Azure cloud account
    Name string
    The name of the Azure account in Dome9
    OrganizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    Vendor string
    The cloud provider ("Azure")
    clientId String
    Azure account id
    clientPassword String
    Password for account*
    operationMode String
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    subscriptionId String
    The Azure subscription id for account
    tenantId String
    The Azure tenant id
    cloudaccountAzureId String
    The ID of the Azure cloud account
    name String
    The name of the Azure account in Dome9
    organizationalUnitId String
    Organizational Unit that this cloud account will be attached to
    vendor String
    The cloud provider ("Azure")
    clientId string
    Azure account id
    clientPassword string
    Password for account*
    operationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    subscriptionId string
    The Azure subscription id for account
    tenantId string
    The Azure tenant id
    cloudaccountAzureId string
    The ID of the Azure cloud account
    name string
    The name of the Azure account in Dome9
    organizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    vendor string
    The cloud provider ("Azure")
    client_id str
    Azure account id
    client_password str
    Password for account*
    operation_mode str
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    subscription_id str
    The Azure subscription id for account
    tenant_id str
    The Azure tenant id
    cloudaccount_azure_id str
    The ID of the Azure cloud account
    name str
    The name of the Azure account in Dome9
    organizational_unit_id str
    Organizational Unit that this cloud account will be attached to
    vendor str
    The cloud provider ("Azure")
    clientId String
    Azure account id
    clientPassword String
    Password for account*
    operationMode String
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    subscriptionId String
    The Azure subscription id for account
    tenantId String
    The Azure tenant id
    cloudaccountAzureId String
    The ID of the Azure cloud account
    name String
    The name of the Azure account in Dome9
    organizationalUnitId String
    Organizational Unit that this cloud account will be attached to
    vendor String
    The cloud provider ("Azure")

    Outputs

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

    CreationDate string
    Date the account was onboarded to Dome9
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationalUnitName string
    Organizational unit name
    OrganizationalUnitPath string
    Organizational unit path
    CreationDate string
    Date the account was onboarded to Dome9
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationalUnitName string
    Organizational unit name
    OrganizationalUnitPath string
    Organizational unit path
    creationDate String
    Date the account was onboarded to Dome9
    id String
    The provider-assigned unique ID for this managed resource.
    organizationalUnitName String
    Organizational unit name
    organizationalUnitPath String
    Organizational unit path
    creationDate string
    Date the account was onboarded to Dome9
    id string
    The provider-assigned unique ID for this managed resource.
    organizationalUnitName string
    Organizational unit name
    organizationalUnitPath string
    Organizational unit path
    creation_date str
    Date the account was onboarded to Dome9
    id str
    The provider-assigned unique ID for this managed resource.
    organizational_unit_name str
    Organizational unit name
    organizational_unit_path str
    Organizational unit path
    creationDate String
    Date the account was onboarded to Dome9
    id String
    The provider-assigned unique ID for this managed resource.
    organizationalUnitName String
    Organizational unit name
    organizationalUnitPath String
    Organizational unit path

    Look up Existing CloudaccountAzure Resource

    Get an existing CloudaccountAzure 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?: CloudaccountAzureState, opts?: CustomResourceOptions): CloudaccountAzure
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_id: Optional[str] = None,
            client_password: Optional[str] = None,
            cloudaccount_azure_id: Optional[str] = None,
            creation_date: Optional[str] = None,
            name: Optional[str] = None,
            operation_mode: Optional[str] = None,
            organizational_unit_id: Optional[str] = None,
            organizational_unit_name: Optional[str] = None,
            organizational_unit_path: Optional[str] = None,
            subscription_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            vendor: Optional[str] = None) -> CloudaccountAzure
    func GetCloudaccountAzure(ctx *Context, name string, id IDInput, state *CloudaccountAzureState, opts ...ResourceOption) (*CloudaccountAzure, error)
    public static CloudaccountAzure Get(string name, Input<string> id, CloudaccountAzureState? state, CustomResourceOptions? opts = null)
    public static CloudaccountAzure get(String name, Output<String> id, CloudaccountAzureState state, CustomResourceOptions options)
    resources:  _:    type: dome9:CloudaccountAzure    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:
    ClientId string
    Azure account id
    ClientPassword string
    Password for account*
    CloudaccountAzureId string
    The ID of the Azure cloud account
    CreationDate string
    Date the account was onboarded to Dome9
    Name string
    The name of the Azure account in Dome9
    OperationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    OrganizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    OrganizationalUnitName string
    Organizational unit name
    OrganizationalUnitPath string
    Organizational unit path
    SubscriptionId string
    The Azure subscription id for account
    TenantId string
    The Azure tenant id
    Vendor string
    The cloud provider ("Azure")
    ClientId string
    Azure account id
    ClientPassword string
    Password for account*
    CloudaccountAzureId string
    The ID of the Azure cloud account
    CreationDate string
    Date the account was onboarded to Dome9
    Name string
    The name of the Azure account in Dome9
    OperationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    OrganizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    OrganizationalUnitName string
    Organizational unit name
    OrganizationalUnitPath string
    Organizational unit path
    SubscriptionId string
    The Azure subscription id for account
    TenantId string
    The Azure tenant id
    Vendor string
    The cloud provider ("Azure")
    clientId String
    Azure account id
    clientPassword String
    Password for account*
    cloudaccountAzureId String
    The ID of the Azure cloud account
    creationDate String
    Date the account was onboarded to Dome9
    name String
    The name of the Azure account in Dome9
    operationMode String
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    organizationalUnitId String
    Organizational Unit that this cloud account will be attached to
    organizationalUnitName String
    Organizational unit name
    organizationalUnitPath String
    Organizational unit path
    subscriptionId String
    The Azure subscription id for account
    tenantId String
    The Azure tenant id
    vendor String
    The cloud provider ("Azure")
    clientId string
    Azure account id
    clientPassword string
    Password for account*
    cloudaccountAzureId string
    The ID of the Azure cloud account
    creationDate string
    Date the account was onboarded to Dome9
    name string
    The name of the Azure account in Dome9
    operationMode string
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    organizationalUnitId string
    Organizational Unit that this cloud account will be attached to
    organizationalUnitName string
    Organizational unit name
    organizationalUnitPath string
    Organizational unit path
    subscriptionId string
    The Azure subscription id for account
    tenantId string
    The Azure tenant id
    vendor string
    The cloud provider ("Azure")
    client_id str
    Azure account id
    client_password str
    Password for account*
    cloudaccount_azure_id str
    The ID of the Azure cloud account
    creation_date str
    Date the account was onboarded to Dome9
    name str
    The name of the Azure account in Dome9
    operation_mode str
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    organizational_unit_id str
    Organizational Unit that this cloud account will be attached to
    organizational_unit_name str
    Organizational unit name
    organizational_unit_path str
    Organizational unit path
    subscription_id str
    The Azure subscription id for account
    tenant_id str
    The Azure tenant id
    vendor str
    The cloud provider ("Azure")
    clientId String
    Azure account id
    clientPassword String
    Password for account*
    cloudaccountAzureId String
    The ID of the Azure cloud account
    creationDate String
    Date the account was onboarded to Dome9
    name String
    The name of the Azure account in Dome9
    operationMode String
    Dome9 operation mode for the Azure account ("Read" or "Manage")
    organizationalUnitId String
    Organizational Unit that this cloud account will be attached to
    organizationalUnitName String
    Organizational unit name
    organizationalUnitPath String
    Organizational unit path
    subscriptionId String
    The Azure subscription id for account
    tenantId String
    The Azure tenant id
    vendor String
    The cloud provider ("Azure")

    Import

    Azure cloud account can be imported; use <Azure CLOUD ACCOUNT ID> as the import ID.

    For example:

    $ pulumi import dome9:index/cloudaccountAzure:CloudaccountAzure test 00000000-0000-0000-0000-000000000000
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    dome9 dome9/terraform-provider-dome9
    License
    Notes
    This Pulumi package is based on the dome9 Terraform Provider.
    dome9 logo
    dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9