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

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    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 string
    The unique name of the resource.
    args VappStaticRoutingArgs
    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 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 string
    The unique name of the resource.
    args VappStaticRoutingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VappStaticRoutingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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: vcd.VappStaticRoutingRuleArray{
    		&vcd.VappStaticRoutingRuleArgs{
    			Name:        pulumi.String("string"),
    			NetworkCidr: pulumi.String("string"),
    			NextHopIp:   pulumi.String("string"),
    		},
    	},
    	VappStaticRoutingId: pulumi.String("string"),
    	Vdc:                 pulumi.String("string"),
    })
    
    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());
    
    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")
    
    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",
    });
    
    type: vcd:VappStaticRouting
    properties:
        enabled: false
        networkId: string
        org: string
        rules:
            - name: string
              networkCidr: string
              nextHopIp: string
        vappId: string
        vappStaticRoutingId: string
        vdc: string
    

    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 string
    The identifier of vApp network.
    VappId 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 string
    The identifier of vApp network.
    VappId 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 String
    The identifier of vApp network.
    vappId 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 string
    The identifier of vApp network.
    vappId 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 str
    The identifier of vApp network.
    vapp_id 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 String
    The identifier of vApp network.
    vappId 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
    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.
    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 string
    Name for the static route.
    NetworkCidr string
    network specification in CIDR.
    NextHopIp string
    IP Address of Next Hop router/gateway.
    Name string
    Name for the static route.
    NetworkCidr string
    network specification in CIDR.
    NextHopIp string
    IP Address of Next Hop router/gateway.
    name String
    Name for the static route.
    networkCidr String
    network specification in CIDR.
    nextHopIp String
    IP Address of Next Hop router/gateway.
    name string
    Name for the static route.
    networkCidr string
    network specification in CIDR.
    nextHopIp string
    IP Address of Next Hop router/gateway.
    name str
    Name for the static route.
    network_cidr str
    network specification in CIDR.
    next_hop_ip str
    IP Address of Next Hop router/gateway.
    name String
    Name for the static route.
    networkCidr String
    network specification in CIDR.
    nextHopIp 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.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware