nsxt.PolicyProject
Explore with Pulumi AI
Create PolicyProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyProject(name: string, args: PolicyProjectArgs, opts?: CustomResourceOptions);
@overload
def PolicyProject(resource_name: str,
args: PolicyProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
external_ipv4_blocks: Optional[Sequence[str]] = None,
nsx_id: Optional[str] = None,
policy_project_id: Optional[str] = None,
short_id: Optional[str] = None,
site_infos: Optional[Sequence[PolicyProjectSiteInfoArgs]] = None,
tags: Optional[Sequence[PolicyProjectTagArgs]] = None,
tier0_gateway_paths: Optional[Sequence[str]] = None)
func NewPolicyProject(ctx *Context, name string, args PolicyProjectArgs, opts ...ResourceOption) (*PolicyProject, error)
public PolicyProject(string name, PolicyProjectArgs args, CustomResourceOptions? opts = null)
public PolicyProject(String name, PolicyProjectArgs args)
public PolicyProject(String name, PolicyProjectArgs args, CustomResourceOptions options)
type: nsxt:PolicyProject
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 PolicyProjectArgs
- 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 PolicyProjectArgs
- 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 PolicyProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyProjectArgs
- 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 policyProjectResource = new Nsxt.PolicyProject("policyProjectResource", new()
{
DisplayName = "string",
Description = "string",
ExternalIpv4Blocks = new[]
{
"string",
},
NsxId = "string",
PolicyProjectId = "string",
ShortId = "string",
SiteInfos = new[]
{
new Nsxt.Inputs.PolicyProjectSiteInfoArgs
{
EdgeClusterPaths = new[]
{
"string",
},
SitePath = "string",
},
},
Tags = new[]
{
new Nsxt.Inputs.PolicyProjectTagArgs
{
Scope = "string",
Tag = "string",
},
},
Tier0GatewayPaths = new[]
{
"string",
},
});
example, err := nsxt.NewPolicyProject(ctx, "policyProjectResource", &nsxt.PolicyProjectArgs{
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
ExternalIpv4Blocks: pulumi.StringArray{
pulumi.String("string"),
},
NsxId: pulumi.String("string"),
PolicyProjectId: pulumi.String("string"),
ShortId: pulumi.String("string"),
SiteInfos: .PolicyProjectSiteInfoArray{
&.PolicyProjectSiteInfoArgs{
EdgeClusterPaths: pulumi.StringArray{
pulumi.String("string"),
},
SitePath: pulumi.String("string"),
},
},
Tags: .PolicyProjectTagArray{
&.PolicyProjectTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
Tier0GatewayPaths: pulumi.StringArray{
pulumi.String("string"),
},
})
var policyProjectResource = new PolicyProject("policyProjectResource", PolicyProjectArgs.builder()
.displayName("string")
.description("string")
.externalIpv4Blocks("string")
.nsxId("string")
.policyProjectId("string")
.shortId("string")
.siteInfos(PolicyProjectSiteInfoArgs.builder()
.edgeClusterPaths("string")
.sitePath("string")
.build())
.tags(PolicyProjectTagArgs.builder()
.scope("string")
.tag("string")
.build())
.tier0GatewayPaths("string")
.build());
policy_project_resource = nsxt.PolicyProject("policyProjectResource",
display_name="string",
description="string",
external_ipv4_blocks=["string"],
nsx_id="string",
policy_project_id="string",
short_id="string",
site_infos=[{
"edge_cluster_paths": ["string"],
"site_path": "string",
}],
tags=[{
"scope": "string",
"tag": "string",
}],
tier0_gateway_paths=["string"])
const policyProjectResource = new nsxt.PolicyProject("policyProjectResource", {
displayName: "string",
description: "string",
externalIpv4Blocks: ["string"],
nsxId: "string",
policyProjectId: "string",
shortId: "string",
siteInfos: [{
edgeClusterPaths: ["string"],
sitePath: "string",
}],
tags: [{
scope: "string",
tag: "string",
}],
tier0GatewayPaths: ["string"],
});
type: nsxt:PolicyProject
properties:
description: string
displayName: string
externalIpv4Blocks:
- string
nsxId: string
policyProjectId: string
shortId: string
siteInfos:
- edgeClusterPaths:
- string
sitePath: string
tags:
- scope: string
tag: string
tier0GatewayPaths:
- string
PolicyProject 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 PolicyProject resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- External
Ipv4Blocks List<string> - PolicyPath of public ip block
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Project stringId - ID of the resource.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- Site
Infos List<PolicyProject Site Info> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Policy
Project Tag> - A list of scope + tag pairs to associate with this resource.
- Tier0Gateway
Paths List<string> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- External
Ipv4Blocks []string - PolicyPath of public ip block
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Project stringId - ID of the resource.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- Site
Infos []PolicyProject Site Info Args - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- []Policy
Project Tag Args - A list of scope + tag pairs to associate with this resource.
- Tier0Gateway
Paths []string - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- external
Ipv4Blocks List<String> - PolicyPath of public ip block
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Project StringId - ID of the resource.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos List<PolicyProject Site Info> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Policy
Project Tag> - A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths List<String> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- display
Name string - Display name of the resource.
- description string
- Description of the resource.
- external
Ipv4Blocks string[] - PolicyPath of public ip block
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Project stringId - ID of the resource.
- short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos PolicyProject Site Info[] - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- Policy
Project Tag[] - A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths string[] - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- display_
name str - Display name of the resource.
- description str
- Description of the resource.
- external_
ipv4_ Sequence[str]blocks - PolicyPath of public ip block
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
project_ strid - ID of the resource.
- short_
id str - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site_
infos Sequence[PolicyProject Site Info Args] - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- Sequence[Policy
Project Tag Args] - A list of scope + tag pairs to associate with this resource.
- tier0_
gateway_ Sequence[str]paths - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- external
Ipv4Blocks List<String> - PolicyPath of public ip block
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Project StringId - ID of the resource.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos List<Property Map> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths List<String> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyProject resource produces the following output properties:
Look up Existing PolicyProject Resource
Get an existing PolicyProject 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?: PolicyProjectState, opts?: CustomResourceOptions): PolicyProject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
external_ipv4_blocks: Optional[Sequence[str]] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_project_id: Optional[str] = None,
revision: Optional[float] = None,
short_id: Optional[str] = None,
site_infos: Optional[Sequence[PolicyProjectSiteInfoArgs]] = None,
tags: Optional[Sequence[PolicyProjectTagArgs]] = None,
tier0_gateway_paths: Optional[Sequence[str]] = None) -> PolicyProject
func GetPolicyProject(ctx *Context, name string, id IDInput, state *PolicyProjectState, opts ...ResourceOption) (*PolicyProject, error)
public static PolicyProject Get(string name, Input<string> id, PolicyProjectState? state, CustomResourceOptions? opts = null)
public static PolicyProject get(String name, Output<String> id, PolicyProjectState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyProject 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.
- External
Ipv4Blocks List<string> - PolicyPath of public ip block
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Project stringId - ID of the resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- Site
Infos List<PolicyProject Site Info> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Policy
Project Tag> - A list of scope + tag pairs to associate with this resource.
- Tier0Gateway
Paths List<string> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- External
Ipv4Blocks []string - PolicyPath of public ip block
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Project stringId - ID of the resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- Site
Infos []PolicyProject Site Info Args - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- []Policy
Project Tag Args - A list of scope + tag pairs to associate with this resource.
- Tier0Gateway
Paths []string - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- external
Ipv4Blocks List<String> - PolicyPath of public ip block
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Project StringId - ID of the resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos List<PolicyProject Site Info> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Policy
Project Tag> - A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths List<String> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- external
Ipv4Blocks string[] - PolicyPath of public ip block
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy
Project stringId - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id string - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos PolicyProject Site Info[] - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- Policy
Project Tag[] - A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths string[] - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- external_
ipv4_ Sequence[str]blocks - PolicyPath of public ip block
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- policy_
project_ strid - ID of the resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short_
id str - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site_
infos Sequence[PolicyProject Site Info Args] - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- Sequence[Policy
Project Tag Args] - A list of scope + tag pairs to associate with this resource.
- tier0_
gateway_ Sequence[str]paths - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- external
Ipv4Blocks List<String> - PolicyPath of public ip block
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Project StringId - ID of the resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- short
Id String - Defaults to id if id is less than equal to 8 characters or defaults to random generated id if not set.
- site
Infos List<Property Map> - Information related to sites applicable for given Project. For on-prem deployment, only 1 is allowed.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- tier0Gateway
Paths List<String> - The tier 0 has to be pre-created before Project is created. The tier 0 typically provides connectivity to external world. List of sites for Project has to be subset of sites where the tier 0 spans.
Supporting Types
PolicyProjectSiteInfo, PolicyProjectSiteInfoArgs
- Edge
Cluster List<string>Paths - The edge cluster on which the networking elements for the Org will be created.
- Site
Path string - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
- Edge
Cluster []stringPaths - The edge cluster on which the networking elements for the Org will be created.
- Site
Path string - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
- edge
Cluster List<String>Paths - The edge cluster on which the networking elements for the Org will be created.
- site
Path String - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
- edge
Cluster string[]Paths - The edge cluster on which the networking elements for the Org will be created.
- site
Path string - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
- edge_
cluster_ Sequence[str]paths - The edge cluster on which the networking elements for the Org will be created.
- site_
path str - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
- edge
Cluster List<String>Paths - The edge cluster on which the networking elements for the Org will be created.
- site
Path String - This represents the path of the site which is managed by Global Manager. For the local manager, if set, this needs to point to 'default'.
PolicyProjectTag, PolicyProjectTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.