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:
- DisplayName string
- Description string
- Name string
- OrchestratorOnly bool
- SiteAssociations List<TenantSite Association> 
- TenantId string
- UserAssociations List<TenantUser Association> 
- DisplayName string
- Description string
- Name string
- OrchestratorOnly bool
- SiteAssociations []TenantSite Association Args 
- TenantId string
- UserAssociations []TenantUser Association Args 
- displayName String
- description String
- name String
- orchestratorOnly Boolean
- siteAssociations List<TenantSite Association> 
- tenantId String
- userAssociations List<TenantUser Association> 
- displayName string
- description string
- name string
- orchestratorOnly boolean
- siteAssociations TenantSite Association[] 
- tenantId string
- userAssociations TenantUser Association[] 
- displayName String
- description String
- name String
- orchestratorOnly Boolean
- siteAssociations List<Property Map>
- tenantId String
- userAssociations 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) -> Tenantfunc 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
- DisplayName string
- Name string
- OrchestratorOnly bool
- SiteAssociations List<TenantSite Association> 
- TenantId string
- UserAssociations List<TenantUser Association> 
- Description string
- DisplayName string
- Name string
- OrchestratorOnly bool
- SiteAssociations []TenantSite Association Args 
- TenantId string
- UserAssociations []TenantUser Association Args 
- description String
- displayName String
- name String
- orchestratorOnly Boolean
- siteAssociations List<TenantSite Association> 
- tenantId String
- userAssociations List<TenantUser Association> 
- description string
- displayName string
- name string
- orchestratorOnly boolean
- siteAssociations TenantSite Association[] 
- tenantId string
- userAssociations TenantUser Association[] 
- description String
- displayName String
- name String
- orchestratorOnly Boolean
- siteAssociations List<Property Map>
- tenantId String
- userAssociations List<Property Map>
Supporting Types
TenantSiteAssociation, TenantSiteAssociationArgs      
- AwsAccess stringKey Id 
- AwsAccount stringId 
- AwsSecret stringKey 
- AzureAccess stringType 
- AzureActive stringDirectory Id 
- AzureApplication stringId 
- AzureClient stringSecret 
- string
- AzureSubscription stringId 
- GcpAccess stringType 
- GcpClient stringId 
- GcpEmail string
- GcpKey stringId 
- GcpName string
- GcpPrivate stringKey 
- GcpProject stringId 
- IsAws boolAccount Trusted 
- SecurityDomains List<string>
- SiteId string
- Vendor string
- AwsAccess stringKey Id 
- AwsAccount stringId 
- AwsSecret stringKey 
- AzureAccess stringType 
- AzureActive stringDirectory Id 
- AzureApplication stringId 
- AzureClient stringSecret 
- string
- AzureSubscription stringId 
- GcpAccess stringType 
- GcpClient stringId 
- GcpEmail string
- GcpKey stringId 
- GcpName string
- GcpPrivate stringKey 
- GcpProject stringId 
- IsAws boolAccount Trusted 
- SecurityDomains []string
- SiteId string
- Vendor string
- awsAccess StringKey Id 
- awsAccount StringId 
- awsSecret StringKey 
- azureAccess StringType 
- azureActive StringDirectory Id 
- azureApplication StringId 
- azureClient StringSecret 
- String
- azureSubscription StringId 
- gcpAccess StringType 
- gcpClient StringId 
- gcpEmail String
- gcpKey StringId 
- gcpName String
- gcpPrivate StringKey 
- gcpProject StringId 
- isAws BooleanAccount Trusted 
- securityDomains List<String>
- siteId String
- vendor String
- awsAccess stringKey Id 
- awsAccount stringId 
- awsSecret stringKey 
- azureAccess stringType 
- azureActive stringDirectory Id 
- azureApplication stringId 
- azureClient stringSecret 
- string
- azureSubscription stringId 
- gcpAccess stringType 
- gcpClient stringId 
- gcpEmail string
- gcpKey stringId 
- gcpName string
- gcpPrivate stringKey 
- gcpProject stringId 
- isAws booleanAccount Trusted 
- securityDomains string[]
- siteId 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
- awsAccess StringKey Id 
- awsAccount StringId 
- awsSecret StringKey 
- azureAccess StringType 
- azureActive StringDirectory Id 
- azureApplication StringId 
- azureClient StringSecret 
- String
- azureSubscription StringId 
- gcpAccess StringType 
- gcpClient StringId 
- gcpEmail String
- gcpKey StringId 
- gcpName String
- gcpPrivate StringKey 
- gcpProject StringId 
- isAws BooleanAccount Trusted 
- securityDomains List<String>
- siteId String
- vendor String
TenantUserAssociation, TenantUserAssociationArgs      
- UserId string
- UserId string
- userId String
- userId string
- user_id str
- userId String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the msoTerraform Provider.