1. Packages
  2. Vcd Provider
  3. API Docs
  4. VappStaticRouting
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.VappStaticRouting

Explore with Pulumi AI

Create VappStaticRouting Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VappStaticRouting(name: string, args: VappStaticRoutingArgs, opts?: CustomResourceOptions);
@overload
def VappStaticRouting(resource_name: str,
                      args: VappStaticRoutingArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def VappStaticRouting(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      network_id: Optional[str] = None,
                      vapp_id: Optional[str] = None,
                      enabled: Optional[bool] = None,
                      org: Optional[str] = None,
                      rules: Optional[Sequence[VappStaticRoutingRuleArgs]] = None,
                      vapp_static_routing_id: Optional[str] = None,
                      vdc: Optional[str] = None)
func NewVappStaticRouting(ctx *Context, name string, args VappStaticRoutingArgs, opts ...ResourceOption) (*VappStaticRouting, error)
public VappStaticRouting(string name, VappStaticRoutingArgs args, CustomResourceOptions? opts = null)
public VappStaticRouting(String name, VappStaticRoutingArgs args)
public VappStaticRouting(String name, VappStaticRoutingArgs args, CustomResourceOptions options)
type: vcd:VappStaticRouting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VappStaticRoutingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VappStaticRoutingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VappStaticRoutingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VappStaticRoutingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VappStaticRoutingArgs
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 vappStaticRoutingResource = new Vcd.VappStaticRouting("vappStaticRoutingResource", new()
{
    NetworkId = "string",
    VappId = "string",
    Enabled = false,
    Org = "string",
    Rules = new[]
    {
        new Vcd.Inputs.VappStaticRoutingRuleArgs
        {
            Name = "string",
            NetworkCidr = "string",
            NextHopIp = "string",
        },
    },
    VappStaticRoutingId = "string",
    Vdc = "string",
});
Copy
example, err := vcd.NewVappStaticRouting(ctx, "vappStaticRoutingResource", &vcd.VappStaticRoutingArgs{
NetworkId: pulumi.String("string"),
VappId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Org: pulumi.String("string"),
Rules: .VappStaticRoutingRuleArray{
&.VappStaticRoutingRuleArgs{
Name: pulumi.String("string"),
NetworkCidr: pulumi.String("string"),
NextHopIp: pulumi.String("string"),
},
},
VappStaticRoutingId: pulumi.String("string"),
Vdc: pulumi.String("string"),
})
Copy
var vappStaticRoutingResource = new VappStaticRouting("vappStaticRoutingResource", VappStaticRoutingArgs.builder()
    .networkId("string")
    .vappId("string")
    .enabled(false)
    .org("string")
    .rules(VappStaticRoutingRuleArgs.builder()
        .name("string")
        .networkCidr("string")
        .nextHopIp("string")
        .build())
    .vappStaticRoutingId("string")
    .vdc("string")
    .build());
Copy
vapp_static_routing_resource = vcd.VappStaticRouting("vappStaticRoutingResource",
    network_id="string",
    vapp_id="string",
    enabled=False,
    org="string",
    rules=[{
        "name": "string",
        "network_cidr": "string",
        "next_hop_ip": "string",
    }],
    vapp_static_routing_id="string",
    vdc="string")
Copy
const vappStaticRoutingResource = new vcd.VappStaticRouting("vappStaticRoutingResource", {
    networkId: "string",
    vappId: "string",
    enabled: false,
    org: "string",
    rules: [{
        name: "string",
        networkCidr: "string",
        nextHopIp: "string",
    }],
    vappStaticRoutingId: "string",
    vdc: "string",
});
Copy
type: vcd:VappStaticRouting
properties:
    enabled: false
    networkId: string
    org: string
    rules:
        - name: string
          networkCidr: string
          nextHopIp: string
    vappId: string
    vappStaticRoutingId: string
    vdc: string
Copy

VappStaticRouting 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 VappStaticRouting resource accepts the following input properties:

NetworkId This property is required. string
The identifier of vApp network.
VappId This property is required. string
The identifier of vApp.
Enabled bool
Enable or disable static Routing. Default is true.
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
Rules List<VappStaticRoutingRule>

Configures a static routing rule; see Rules below for details.

VappStaticRoutingId string
Vdc string
The name of VDC to use, optional if defined at provider level.
NetworkId This property is required. string
The identifier of vApp network.
VappId This property is required. string
The identifier of vApp.
Enabled bool
Enable or disable static Routing. Default is true.
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
Rules []VappStaticRoutingRuleArgs

Configures a static routing rule; see Rules below for details.

VappStaticRoutingId string
Vdc string
The name of VDC to use, optional if defined at provider level.
networkId This property is required. String
The identifier of vApp network.
vappId This property is required. String
The identifier of vApp.
enabled Boolean
Enable or disable static Routing. Default is true.
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules List<VappStaticRoutingRule>

Configures a static routing rule; see Rules below for details.

vappStaticRoutingId String
vdc String
The name of VDC to use, optional if defined at provider level.
networkId This property is required. string
The identifier of vApp network.
vappId This property is required. string
The identifier of vApp.
enabled boolean
Enable or disable static Routing. Default is true.
org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules VappStaticRoutingRule[]

Configures a static routing rule; see Rules below for details.

vappStaticRoutingId string
vdc string
The name of VDC to use, optional if defined at provider level.
network_id This property is required. str
The identifier of vApp network.
vapp_id This property is required. str
The identifier of vApp.
enabled bool
Enable or disable static Routing. Default is true.
org str
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules Sequence[VappStaticRoutingRuleArgs]

Configures a static routing rule; see Rules below for details.

vapp_static_routing_id str
vdc str
The name of VDC to use, optional if defined at provider level.
networkId This property is required. String
The identifier of vApp network.
vappId This property is required. String
The identifier of vApp.
enabled Boolean
Enable or disable static Routing. Default is true.
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules List<Property Map>

Configures a static routing rule; see Rules below for details.

vappStaticRoutingId String
vdc String
The name of VDC to use, optional if defined at provider level.

Outputs

All input properties are implicitly available as output properties. Additionally, the VappStaticRouting 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 VappStaticRouting Resource

Get an existing VappStaticRouting 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?: VappStaticRoutingState, opts?: CustomResourceOptions): VappStaticRouting
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        network_id: Optional[str] = None,
        org: Optional[str] = None,
        rules: Optional[Sequence[VappStaticRoutingRuleArgs]] = None,
        vapp_id: Optional[str] = None,
        vapp_static_routing_id: Optional[str] = None,
        vdc: Optional[str] = None) -> VappStaticRouting
func GetVappStaticRouting(ctx *Context, name string, id IDInput, state *VappStaticRoutingState, opts ...ResourceOption) (*VappStaticRouting, error)
public static VappStaticRouting Get(string name, Input<string> id, VappStaticRoutingState? state, CustomResourceOptions? opts = null)
public static VappStaticRouting get(String name, Output<String> id, VappStaticRoutingState state, CustomResourceOptions options)
resources:  _:    type: vcd:VappStaticRouting    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Enabled bool
Enable or disable static Routing. Default is true.
NetworkId string
The identifier of vApp network.
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
Rules List<VappStaticRoutingRule>

Configures a static routing rule; see Rules below for details.

VappId string
The identifier of vApp.
VappStaticRoutingId string
Vdc string
The name of VDC to use, optional if defined at provider level.
Enabled bool
Enable or disable static Routing. Default is true.
NetworkId string
The identifier of vApp network.
Org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
Rules []VappStaticRoutingRuleArgs

Configures a static routing rule; see Rules below for details.

VappId string
The identifier of vApp.
VappStaticRoutingId string
Vdc string
The name of VDC to use, optional if defined at provider level.
enabled Boolean
Enable or disable static Routing. Default is true.
networkId String
The identifier of vApp network.
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules List<VappStaticRoutingRule>

Configures a static routing rule; see Rules below for details.

vappId String
The identifier of vApp.
vappStaticRoutingId String
vdc String
The name of VDC to use, optional if defined at provider level.
enabled boolean
Enable or disable static Routing. Default is true.
networkId string
The identifier of vApp network.
org string
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules VappStaticRoutingRule[]

Configures a static routing rule; see Rules below for details.

vappId string
The identifier of vApp.
vappStaticRoutingId string
vdc string
The name of VDC to use, optional if defined at provider level.
enabled bool
Enable or disable static Routing. Default is true.
network_id str
The identifier of vApp network.
org str
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules Sequence[VappStaticRoutingRuleArgs]

Configures a static routing rule; see Rules below for details.

vapp_id str
The identifier of vApp.
vapp_static_routing_id str
vdc str
The name of VDC to use, optional if defined at provider level.
enabled Boolean
Enable or disable static Routing. Default is true.
networkId String
The identifier of vApp network.
org String
The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
rules List<Property Map>

Configures a static routing rule; see Rules below for details.

vappId String
The identifier of vApp.
vappStaticRoutingId String
vdc String
The name of VDC to use, optional if defined at provider level.

Supporting Types

VappStaticRoutingRule
, VappStaticRoutingRuleArgs

Name This property is required. string
Name for the static route.
NetworkCidr This property is required. string
network specification in CIDR.
NextHopIp This property is required. string
IP Address of Next Hop router/gateway.
Name This property is required. string
Name for the static route.
NetworkCidr This property is required. string
network specification in CIDR.
NextHopIp This property is required. string
IP Address of Next Hop router/gateway.
name This property is required. String
Name for the static route.
networkCidr This property is required. String
network specification in CIDR.
nextHopIp This property is required. String
IP Address of Next Hop router/gateway.
name This property is required. string
Name for the static route.
networkCidr This property is required. string
network specification in CIDR.
nextHopIp This property is required. string
IP Address of Next Hop router/gateway.
name This property is required. str
Name for the static route.
network_cidr This property is required. str
network specification in CIDR.
next_hop_ip This property is required. str
IP Address of Next Hop router/gateway.
name This property is required. String
Name for the static route.
networkCidr This property is required. String
network specification in CIDR.
nextHopIp This property is required. String
IP Address of Next Hop router/gateway.

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.