mso.Tenant
Explore with Pulumi AI
Create Tenant Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Tenant(name: string, args: TenantArgs, opts?: CustomResourceOptions);
@overload
def Tenant(resource_name: str,
args: TenantArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Tenant(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
orchestrator_only: Optional[bool] = None,
site_associations: Optional[Sequence[TenantSiteAssociationArgs]] = None,
tenant_id: Optional[str] = None,
user_associations: Optional[Sequence[TenantUserAssociationArgs]] = None)
func NewTenant(ctx *Context, name string, args TenantArgs, opts ...ResourceOption) (*Tenant, error)
public Tenant(string name, TenantArgs args, CustomResourceOptions? opts = null)
public Tenant(String name, TenantArgs args)
public Tenant(String name, TenantArgs args, CustomResourceOptions options)
type: mso:Tenant
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 TenantArgs
- 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 TenantArgs
- 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 TenantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantArgs
- 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 tenantResource = new Mso.Tenant("tenantResource", new()
{
DisplayName = "string",
Description = "string",
Name = "string",
OrchestratorOnly = false,
SiteAssociations = new[]
{
new Mso.Inputs.TenantSiteAssociationArgs
{
AwsAccessKeyId = "string",
AwsAccountId = "string",
AwsSecretKey = "string",
AzureAccessType = "string",
AzureActiveDirectoryId = "string",
AzureApplicationId = "string",
AzureClientSecret = "string",
AzureSharedAccountId = "string",
AzureSubscriptionId = "string",
GcpAccessType = "string",
GcpClientId = "string",
GcpEmail = "string",
GcpKeyId = "string",
GcpName = "string",
GcpPrivateKey = "string",
GcpProjectId = "string",
IsAwsAccountTrusted = false,
SecurityDomains = new[]
{
"string",
},
SiteId = "string",
Vendor = "string",
},
},
TenantId = "string",
UserAssociations = new[]
{
new Mso.Inputs.TenantUserAssociationArgs
{
UserId = "string",
},
},
});
example, err := mso.NewTenant(ctx, "tenantResource", &mso.TenantArgs{
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrchestratorOnly: pulumi.Bool(false),
SiteAssociations: mso.TenantSiteAssociationArray{
&mso.TenantSiteAssociationArgs{
AwsAccessKeyId: pulumi.String("string"),
AwsAccountId: pulumi.String("string"),
AwsSecretKey: pulumi.String("string"),
AzureAccessType: pulumi.String("string"),
AzureActiveDirectoryId: pulumi.String("string"),
AzureApplicationId: pulumi.String("string"),
AzureClientSecret: pulumi.String("string"),
AzureSharedAccountId: pulumi.String("string"),
AzureSubscriptionId: pulumi.String("string"),
GcpAccessType: pulumi.String("string"),
GcpClientId: pulumi.String("string"),
GcpEmail: pulumi.String("string"),
GcpKeyId: pulumi.String("string"),
GcpName: pulumi.String("string"),
GcpPrivateKey: pulumi.String("string"),
GcpProjectId: pulumi.String("string"),
IsAwsAccountTrusted: pulumi.Bool(false),
SecurityDomains: pulumi.StringArray{
pulumi.String("string"),
},
SiteId: pulumi.String("string"),
Vendor: pulumi.String("string"),
},
},
TenantId: pulumi.String("string"),
UserAssociations: mso.TenantUserAssociationArray{
&mso.TenantUserAssociationArgs{
UserId: pulumi.String("string"),
},
},
})
var tenantResource = new Tenant("tenantResource", TenantArgs.builder()
.displayName("string")
.description("string")
.name("string")
.orchestratorOnly(false)
.siteAssociations(TenantSiteAssociationArgs.builder()
.awsAccessKeyId("string")
.awsAccountId("string")
.awsSecretKey("string")
.azureAccessType("string")
.azureActiveDirectoryId("string")
.azureApplicationId("string")
.azureClientSecret("string")
.azureSharedAccountId("string")
.azureSubscriptionId("string")
.gcpAccessType("string")
.gcpClientId("string")
.gcpEmail("string")
.gcpKeyId("string")
.gcpName("string")
.gcpPrivateKey("string")
.gcpProjectId("string")
.isAwsAccountTrusted(false)
.securityDomains("string")
.siteId("string")
.vendor("string")
.build())
.tenantId("string")
.userAssociations(TenantUserAssociationArgs.builder()
.userId("string")
.build())
.build());
tenant_resource = mso.Tenant("tenantResource",
display_name="string",
description="string",
name="string",
orchestrator_only=False,
site_associations=[{
"aws_access_key_id": "string",
"aws_account_id": "string",
"aws_secret_key": "string",
"azure_access_type": "string",
"azure_active_directory_id": "string",
"azure_application_id": "string",
"azure_client_secret": "string",
"azure_shared_account_id": "string",
"azure_subscription_id": "string",
"gcp_access_type": "string",
"gcp_client_id": "string",
"gcp_email": "string",
"gcp_key_id": "string",
"gcp_name": "string",
"gcp_private_key": "string",
"gcp_project_id": "string",
"is_aws_account_trusted": False,
"security_domains": ["string"],
"site_id": "string",
"vendor": "string",
}],
tenant_id="string",
user_associations=[{
"user_id": "string",
}])
const tenantResource = new mso.Tenant("tenantResource", {
displayName: "string",
description: "string",
name: "string",
orchestratorOnly: false,
siteAssociations: [{
awsAccessKeyId: "string",
awsAccountId: "string",
awsSecretKey: "string",
azureAccessType: "string",
azureActiveDirectoryId: "string",
azureApplicationId: "string",
azureClientSecret: "string",
azureSharedAccountId: "string",
azureSubscriptionId: "string",
gcpAccessType: "string",
gcpClientId: "string",
gcpEmail: "string",
gcpKeyId: "string",
gcpName: "string",
gcpPrivateKey: "string",
gcpProjectId: "string",
isAwsAccountTrusted: false,
securityDomains: ["string"],
siteId: "string",
vendor: "string",
}],
tenantId: "string",
userAssociations: [{
userId: "string",
}],
});
type: mso:Tenant
properties:
description: string
displayName: string
name: string
orchestratorOnly: false
siteAssociations:
- awsAccessKeyId: string
awsAccountId: string
awsSecretKey: string
azureAccessType: string
azureActiveDirectoryId: string
azureApplicationId: string
azureClientSecret: string
azureSharedAccountId: string
azureSubscriptionId: string
gcpAccessType: string
gcpClientId: string
gcpEmail: string
gcpKeyId: string
gcpName: string
gcpPrivateKey: string
gcpProjectId: string
isAwsAccountTrusted: false
securityDomains:
- string
siteId: string
vendor: string
tenantId: string
userAssociations:
- userId: string
Tenant 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 Tenant resource accepts the following input properties:
- Display
Name string - Description string
- Name string
- Orchestrator
Only bool - Site
Associations List<TenantSite Association> - Tenant
Id string - User
Associations List<TenantUser Association>
- Display
Name string - Description string
- Name string
- Orchestrator
Only bool - Site
Associations []TenantSite Association Args - Tenant
Id string - User
Associations []TenantUser Association Args
- display
Name String - description String
- name String
- orchestrator
Only Boolean - site
Associations List<TenantSite Association> - tenant
Id String - user
Associations List<TenantUser Association>
- display
Name string - description string
- name string
- orchestrator
Only boolean - site
Associations TenantSite Association[] - tenant
Id string - user
Associations TenantUser Association[]
- display
Name String - description String
- name String
- orchestrator
Only Boolean - site
Associations List<Property Map> - tenant
Id String - user
Associations List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Tenant 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 Tenant Resource
Get an existing Tenant 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?: TenantState, opts?: CustomResourceOptions): Tenant
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
orchestrator_only: Optional[bool] = None,
site_associations: Optional[Sequence[TenantSiteAssociationArgs]] = None,
tenant_id: Optional[str] = None,
user_associations: Optional[Sequence[TenantUserAssociationArgs]] = None) -> Tenant
func GetTenant(ctx *Context, name string, id IDInput, state *TenantState, opts ...ResourceOption) (*Tenant, error)
public static Tenant Get(string name, Input<string> id, TenantState? state, CustomResourceOptions? opts = null)
public static Tenant get(String name, Output<String> id, TenantState state, CustomResourceOptions options)
resources: _: type: mso:Tenant 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.
- Description string
- Display
Name string - Name string
- Orchestrator
Only bool - Site
Associations List<TenantSite Association> - Tenant
Id string - User
Associations List<TenantUser Association>
- Description string
- Display
Name string - Name string
- Orchestrator
Only bool - Site
Associations []TenantSite Association Args - Tenant
Id string - User
Associations []TenantUser Association Args
- description String
- display
Name String - name String
- orchestrator
Only Boolean - site
Associations List<TenantSite Association> - tenant
Id String - user
Associations List<TenantUser Association>
- description string
- display
Name string - name string
- orchestrator
Only boolean - site
Associations TenantSite Association[] - tenant
Id string - user
Associations TenantUser Association[]
- description String
- display
Name String - name String
- orchestrator
Only Boolean - site
Associations List<Property Map> - tenant
Id String - user
Associations List<Property Map>
Supporting Types
TenantSiteAssociation, TenantSiteAssociationArgs
- Aws
Access stringKey Id - Aws
Account stringId - Aws
Secret stringKey - Azure
Access stringType - Azure
Active stringDirectory Id - Azure
Application stringId - Azure
Client stringSecret - string
- Azure
Subscription stringId - Gcp
Access stringType - Gcp
Client stringId - Gcp
Email string - Gcp
Key stringId - Gcp
Name string - Gcp
Private stringKey - Gcp
Project stringId - Is
Aws boolAccount Trusted - Security
Domains List<string> - Site
Id string - Vendor string
- Aws
Access stringKey Id - Aws
Account stringId - Aws
Secret stringKey - Azure
Access stringType - Azure
Active stringDirectory Id - Azure
Application stringId - Azure
Client stringSecret - string
- Azure
Subscription stringId - Gcp
Access stringType - Gcp
Client stringId - Gcp
Email string - Gcp
Key stringId - Gcp
Name string - Gcp
Private stringKey - Gcp
Project stringId - Is
Aws boolAccount Trusted - Security
Domains []string - Site
Id string - Vendor string
- aws
Access StringKey Id - aws
Account StringId - aws
Secret StringKey - azure
Access StringType - azure
Active StringDirectory Id - azure
Application StringId - azure
Client StringSecret - String
- azure
Subscription StringId - gcp
Access StringType - gcp
Client StringId - gcp
Email String - gcp
Key StringId - gcp
Name String - gcp
Private StringKey - gcp
Project StringId - is
Aws BooleanAccount Trusted - security
Domains List<String> - site
Id String - vendor String
- aws
Access stringKey Id - aws
Account stringId - aws
Secret stringKey - azure
Access stringType - azure
Active stringDirectory Id - azure
Application stringId - azure
Client stringSecret - string
- azure
Subscription stringId - gcp
Access stringType - gcp
Client stringId - gcp
Email string - gcp
Key stringId - gcp
Name string - gcp
Private stringKey - gcp
Project stringId - is
Aws booleanAccount Trusted - security
Domains string[] - site
Id string - vendor string
- aws_
access_ strkey_ id - aws_
account_ strid - aws_
secret_ strkey - azure_
access_ strtype - azure_
active_ strdirectory_ id - azure_
application_ strid - azure_
client_ strsecret - str
- azure_
subscription_ strid - gcp_
access_ strtype - gcp_
client_ strid - gcp_
email str - gcp_
key_ strid - gcp_
name str - gcp_
private_ strkey - gcp_
project_ strid - is_
aws_ boolaccount_ trusted - security_
domains Sequence[str] - site_
id str - vendor str
- aws
Access StringKey Id - aws
Account StringId - aws
Secret StringKey - azure
Access StringType - azure
Active StringDirectory Id - azure
Application StringId - azure
Client StringSecret - String
- azure
Subscription StringId - gcp
Access StringType - gcp
Client StringId - gcp
Email String - gcp
Key StringId - gcp
Name String - gcp
Private StringKey - gcp
Project StringId - is
Aws BooleanAccount Trusted - security
Domains List<String> - site
Id String - vendor String
TenantUserAssociation, TenantUserAssociationArgs
- User
Id string
- User
Id string
- user
Id String
- user
Id string
- user_
id str
- user
Id String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.