vcd.VappOrgNetwork
Explore with Pulumi AI
Create VappOrgNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VappOrgNetwork(name: string, args: VappOrgNetworkArgs, opts?: CustomResourceOptions);
@overload
def VappOrgNetwork(resource_name: str,
args: VappOrgNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VappOrgNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_network_name: Optional[str] = None,
vapp_name: Optional[str] = None,
is_fenced: Optional[bool] = None,
org: Optional[str] = None,
reboot_vapp_on_removal: Optional[bool] = None,
retain_ip_mac_enabled: Optional[bool] = None,
vapp_org_network_id: Optional[str] = None,
vdc: Optional[str] = None)
func NewVappOrgNetwork(ctx *Context, name string, args VappOrgNetworkArgs, opts ...ResourceOption) (*VappOrgNetwork, error)
public VappOrgNetwork(string name, VappOrgNetworkArgs args, CustomResourceOptions? opts = null)
public VappOrgNetwork(String name, VappOrgNetworkArgs args)
public VappOrgNetwork(String name, VappOrgNetworkArgs args, CustomResourceOptions options)
type: vcd:VappOrgNetwork
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 VappOrgNetworkArgs
- 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 VappOrgNetworkArgs
- 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 VappOrgNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VappOrgNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VappOrgNetworkArgs
- 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 vappOrgNetworkResource = new Vcd.VappOrgNetwork("vappOrgNetworkResource", new()
{
OrgNetworkName = "string",
VappName = "string",
IsFenced = false,
Org = "string",
RebootVappOnRemoval = false,
RetainIpMacEnabled = false,
VappOrgNetworkId = "string",
Vdc = "string",
});
example, err := vcd.NewVappOrgNetwork(ctx, "vappOrgNetworkResource", &vcd.VappOrgNetworkArgs{
OrgNetworkName: pulumi.String("string"),
VappName: pulumi.String("string"),
IsFenced: pulumi.Bool(false),
Org: pulumi.String("string"),
RebootVappOnRemoval: pulumi.Bool(false),
RetainIpMacEnabled: pulumi.Bool(false),
VappOrgNetworkId: pulumi.String("string"),
Vdc: pulumi.String("string"),
})
var vappOrgNetworkResource = new VappOrgNetwork("vappOrgNetworkResource", VappOrgNetworkArgs.builder()
.orgNetworkName("string")
.vappName("string")
.isFenced(false)
.org("string")
.rebootVappOnRemoval(false)
.retainIpMacEnabled(false)
.vappOrgNetworkId("string")
.vdc("string")
.build());
vapp_org_network_resource = vcd.VappOrgNetwork("vappOrgNetworkResource",
org_network_name="string",
vapp_name="string",
is_fenced=False,
org="string",
reboot_vapp_on_removal=False,
retain_ip_mac_enabled=False,
vapp_org_network_id="string",
vdc="string")
const vappOrgNetworkResource = new vcd.VappOrgNetwork("vappOrgNetworkResource", {
orgNetworkName: "string",
vappName: "string",
isFenced: false,
org: "string",
rebootVappOnRemoval: false,
retainIpMacEnabled: false,
vappOrgNetworkId: "string",
vdc: "string",
});
type: vcd:VappOrgNetwork
properties:
isFenced: false
org: string
orgNetworkName: string
rebootVappOnRemoval: false
retainIpMacEnabled: false
vappName: string
vappOrgNetworkId: string
vdc: string
VappOrgNetwork 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 VappOrgNetwork resource accepts the following input properties:
- Org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- Vapp
Name string - The vApp this network belongs to.
- Is
Fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Reboot
Vapp boolOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - Retain
Ip boolMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - Vapp
Org stringNetwork Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- Org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- Vapp
Name string - The vApp this network belongs to.
- Is
Fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Reboot
Vapp boolOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - Retain
Ip boolMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - Vapp
Org stringNetwork Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- org
Network StringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- vapp
Name String - The vApp this network belongs to.
- is
Fenced Boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- reboot
Vapp BooleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip BooleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Org StringNetwork Id - vdc String
- The name of VDC to use, optional if defined at provider level.
- org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- vapp
Name string - The vApp this network belongs to.
- is
Fenced boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- reboot
Vapp booleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip booleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Org stringNetwork Id - vdc string
- The name of VDC to use, optional if defined at provider level.
- org_
network_ strname - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- vapp_
name str - The vApp this network belongs to.
- is_
fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- reboot_
vapp_ boolon_ removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain_
ip_ boolmac_ enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp_
org_ strnetwork_ id - vdc str
- The name of VDC to use, optional if defined at provider level.
- org
Network StringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- vapp
Name String - The vApp this network belongs to.
- is
Fenced Boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- reboot
Vapp BooleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip BooleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Org StringNetwork 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 VappOrgNetwork 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 VappOrgNetwork Resource
Get an existing VappOrgNetwork 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?: VappOrgNetworkState, opts?: CustomResourceOptions): VappOrgNetwork
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_fenced: Optional[bool] = None,
org: Optional[str] = None,
org_network_name: Optional[str] = None,
reboot_vapp_on_removal: Optional[bool] = None,
retain_ip_mac_enabled: Optional[bool] = None,
vapp_name: Optional[str] = None,
vapp_org_network_id: Optional[str] = None,
vdc: Optional[str] = None) -> VappOrgNetwork
func GetVappOrgNetwork(ctx *Context, name string, id IDInput, state *VappOrgNetworkState, opts ...ResourceOption) (*VappOrgNetwork, error)
public static VappOrgNetwork Get(string name, Input<string> id, VappOrgNetworkState? state, CustomResourceOptions? opts = null)
public static VappOrgNetwork get(String name, Output<String> id, VappOrgNetworkState state, CustomResourceOptions options)
resources: _: type: vcd:VappOrgNetwork 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.
- Is
Fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- Reboot
Vapp boolOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - Retain
Ip boolMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - Vapp
Name string - The vApp this network belongs to.
- Vapp
Org stringNetwork Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- Is
Fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- Reboot
Vapp boolOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - Retain
Ip boolMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - Vapp
Name string - The vApp this network belongs to.
- Vapp
Org stringNetwork Id - Vdc string
- The name of VDC to use, optional if defined at provider level.
- is
Fenced Boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network StringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- reboot
Vapp BooleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip BooleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Name String - The vApp this network belongs to.
- vapp
Org StringNetwork Id - vdc String
- The name of VDC to use, optional if defined at provider level.
- is
Fenced boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network stringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- reboot
Vapp booleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip booleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Name string - The vApp this network belongs to.
- vapp
Org stringNetwork Id - vdc string
- The name of VDC to use, optional if defined at provider level.
- is_
fenced bool - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org_
network_ strname - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- reboot_
vapp_ boolon_ removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain_
ip_ boolmac_ enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp_
name str - The vApp this network belongs to.
- vapp_
org_ strnetwork_ id - vdc str
- The name of VDC to use, optional if defined at provider level.
- is
Fenced Boolean - Fencing allows identical virtual machines in different vApp networks connect to organization VDC networks that are accessed in this vApp. Default is false.
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network StringName - An Org network name to which vApp network is connected. If not configured, then an isolated network is created.
- reboot
Vapp BooleanOn Removal - VCD 10.4.1+ API prohibits removal of vApp
network from a powered on vApp. Set to
true
to power off the vApp during vApp network removal. If the vApp's original state was powered on, it will be powered back on after removing the network. (defaultfalse
) Note. It only affects delete operation for the resource and will never power cycle vApp during update operations. Changing this value will cause plan change, but update will be a no-op operation. - retain
Ip BooleanMac Enabled - Specifies whether the network resources such as IP/MAC of router will be retained across deployments. Configurable when
is_fenced
is true. - vapp
Name String - The vApp this network belongs to.
- vapp
Org StringNetwork Id - vdc String
- The name of VDC to use, optional if defined at provider level.
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.