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 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:
- Network
Id string - The identifier of vApp network.
- Vapp
Id 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<Vapp
Static Routing Rule> Configures a static routing rule; see Rules below for details.
- Vapp
Static stringRouting Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- Network
Id string - The identifier of vApp network.
- Vapp
Id 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
[]Vapp
Static Routing Rule Args Configures a static routing rule; see Rules below for details.
- Vapp
Static stringRouting Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- network
Id String - The identifier of vApp network.
- vapp
Id 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<Vapp
Static Routing Rule> Configures a static routing rule; see Rules below for details.
- vapp
Static StringRouting Id - vdc String
- The name of VDC to use, optional if defined at provider level.
- network
Id string - The identifier of vApp network.
- vapp
Id 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
Vapp
Static Routing Rule[] Configures a static routing rule; see Rules below for details.
- vapp
Static stringRouting Id - 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[Vapp
Static Routing Rule Args] Configures a static routing rule; see Rules below for details.
- vapp_
static_ strrouting_ id - vdc str
- The name of VDC to use, optional if defined at provider level.
- network
Id String - The identifier of vApp network.
- vapp
Id 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.
- vapp
Static StringRouting Id - 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.
- Enabled bool
- Enable or disable static Routing. Default is
true
. - Network
Id 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<Vapp
Static Routing Rule> Configures a static routing rule; see Rules below for details.
- Vapp
Id string - The identifier of vApp.
- Vapp
Static stringRouting Id - 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 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
[]Vapp
Static Routing Rule Args Configures a static routing rule; see Rules below for details.
- Vapp
Id string - The identifier of vApp.
- Vapp
Static stringRouting Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- enabled Boolean
- Enable or disable static Routing. Default is
true
. - network
Id 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<Vapp
Static Routing Rule> Configures a static routing rule; see Rules below for details.
- vapp
Id String - The identifier of vApp.
- vapp
Static StringRouting Id - vdc String
- The name of VDC to use, optional if defined at provider level.
- enabled boolean
- Enable or disable static Routing. Default is
true
. - network
Id 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
Vapp
Static Routing Rule[] Configures a static routing rule; see Rules below for details.
- vapp
Id string - The identifier of vApp.
- vapp
Static stringRouting Id - 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[Vapp
Static Routing Rule Args] Configures a static routing rule; see Rules below for details.
- vapp_
id str - The identifier of vApp.
- vapp_
static_ strrouting_ id - vdc str
- The name of VDC to use, optional if defined at provider level.
- enabled Boolean
- Enable or disable static Routing. Default is
true
. - network
Id 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.
- vapp
Id String - The identifier of vApp.
- vapp
Static StringRouting Id - 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.
- Network
Cidr string - network specification in CIDR.
- Next
Hop stringIp - IP Address of Next Hop router/gateway.
- Name string
- Name for the static route.
- Network
Cidr string - network specification in CIDR.
- Next
Hop stringIp - IP Address of Next Hop router/gateway.
- name String
- Name for the static route.
- network
Cidr String - network specification in CIDR.
- next
Hop StringIp - IP Address of Next Hop router/gateway.
- name string
- Name for the static route.
- network
Cidr string - network specification in CIDR.
- next
Hop stringIp - IP Address of Next Hop router/gateway.
- name str
- Name for the static route.
- network_
cidr str - network specification in CIDR.
- next_
hop_ strip - IP Address of Next Hop router/gateway.
- name String
- Name for the static route.
- network
Cidr String - network specification in CIDR.
- next
Hop StringIp - 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.