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: .NsxtEdgegatewayStaticRouteNextHopArray{
&.NsxtEdgegatewayStaticRouteNextHopArgs{
AdminDistance: pulumi.Float64(0),
IpAddress: pulumi.String("string"),
Scope: &.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:
- EdgeGateway stringId 
- NSX-T Edge Gateway ID
- NetworkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- NextHops 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
- NsxtEdgegateway 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
- EdgeGateway stringId 
- NSX-T Edge Gateway ID
- NetworkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- NextHops []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
- NsxtEdgegateway 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
- edgeGateway StringId 
- NSX-T Edge Gateway ID
- networkCidr String
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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
- nsxtEdgegateway 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
- edgeGateway stringId 
- NSX-T Edge Gateway ID
- networkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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
- nsxtEdgegateway 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
- edgeGateway StringId 
- NSX-T Edge Gateway ID
- networkCidr String
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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
- nsxtEdgegateway 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) -> NsxtEdgegatewayStaticRoutefunc 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
- EdgeGateway stringId 
- NSX-T Edge Gateway ID
- Name string
- Name for NSX-T Edge Gateway Static Route
- NetworkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- NextHops 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. 
- NsxtEdgegateway 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
- EdgeGateway stringId 
- NSX-T Edge Gateway ID
- Name string
- Name for NSX-T Edge Gateway Static Route
- NetworkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- NextHops []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. 
- NsxtEdgegateway 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
- edgeGateway StringId 
- NSX-T Edge Gateway ID
- name String
- Name for NSX-T Edge Gateway Static Route
- networkCidr String
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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. 
- nsxtEdgegateway 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
- edgeGateway stringId 
- NSX-T Edge Gateway ID
- name string
- Name for NSX-T Edge Gateway Static Route
- networkCidr string
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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. 
- nsxtEdgegateway 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
- edgeGateway StringId 
- NSX-T Edge Gateway ID
- name String
- Name for NSX-T Edge Gateway Static Route
- networkCidr String
- Specifies network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.
- nextHops 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. 
- nsxtEdgegateway 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            
- AdminDistance double
- Admin distance of next hop
- IpAddress string
- IP Address of next hop
- Scope
NsxtEdgegateway Static Route Next Hop Scope 
- AdminDistance float64
- Admin distance of next hop
- IpAddress string
- IP Address of next hop
- Scope
NsxtEdgegateway Static Route Next Hop Scope 
- adminDistance Double
- Admin distance of next hop
- ipAddress String
- IP Address of next hop
- scope
NsxtEdgegateway Static Route Next Hop Scope 
- adminDistance number
- Admin distance of next hop
- ipAddress string
- IP Address of next hop
- scope
NsxtEdgegateway Static Route Next Hop Scope 
- admin_distance float
- Admin distance of next hop
- ip_address str
- IP Address of next hop
- scope
NsxtEdgegateway Static Route Next Hop Scope 
- adminDistance Number
- Admin distance of next hop
- ipAddress 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 vcdTerraform Provider.