vcd.NsxtEdgegatewayStaticRoute
Explore with Pulumi AI
Create NsxtEdgegatewayStaticRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxtEdgegatewayStaticRoute(name: string, args: NsxtEdgegatewayStaticRouteArgs, opts?: CustomResourceOptions);
@overload
def NsxtEdgegatewayStaticRoute(resource_name: str,
args: NsxtEdgegatewayStaticRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxtEdgegatewayStaticRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
edge_gateway_id: Optional[str] = None,
network_cidr: Optional[str] = None,
next_hops: Optional[Sequence[NsxtEdgegatewayStaticRouteNextHopArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
nsxt_edgegateway_static_route_id: Optional[str] = None,
org: Optional[str] = None)
func NewNsxtEdgegatewayStaticRoute(ctx *Context, name string, args NsxtEdgegatewayStaticRouteArgs, opts ...ResourceOption) (*NsxtEdgegatewayStaticRoute, error)
public NsxtEdgegatewayStaticRoute(string name, NsxtEdgegatewayStaticRouteArgs args, CustomResourceOptions? opts = null)
public NsxtEdgegatewayStaticRoute(String name, NsxtEdgegatewayStaticRouteArgs args)
public NsxtEdgegatewayStaticRoute(String name, NsxtEdgegatewayStaticRouteArgs args, CustomResourceOptions options)
type: vcd:NsxtEdgegatewayStaticRoute
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 NsxtEdgegatewayStaticRouteArgs
- 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 NsxtEdgegatewayStaticRouteArgs
- 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 NsxtEdgegatewayStaticRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxtEdgegatewayStaticRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxtEdgegatewayStaticRouteArgs
- 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 nsxtEdgegatewayStaticRouteResource = new Vcd.NsxtEdgegatewayStaticRoute("nsxtEdgegatewayStaticRouteResource", new()
{
EdgeGatewayId = "string",
NetworkCidr = "string",
NextHops = new[]
{
new Vcd.Inputs.NsxtEdgegatewayStaticRouteNextHopArgs
{
AdminDistance = 0,
IpAddress = "string",
Scope = new Vcd.Inputs.NsxtEdgegatewayStaticRouteNextHopScopeArgs
{
Id = "string",
Type = "string",
Name = "string",
},
},
},
Description = "string",
Name = "string",
NsxtEdgegatewayStaticRouteId = "string",
Org = "string",
});
example, err := vcd.NewNsxtEdgegatewayStaticRoute(ctx, "nsxtEdgegatewayStaticRouteResource", &vcd.NsxtEdgegatewayStaticRouteArgs{
EdgeGatewayId: pulumi.String("string"),
NetworkCidr: pulumi.String("string"),
NextHops: vcd.NsxtEdgegatewayStaticRouteNextHopArray{
&vcd.NsxtEdgegatewayStaticRouteNextHopArgs{
AdminDistance: pulumi.Float64(0),
IpAddress: pulumi.String("string"),
Scope: &vcd.NsxtEdgegatewayStaticRouteNextHopScopeArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NsxtEdgegatewayStaticRouteId: pulumi.String("string"),
Org: pulumi.String("string"),
})
var nsxtEdgegatewayStaticRouteResource = new NsxtEdgegatewayStaticRoute("nsxtEdgegatewayStaticRouteResource", NsxtEdgegatewayStaticRouteArgs.builder()
.edgeGatewayId("string")
.networkCidr("string")
.nextHops(NsxtEdgegatewayStaticRouteNextHopArgs.builder()
.adminDistance(0)
.ipAddress("string")
.scope(NsxtEdgegatewayStaticRouteNextHopScopeArgs.builder()
.id("string")
.type("string")
.name("string")
.build())
.build())
.description("string")
.name("string")
.nsxtEdgegatewayStaticRouteId("string")
.org("string")
.build());
nsxt_edgegateway_static_route_resource = vcd.NsxtEdgegatewayStaticRoute("nsxtEdgegatewayStaticRouteResource",
edge_gateway_id="string",
network_cidr="string",
next_hops=[{
"admin_distance": 0,
"ip_address": "string",
"scope": {
"id": "string",
"type": "string",
"name": "string",
},
}],
description="string",
name="string",
nsxt_edgegateway_static_route_id="string",
org="string")
const nsxtEdgegatewayStaticRouteResource = new vcd.NsxtEdgegatewayStaticRoute("nsxtEdgegatewayStaticRouteResource", {
edgeGatewayId: "string",
networkCidr: "string",
nextHops: [{
adminDistance: 0,
ipAddress: "string",
scope: {
id: "string",
type: "string",
name: "string",
},
}],
description: "string",
name: "string",
nsxtEdgegatewayStaticRouteId: "string",
org: "string",
});
type: vcd:NsxtEdgegatewayStaticRoute
properties:
description: string
edgeGatewayId: string
name: string
networkCidr: string
nextHops:
- adminDistance: 0
ipAddress: string
scope:
id: string
name: string
type: string
nsxtEdgegatewayStaticRouteId: string
org: string
NsxtEdgegatewayStaticRoute 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 NsxtEdgegatewayStaticRoute resource accepts the following input properties:
- Edge
Gateway stringId - NSX-T Edge Gateway ID
- Network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- Next
Hops List<NsxtEdgegateway Static Route Next Hop> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- Description string
- Description for NSX-T Edge Gateway Static Route
- Name string
- Name for NSX-T Edge Gateway Static Route
- Nsxt
Edgegateway stringStatic Route Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- Edge
Gateway stringId - NSX-T Edge Gateway ID
- Network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- Next
Hops []NsxtEdgegateway Static Route Next Hop Args A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- Description string
- Description for NSX-T Edge Gateway Static Route
- Name string
- Name for NSX-T Edge Gateway Static Route
- Nsxt
Edgegateway stringStatic Route Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- edge
Gateway StringId - NSX-T Edge Gateway ID
- network
Cidr String - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops List<NsxtEdgegateway Static Route Next Hop> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- description String
- Description for NSX-T Edge Gateway Static Route
- name String
- Name for NSX-T Edge Gateway Static Route
- nsxt
Edgegateway StringStatic Route Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- edge
Gateway stringId - NSX-T Edge Gateway ID
- network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops NsxtEdgegateway Static Route Next Hop[] A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- description string
- Description for NSX-T Edge Gateway Static Route
- name string
- Name for NSX-T Edge Gateway Static Route
- nsxt
Edgegateway stringStatic Route Id - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- edge_
gateway_ strid - NSX-T Edge Gateway ID
- network_
cidr str - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next_
hops Sequence[NsxtEdgegateway Static Route Next Hop Args] A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- description str
- Description for NSX-T Edge Gateway Static Route
- name str
- Name for NSX-T Edge Gateway Static Route
- nsxt_
edgegateway_ strstatic_ route_ id - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- edge
Gateway StringId - NSX-T Edge Gateway ID
- network
Cidr String - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops List<Property Map> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- description String
- Description for NSX-T Edge Gateway Static Route
- name String
- Name for NSX-T Edge Gateway Static Route
- nsxt
Edgegateway StringStatic Route Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxtEdgegatewayStaticRoute 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 NsxtEdgegatewayStaticRoute Resource
Get an existing NsxtEdgegatewayStaticRoute 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?: NsxtEdgegatewayStaticRouteState, opts?: CustomResourceOptions): NsxtEdgegatewayStaticRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
edge_gateway_id: Optional[str] = None,
name: Optional[str] = None,
network_cidr: Optional[str] = None,
next_hops: Optional[Sequence[NsxtEdgegatewayStaticRouteNextHopArgs]] = None,
nsxt_edgegateway_static_route_id: Optional[str] = None,
org: Optional[str] = None) -> NsxtEdgegatewayStaticRoute
func GetNsxtEdgegatewayStaticRoute(ctx *Context, name string, id IDInput, state *NsxtEdgegatewayStaticRouteState, opts ...ResourceOption) (*NsxtEdgegatewayStaticRoute, error)
public static NsxtEdgegatewayStaticRoute Get(string name, Input<string> id, NsxtEdgegatewayStaticRouteState? state, CustomResourceOptions? opts = null)
public static NsxtEdgegatewayStaticRoute get(String name, Output<String> id, NsxtEdgegatewayStaticRouteState state, CustomResourceOptions options)
resources: _: type: vcd:NsxtEdgegatewayStaticRoute 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 for NSX-T Edge Gateway Static Route
- Edge
Gateway stringId - NSX-T Edge Gateway ID
- Name string
- Name for NSX-T Edge Gateway Static Route
- Network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- Next
Hops List<NsxtEdgegateway Static Route Next Hop> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- Nsxt
Edgegateway stringStatic Route Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- Description string
- Description for NSX-T Edge Gateway Static Route
- Edge
Gateway stringId - NSX-T Edge Gateway ID
- Name string
- Name for NSX-T Edge Gateway Static Route
- Network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- Next
Hops []NsxtEdgegateway Static Route Next Hop Args A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- Nsxt
Edgegateway stringStatic Route Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- description String
- Description for NSX-T Edge Gateway Static Route
- edge
Gateway StringId - NSX-T Edge Gateway ID
- name String
- Name for NSX-T Edge Gateway Static Route
- network
Cidr String - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops List<NsxtEdgegateway Static Route Next Hop> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- nsxt
Edgegateway StringStatic Route Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- description string
- Description for NSX-T Edge Gateway Static Route
- edge
Gateway stringId - NSX-T Edge Gateway ID
- name string
- Name for NSX-T Edge Gateway Static Route
- network
Cidr string - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops NsxtEdgegateway Static Route Next Hop[] A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- nsxt
Edgegateway stringStatic Route Id - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- description str
- Description for NSX-T Edge Gateway Static Route
- edge_
gateway_ strid - NSX-T Edge Gateway ID
- name str
- Name for NSX-T Edge Gateway Static Route
- network_
cidr str - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next_
hops Sequence[NsxtEdgegateway Static Route Next Hop Args] A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- nsxt_
edgegateway_ strstatic_ route_ id - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
- description String
- Description for NSX-T Edge Gateway Static Route
- edge
Gateway StringId - NSX-T Edge Gateway ID
- name String
- Name for NSX-T Edge Gateway Static Route
- network
Cidr String - Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- next
Hops List<Property Map> A set of next hops to use within the static route. At least one is required. See Next Hop for definition structure.
- nsxt
Edgegateway StringStatic Route Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
Supporting Types
NsxtEdgegatewayStaticRouteNextHop, NsxtEdgegatewayStaticRouteNextHopArgs
- Admin
Distance double - Admin distance of next hop
- Ip
Address string - IP Address of next hop
- Scope
Nsxt
Edgegateway Static Route Next Hop Scope
- Admin
Distance float64 - Admin distance of next hop
- Ip
Address string - IP Address of next hop
- Scope
Nsxt
Edgegateway Static Route Next Hop Scope
- admin
Distance Double - Admin distance of next hop
- ip
Address String - IP Address of next hop
- scope
Nsxt
Edgegateway Static Route Next Hop Scope
- admin
Distance number - Admin distance of next hop
- ip
Address string - IP Address of next hop
- scope
Nsxt
Edgegateway Static Route Next Hop Scope
- admin_
distance float - Admin distance of next hop
- ip_
address str - IP Address of next hop
- scope
Nsxt
Edgegateway Static Route Next Hop Scope
- admin
Distance Number - Admin distance of next hop
- ip
Address String - IP Address of next hop
- scope Property Map
NsxtEdgegatewayStaticRouteNextHopScope, NsxtEdgegatewayStaticRouteNextHopScopeArgs
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.