dome9.CloudaccountAzure
Explore with Pulumi AI
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:
- Client
Id string - Azure account id
- Client
Password string - Password for account*
- Operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- Subscription
Id string - The Azure subscription id for account
- Tenant
Id string - The Azure tenant id
- Cloudaccount
Azure stringId - The ID of the Azure cloud account
- Name string
- The name of the Azure account in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Vendor string
- The cloud provider ("Azure")
- Client
Id string - Azure account id
- Client
Password string - Password for account*
- Operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- Subscription
Id string - The Azure subscription id for account
- Tenant
Id string - The Azure tenant id
- Cloudaccount
Azure stringId - The ID of the Azure cloud account
- Name string
- The name of the Azure account in Dome9
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Vendor string
- The cloud provider ("Azure")
- client
Id String - Azure account id
- client
Password String - Password for account*
- operation
Mode String - Dome9 operation mode for the Azure account ("Read" or "Manage")
- subscription
Id String - The Azure subscription id for account
- tenant
Id String - The Azure tenant id
- cloudaccount
Azure StringId - The ID of the Azure cloud account
- name String
- The name of the Azure account in Dome9
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- vendor String
- The cloud provider ("Azure")
- client
Id string - Azure account id
- client
Password string - Password for account*
- operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- subscription
Id string - The Azure subscription id for account
- tenant
Id string - The Azure tenant id
- cloudaccount
Azure stringId - The ID of the Azure cloud account
- name string
- The name of the Azure account in Dome9
- organizational
Unit stringId - 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_ strid - The ID of the Azure cloud account
- name str
- The name of the Azure account in Dome9
- organizational_
unit_ strid - Organizational Unit that this cloud account will be attached to
- vendor str
- The cloud provider ("Azure")
- client
Id String - Azure account id
- client
Password String - Password for account*
- operation
Mode String - Dome9 operation mode for the Azure account ("Read" or "Manage")
- subscription
Id String - The Azure subscription id for account
- tenant
Id String - The Azure tenant id
- cloudaccount
Azure StringId - The ID of the Azure cloud account
- name String
- The name of the Azure account in Dome9
- organizational
Unit StringId - 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:
- Creation
Date string - Date the account was onboarded to Dome9
- Id string
- The provider-assigned unique ID for this managed resource.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Creation
Date string - Date the account was onboarded to Dome9
- Id string
- The provider-assigned unique ID for this managed resource.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- creation
Date String - Date the account was onboarded to Dome9
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- creation
Date string - Date the account was onboarded to Dome9
- id string
- The provider-assigned unique ID for this managed resource.
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - 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_ strname - Organizational unit name
- organizational_
unit_ strpath - Organizational unit path
- creation
Date String - Date the account was onboarded to Dome9
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - 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.
- Client
Id string - Azure account id
- Client
Password string - Password for account*
- Cloudaccount
Azure stringId - The ID of the Azure cloud account
- Creation
Date string - Date the account was onboarded to Dome9
- Name string
- The name of the Azure account in Dome9
- Operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Subscription
Id string - The Azure subscription id for account
- Tenant
Id string - The Azure tenant id
- Vendor string
- The cloud provider ("Azure")
- Client
Id string - Azure account id
- Client
Password string - Password for account*
- Cloudaccount
Azure stringId - The ID of the Azure cloud account
- Creation
Date string - Date the account was onboarded to Dome9
- Name string
- The name of the Azure account in Dome9
- Operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- Organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Subscription
Id string - The Azure subscription id for account
- Tenant
Id string - The Azure tenant id
- Vendor string
- The cloud provider ("Azure")
- client
Id String - Azure account id
- client
Password String - Password for account*
- cloudaccount
Azure StringId - The ID of the Azure cloud account
- creation
Date String - Date the account was onboarded to Dome9
- name String
- The name of the Azure account in Dome9
- operation
Mode String - Dome9 operation mode for the Azure account ("Read" or "Manage")
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- subscription
Id String - The Azure subscription id for account
- tenant
Id String - The Azure tenant id
- vendor String
- The cloud provider ("Azure")
- client
Id string - Azure account id
- client
Password string - Password for account*
- cloudaccount
Azure stringId - The ID of the Azure cloud account
- creation
Date string - Date the account was onboarded to Dome9
- name string
- The name of the Azure account in Dome9
- operation
Mode string - Dome9 operation mode for the Azure account ("Read" or "Manage")
- organizational
Unit stringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - Organizational unit path
- subscription
Id string - The Azure subscription id for account
- tenant
Id 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_ strid - 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_ strid - Organizational Unit that this cloud account will be attached to
- organizational_
unit_ strname - Organizational unit name
- organizational_
unit_ strpath - 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")
- client
Id String - Azure account id
- client
Password String - Password for account*
- cloudaccount
Azure StringId - The ID of the Azure cloud account
- creation
Date String - Date the account was onboarded to Dome9
- name String
- The name of the Azure account in Dome9
- operation
Mode String - Dome9 operation mode for the Azure account ("Read" or "Manage")
- organizational
Unit StringId - Organizational Unit that this cloud account will be attached to
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- subscription
Id String - The Azure subscription id for account
- tenant
Id 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.