nsxt.PolicyDomain
Explore with Pulumi AI
Create PolicyDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyDomain(name: string, args: PolicyDomainArgs, opts?: CustomResourceOptions);
@overload
def PolicyDomain(resource_name: str,
args: PolicyDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
sites: Optional[Sequence[str]] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_domain_id: Optional[str] = None,
tags: Optional[Sequence[PolicyDomainTagArgs]] = None)
func NewPolicyDomain(ctx *Context, name string, args PolicyDomainArgs, opts ...ResourceOption) (*PolicyDomain, error)
public PolicyDomain(string name, PolicyDomainArgs args, CustomResourceOptions? opts = null)
public PolicyDomain(String name, PolicyDomainArgs args)
public PolicyDomain(String name, PolicyDomainArgs args, CustomResourceOptions options)
type: nsxt:PolicyDomain
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 PolicyDomainArgs
- 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 PolicyDomainArgs
- 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 PolicyDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyDomainArgs
- 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 policyDomainResource = new Nsxt.PolicyDomain("policyDomainResource", new()
{
DisplayName = "string",
Sites = new[]
{
"string",
},
Description = "string",
NsxId = "string",
PolicyDomainId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyDomainTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyDomain(ctx, "policyDomainResource", &nsxt.PolicyDomainArgs{
DisplayName: pulumi.String("string"),
Sites: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyDomainId: pulumi.String("string"),
Tags: nsxt.PolicyDomainTagArray{
&nsxt.PolicyDomainTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyDomainResource = new PolicyDomain("policyDomainResource", PolicyDomainArgs.builder()
.displayName("string")
.sites("string")
.description("string")
.nsxId("string")
.policyDomainId("string")
.tags(PolicyDomainTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_domain_resource = nsxt.PolicyDomain("policyDomainResource",
display_name="string",
sites=["string"],
description="string",
nsx_id="string",
policy_domain_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyDomainResource = new nsxt.PolicyDomain("policyDomainResource", {
displayName: "string",
sites: ["string"],
description: "string",
nsxId: "string",
policyDomainId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyDomain
properties:
description: string
displayName: string
nsxId: string
policyDomainId: string
sites:
- string
tags:
- scope: string
tag: string
PolicyDomain 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 PolicyDomain resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Sites List<string>
- A list of sites (a.k.a locations) for this domain.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- Policy
Domain stringId - ID of the Domain.
- List<Policy
Domain Tag> - A list of scope + tag pairs to associate with this Domain.
- Display
Name string - Display name of the resource.
- Sites []string
- A list of sites (a.k.a locations) for this domain.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- Policy
Domain stringId - ID of the Domain.
- []Policy
Domain Tag Args - A list of scope + tag pairs to associate with this Domain.
- display
Name String - Display name of the resource.
- sites List<String>
- A list of sites (a.k.a locations) for this domain.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- policy
Domain StringId - ID of the Domain.
- List<Policy
Domain Tag> - A list of scope + tag pairs to associate with this Domain.
- display
Name string - Display name of the resource.
- sites string[]
- A list of sites (a.k.a locations) for this domain.
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- policy
Domain stringId - ID of the Domain.
- Policy
Domain Tag[] - A list of scope + tag pairs to associate with this Domain.
- display_
name str - Display name of the resource.
- sites Sequence[str]
- A list of sites (a.k.a locations) for this domain.
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- policy_
domain_ strid - ID of the Domain.
- Sequence[Policy
Domain Tag Args] - A list of scope + tag pairs to associate with this Domain.
- display
Name String - Display name of the resource.
- sites List<String>
- A list of sites (a.k.a locations) for this domain.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- policy
Domain StringId - ID of the Domain.
- List<Property Map>
- A list of scope + tag pairs to associate with this Domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyDomain resource produces the following output properties:
Look up Existing PolicyDomain Resource
Get an existing PolicyDomain 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?: PolicyDomainState, opts?: CustomResourceOptions): PolicyDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_domain_id: Optional[str] = None,
revision: Optional[float] = None,
sites: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyDomainTagArgs]] = None) -> PolicyDomain
func GetPolicyDomain(ctx *Context, name string, id IDInput, state *PolicyDomainState, opts ...ResourceOption) (*PolicyDomain, error)
public static PolicyDomain Get(string name, Input<string> id, PolicyDomainState? state, CustomResourceOptions? opts = null)
public static PolicyDomain get(String name, Output<String> id, PolicyDomainState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyDomain 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
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- Path string
- The NSX path of the policy resource.
- Policy
Domain stringId - ID of the Domain.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sites List<string>
- A list of sites (a.k.a locations) for this domain.
- List<Policy
Domain Tag> - A list of scope + tag pairs to associate with this Domain.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- Path string
- The NSX path of the policy resource.
- Policy
Domain stringId - ID of the Domain.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sites []string
- A list of sites (a.k.a locations) for this domain.
- []Policy
Domain Tag Args - A list of scope + tag pairs to associate with this Domain.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- path String
- The NSX path of the policy resource.
- policy
Domain StringId - ID of the Domain.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sites List<String>
- A list of sites (a.k.a locations) for this domain.
- List<Policy
Domain Tag> - A list of scope + tag pairs to associate with this Domain.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- path string
- The NSX path of the policy resource.
- policy
Domain stringId - ID of the Domain.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sites string[]
- A list of sites (a.k.a locations) for this domain.
- Policy
Domain Tag[] - A list of scope + tag pairs to associate with this Domain.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- path str
- The NSX path of the policy resource.
- policy_
domain_ strid - ID of the Domain.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sites Sequence[str]
- A list of sites (a.k.a locations) for this domain.
- Sequence[Policy
Domain Tag Args] - A list of scope + tag pairs to associate with this Domain.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Domain resource.
- path String
- The NSX path of the policy resource.
- policy
Domain StringId - ID of the Domain.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sites List<String>
- A list of sites (a.k.a locations) for this domain.
- List<Property Map>
- A list of scope + tag pairs to associate with this Domain.
Supporting Types
PolicyDomainTag, PolicyDomainTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.