nsxt.PolicyGatewayPrefixList
Explore with Pulumi AI
Create PolicyGatewayPrefixList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyGatewayPrefixList(name: string, args: PolicyGatewayPrefixListArgs, opts?: CustomResourceOptions);
@overload
def PolicyGatewayPrefixList(resource_name: str,
args: PolicyGatewayPrefixListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyGatewayPrefixList(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
gateway_path: Optional[str] = None,
prefixes: Optional[Sequence[PolicyGatewayPrefixListPrefixArgs]] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_gateway_prefix_list_id: Optional[str] = None,
tags: Optional[Sequence[PolicyGatewayPrefixListTagArgs]] = None)
func NewPolicyGatewayPrefixList(ctx *Context, name string, args PolicyGatewayPrefixListArgs, opts ...ResourceOption) (*PolicyGatewayPrefixList, error)
public PolicyGatewayPrefixList(string name, PolicyGatewayPrefixListArgs args, CustomResourceOptions? opts = null)
public PolicyGatewayPrefixList(String name, PolicyGatewayPrefixListArgs args)
public PolicyGatewayPrefixList(String name, PolicyGatewayPrefixListArgs args, CustomResourceOptions options)
type: nsxt:PolicyGatewayPrefixList
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 PolicyGatewayPrefixListArgs
- 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 PolicyGatewayPrefixListArgs
- 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 PolicyGatewayPrefixListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyGatewayPrefixListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyGatewayPrefixListArgs
- 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 policyGatewayPrefixListResource = new Nsxt.PolicyGatewayPrefixList("policyGatewayPrefixListResource", new()
{
DisplayName = "string",
GatewayPath = "string",
Prefixes = new[]
{
new Nsxt.Inputs.PolicyGatewayPrefixListPrefixArgs
{
Action = "string",
Ge = 0,
Le = 0,
Network = "string",
},
},
Description = "string",
NsxId = "string",
PolicyGatewayPrefixListId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyGatewayPrefixListTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyGatewayPrefixList(ctx, "policyGatewayPrefixListResource", &nsxt.PolicyGatewayPrefixListArgs{
DisplayName: pulumi.String("string"),
GatewayPath: pulumi.String("string"),
Prefixes: nsxt.PolicyGatewayPrefixListPrefixArray{
&nsxt.PolicyGatewayPrefixListPrefixArgs{
Action: pulumi.String("string"),
Ge: pulumi.Float64(0),
Le: pulumi.Float64(0),
Network: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyGatewayPrefixListId: pulumi.String("string"),
Tags: nsxt.PolicyGatewayPrefixListTagArray{
&nsxt.PolicyGatewayPrefixListTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyGatewayPrefixListResource = new PolicyGatewayPrefixList("policyGatewayPrefixListResource", PolicyGatewayPrefixListArgs.builder()
.displayName("string")
.gatewayPath("string")
.prefixes(PolicyGatewayPrefixListPrefixArgs.builder()
.action("string")
.ge(0)
.le(0)
.network("string")
.build())
.description("string")
.nsxId("string")
.policyGatewayPrefixListId("string")
.tags(PolicyGatewayPrefixListTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_gateway_prefix_list_resource = nsxt.PolicyGatewayPrefixList("policyGatewayPrefixListResource",
display_name="string",
gateway_path="string",
prefixes=[{
"action": "string",
"ge": 0,
"le": 0,
"network": "string",
}],
description="string",
nsx_id="string",
policy_gateway_prefix_list_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyGatewayPrefixListResource = new nsxt.PolicyGatewayPrefixList("policyGatewayPrefixListResource", {
displayName: "string",
gatewayPath: "string",
prefixes: [{
action: "string",
ge: 0,
le: 0,
network: "string",
}],
description: "string",
nsxId: "string",
policyGatewayPrefixListId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyGatewayPrefixList
properties:
description: string
displayName: string
gatewayPath: string
nsxId: string
policyGatewayPrefixListId: string
prefixes:
- action: string
ge: 0
le: 0
network: string
tags:
- scope: string
tag: string
PolicyGatewayPrefixList 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 PolicyGatewayPrefixList resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Gateway
Path string - Gateway where the prefix is defined.
- Prefixes
List<Policy
Gateway Prefix List Prefix> - A list of network prefixes.
- 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 policy resource.
- Policy
Gateway stringPrefix List Id - ID of the resource.
- List<Policy
Gateway Prefix List Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Gateway
Path string - Gateway where the prefix is defined.
- Prefixes
[]Policy
Gateway Prefix List Prefix Args - A list of network prefixes.
- 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 policy resource.
- Policy
Gateway stringPrefix List Id - ID of the resource.
- []Policy
Gateway Prefix List Tag Args - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- gateway
Path String - Gateway where the prefix is defined.
- prefixes
List<Policy
Gateway Prefix List Prefix> - A list of network prefixes.
- 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 policy resource.
- policy
Gateway StringPrefix List Id - ID of the resource.
- List<Policy
Gateway Prefix List Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- gateway
Path string - Gateway where the prefix is defined.
- prefixes
Policy
Gateway Prefix List Prefix[] - A list of network prefixes.
- 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 policy resource.
- policy
Gateway stringPrefix List Id - ID of the resource.
- Policy
Gateway Prefix List Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- gateway_
path str - Gateway where the prefix is defined.
- prefixes
Sequence[Policy
Gateway Prefix List Prefix Args] - A list of network prefixes.
- 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 policy resource.
- policy_
gateway_ strprefix_ list_ id - ID of the resource.
- Sequence[Policy
Gateway Prefix List Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- gateway
Path String - Gateway where the prefix is defined.
- prefixes List<Property Map>
- A list of network prefixes.
- 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 policy resource.
- policy
Gateway StringPrefix List Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyGatewayPrefixList resource produces the following output properties:
Look up Existing PolicyGatewayPrefixList Resource
Get an existing PolicyGatewayPrefixList 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?: PolicyGatewayPrefixListState, opts?: CustomResourceOptions): PolicyGatewayPrefixList
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
gateway_path: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_gateway_prefix_list_id: Optional[str] = None,
prefixes: Optional[Sequence[PolicyGatewayPrefixListPrefixArgs]] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyGatewayPrefixListTagArgs]] = None) -> PolicyGatewayPrefixList
func GetPolicyGatewayPrefixList(ctx *Context, name string, id IDInput, state *PolicyGatewayPrefixListState, opts ...ResourceOption) (*PolicyGatewayPrefixList, error)
public static PolicyGatewayPrefixList Get(string name, Input<string> id, PolicyGatewayPrefixListState? state, CustomResourceOptions? opts = null)
public static PolicyGatewayPrefixList get(String name, Output<String> id, PolicyGatewayPrefixListState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyGatewayPrefixList 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.
- Gateway
Path string - Gateway where the prefix is defined.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Gateway stringPrefix List Id - ID of the resource.
- Prefixes
List<Policy
Gateway Prefix List Prefix> - A list of network prefixes.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Gateway Prefix List Tag> - A list of scope + tag pairs to associate with this resource.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Gateway
Path string - Gateway where the prefix is defined.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Gateway stringPrefix List Id - ID of the resource.
- Prefixes
[]Policy
Gateway Prefix List Prefix Args - A list of network prefixes.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Gateway Prefix List Tag Args - A list of scope + tag pairs to associate with this resource.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- gateway
Path String - Gateway where the prefix is defined.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Gateway StringPrefix List Id - ID of the resource.
- prefixes
List<Policy
Gateway Prefix List Prefix> - A list of network prefixes.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Gateway Prefix List Tag> - A list of scope + tag pairs to associate with this resource.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- gateway
Path string - Gateway where the prefix is defined.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path string
- The NSX path of the policy resource.
- policy
Gateway stringPrefix List Id - ID of the resource.
- prefixes
Policy
Gateway Prefix List Prefix[] - A list of network prefixes.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Gateway Prefix List Tag[] - A list of scope + tag pairs to associate with this resource.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- gateway_
path str - Gateway where the prefix is defined.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path str
- The NSX path of the policy resource.
- policy_
gateway_ strprefix_ list_ id - ID of the resource.
- prefixes
Sequence[Policy
Gateway Prefix List Prefix Args] - A list of network prefixes.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Policy
Gateway Prefix List Tag Args] - A list of scope + tag pairs to associate with this resource.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- gateway
Path String - Gateway where the prefix is defined.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Gateway StringPrefix List Id - ID of the resource.
- prefixes List<Property Map>
- A list of network prefixes.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyGatewayPrefixListPrefix, PolicyGatewayPrefixListPrefixArgs
- Action string
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- Ge double
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- Le double
- Prefix length less than or equal to, between 0-128. (0 means no value)
- Network string
- Network prefix in CIDR format. If not set it will match ANY network.
- Action string
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- Ge float64
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- Le float64
- Prefix length less than or equal to, between 0-128. (0 means no value)
- Network string
- Network prefix in CIDR format. If not set it will match ANY network.
- action String
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- ge Double
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- le Double
- Prefix length less than or equal to, between 0-128. (0 means no value)
- network String
- Network prefix in CIDR format. If not set it will match ANY network.
- action string
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- ge number
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- le number
- Prefix length less than or equal to, between 0-128. (0 means no value)
- network string
- Network prefix in CIDR format. If not set it will match ANY network.
- action str
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- ge float
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- le float
- Prefix length less than or equal to, between 0-128. (0 means no value)
- network str
- Network prefix in CIDR format. If not set it will match ANY network.
- action String
- PERMIT or DENY Action for the prefix list. The default value is PERMIT.
- ge Number
- Prefix length greater than or equal to, between 0-128. (0 means no value).
- le Number
- Prefix length less than or equal to, between 0-128. (0 means no value)
- network String
- Network prefix in CIDR format. If not set it will match ANY network.
PolicyGatewayPrefixListTag, PolicyGatewayPrefixListTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.