nsxt.PolicyOspfArea
Explore with Pulumi AI
Create PolicyOspfArea Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyOspfArea(name: string, args: PolicyOspfAreaArgs, opts?: CustomResourceOptions);
@overload
def PolicyOspfArea(resource_name: str,
args: PolicyOspfAreaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyOspfArea(resource_name: str,
opts: Optional[ResourceOptions] = None,
area_id: Optional[str] = None,
display_name: Optional[str] = None,
ospf_path: Optional[str] = None,
area_type: Optional[str] = None,
auth_mode: Optional[str] = None,
description: Optional[str] = None,
key_id: Optional[float] = None,
nsx_id: Optional[str] = None,
policy_ospf_area_id: Optional[str] = None,
secret_key: Optional[str] = None,
tags: Optional[Sequence[PolicyOspfAreaTagArgs]] = None)
func NewPolicyOspfArea(ctx *Context, name string, args PolicyOspfAreaArgs, opts ...ResourceOption) (*PolicyOspfArea, error)
public PolicyOspfArea(string name, PolicyOspfAreaArgs args, CustomResourceOptions? opts = null)
public PolicyOspfArea(String name, PolicyOspfAreaArgs args)
public PolicyOspfArea(String name, PolicyOspfAreaArgs args, CustomResourceOptions options)
type: nsxt:PolicyOspfArea
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 PolicyOspfAreaArgs
- 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 PolicyOspfAreaArgs
- 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 PolicyOspfAreaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyOspfAreaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyOspfAreaArgs
- 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 policyOspfAreaResource = new Nsxt.PolicyOspfArea("policyOspfAreaResource", new()
{
AreaId = "string",
DisplayName = "string",
OspfPath = "string",
AreaType = "string",
AuthMode = "string",
Description = "string",
KeyId = 0,
NsxId = "string",
PolicyOspfAreaId = "string",
SecretKey = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyOspfAreaTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyOspfArea(ctx, "policyOspfAreaResource", &nsxt.PolicyOspfAreaArgs{
AreaId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
OspfPath: pulumi.String("string"),
AreaType: pulumi.String("string"),
AuthMode: pulumi.String("string"),
Description: pulumi.String("string"),
KeyId: pulumi.Float64(0),
NsxId: pulumi.String("string"),
PolicyOspfAreaId: pulumi.String("string"),
SecretKey: pulumi.String("string"),
Tags: nsxt.PolicyOspfAreaTagArray{
&nsxt.PolicyOspfAreaTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyOspfAreaResource = new PolicyOspfArea("policyOspfAreaResource", PolicyOspfAreaArgs.builder()
.areaId("string")
.displayName("string")
.ospfPath("string")
.areaType("string")
.authMode("string")
.description("string")
.keyId(0)
.nsxId("string")
.policyOspfAreaId("string")
.secretKey("string")
.tags(PolicyOspfAreaTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_ospf_area_resource = nsxt.PolicyOspfArea("policyOspfAreaResource",
area_id="string",
display_name="string",
ospf_path="string",
area_type="string",
auth_mode="string",
description="string",
key_id=0,
nsx_id="string",
policy_ospf_area_id="string",
secret_key="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyOspfAreaResource = new nsxt.PolicyOspfArea("policyOspfAreaResource", {
areaId: "string",
displayName: "string",
ospfPath: "string",
areaType: "string",
authMode: "string",
description: "string",
keyId: 0,
nsxId: "string",
policyOspfAreaId: "string",
secretKey: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyOspfArea
properties:
areaId: string
areaType: string
authMode: string
description: string
displayName: string
keyId: 0
nsxId: string
ospfPath: string
policyOspfAreaId: string
secretKey: string
tags:
- scope: string
tag: string
PolicyOspfArea 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 PolicyOspfArea resource accepts the following input properties:
- Area
Id string - OSPF area ID in decimal or dotted format
- Display
Name string - Display name of the resource.
- Ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- Area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - Auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - Description string
- Description of the resource.
- Key
Id double - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ospf stringArea Id - ID of the resource.
- Secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - List<Policy
Ospf Area Tag> - A list of scope + tag pairs to associate with this resource.
- Area
Id string - OSPF area ID in decimal or dotted format
- Display
Name string - Display name of the resource.
- Ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- Area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - Auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - Description string
- Description of the resource.
- Key
Id float64 - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ospf stringArea Id - ID of the resource.
- Secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - []Policy
Ospf Area Tag Args - A list of scope + tag pairs to associate with this resource.
- area
Id String - OSPF area ID in decimal or dotted format
- display
Name String - Display name of the resource.
- ospf
Path String - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- area
Type String - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode String - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description String
- Description of the resource.
- key
Id Double - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ospf StringArea Id - ID of the resource.
- secret
Key String - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - List<Policy
Ospf Area Tag> - A list of scope + tag pairs to associate with this resource.
- area
Id string - OSPF area ID in decimal or dotted format
- display
Name string - Display name of the resource.
- ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description string
- Description of the resource.
- key
Id number - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ospf stringArea Id - ID of the resource.
- secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - Policy
Ospf Area Tag[] - A list of scope + tag pairs to associate with this resource.
- area_
id str - OSPF area ID in decimal or dotted format
- display_
name str - Display name of the resource.
- ospf_
path str - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- area_
type str - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth_
mode str - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description str
- Description of the resource.
- key_
id float - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
ospf_ strarea_ id - ID of the resource.
- secret_
key str - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - Sequence[Policy
Ospf Area Tag Args] - A list of scope + tag pairs to associate with this resource.
- area
Id String - OSPF area ID in decimal or dotted format
- display
Name String - Display name of the resource.
- ospf
Path String - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- area
Type String - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode String - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description String
- Description of the resource.
- key
Id Number - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ospf StringArea Id - ID of the resource.
- secret
Key String - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - 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 PolicyOspfArea resource produces the following output properties:
Look up Existing PolicyOspfArea Resource
Get an existing PolicyOspfArea 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?: PolicyOspfAreaState, opts?: CustomResourceOptions): PolicyOspfArea
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area_id: Optional[str] = None,
area_type: Optional[str] = None,
auth_mode: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
key_id: Optional[float] = None,
nsx_id: Optional[str] = None,
ospf_path: Optional[str] = None,
path: Optional[str] = None,
policy_ospf_area_id: Optional[str] = None,
revision: Optional[float] = None,
secret_key: Optional[str] = None,
tags: Optional[Sequence[PolicyOspfAreaTagArgs]] = None) -> PolicyOspfArea
func GetPolicyOspfArea(ctx *Context, name string, id IDInput, state *PolicyOspfAreaState, opts ...ResourceOption) (*PolicyOspfArea, error)
public static PolicyOspfArea Get(string name, Input<string> id, PolicyOspfAreaState? state, CustomResourceOptions? opts = null)
public static PolicyOspfArea get(String name, Output<String> id, PolicyOspfAreaState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyOspfArea 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.
- Area
Id string - OSPF area ID in decimal or dotted format
- Area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - Auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Key
Id double - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- Path string
- The NSX path of the policy resource.
- Policy
Ospf stringArea Id - 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.
- Secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - List<Policy
Ospf Area Tag> - A list of scope + tag pairs to associate with this resource.
- Area
Id string - OSPF area ID in decimal or dotted format
- Area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - Auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Key
Id float64 - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- Path string
- The NSX path of the policy resource.
- Policy
Ospf stringArea Id - 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.
- Secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - []Policy
Ospf Area Tag Args - A list of scope + tag pairs to associate with this resource.
- area
Id String - OSPF area ID in decimal or dotted format
- area
Type String - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode String - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description String
- Description of the resource.
- display
Name String - Display name of the resource.
- key
Id Double - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- ospf
Path String - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- path String
- The NSX path of the policy resource.
- policy
Ospf StringArea Id - 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.
- secret
Key String - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - List<Policy
Ospf Area Tag> - A list of scope + tag pairs to associate with this resource.
- area
Id string - OSPF area ID in decimal or dotted format
- area
Type string - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode string - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description string
- Description of the resource.
- display
Name string - Display name of the resource.
- key
Id number - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- ospf
Path string - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- path string
- The NSX path of the policy resource.
- policy
Ospf stringArea Id - 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.
- secret
Key string - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - Policy
Ospf Area Tag[] - A list of scope + tag pairs to associate with this resource.
- area_
id str - OSPF area ID in decimal or dotted format
- area_
type str - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth_
mode str - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description str
- Description of the resource.
- display_
name str - Display name of the resource.
- key_
id float - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- ospf_
path str - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- path str
- The NSX path of the policy resource.
- policy_
ospf_ strarea_ id - 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.
- secret_
key str - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - Sequence[Policy
Ospf Area Tag Args] - A list of scope + tag pairs to associate with this resource.
- area
Id String - OSPF area ID in decimal or dotted format
- area
Type String - OSPF Area type, one of
NORMAL
orNSSA
. Default isNSSA
. - auth
Mode String - OSPF Authentication mode, one of
NONE
,PASSWORD
orMD5
. By default, OSPF authentication is disabled with modeNONE
. - description String
- Description of the resource.
- display
Name String - Display name of the resource.
- key
Id Number - Authentication secret key id, required for authenication mode
MD5
. This attribute is sensitive. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- ospf
Path String - The policy path to the OSPF configuration on particular Tier-0 Gateway.
- `area_id - (Required) OSPF Area ID in either decimal or dotted format.
- path String
- The NSX path of the policy resource.
- policy
Ospf StringArea Id - 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.
- secret
Key String - Authentication secret key, required for authentication mode other than
NONE
. This attribute is sensitive. Length should not exceed 8 characters. - List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyOspfAreaTag, PolicyOspfAreaTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.