computenat#
- async idem_vra.exec.vra.iaas.computenat.create_compute_nat(hub, ctx, name, natRules, projectId, gateway, **kwargs)[source]#
Create a Compute Nat Create a new Compute Nat. Performs POST /iaas/api/compute-nats
- Parameters:
name (string) – (required in body) A human-friendly name used as an identifier in APIs that support this option.
natRules (array) – (required in body) List of NAT Rules
projectId (string) – (required in body) The id of the project the current user belongs to.
gateway (string) – (required in body) Id of the Compute Gateway to which the Compute Nat resource will be attached
apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
customProperties (object) – (optional in body) Additional custom properties that may be used to extend this resource.
deploymentId (string) – (optional in body) The id of the deployment that is associated with this resource
- async idem_vra.exec.vra.iaas.computenat.delete_compute_nat(hub, ctx, p_id, **kwargs)[source]#
Delete a compute nat Delete compute nat with a given id Performs DELETE /iaas/api/compute-nats/{id}
- Parameters:
p_id (string) – (required in path) The ID of the compute nat resource.
forceDelete (boolean) – (optional in query) Controls whether this is a force delete operation. If true, best effort is made for deleting this nat. Use with caution as force deleting may cause inconsistencies between the cloud provider and vRA.
apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
- async idem_vra.exec.vra.iaas.computenat.get_compute_nat(hub, ctx, p_id, **kwargs)[source]#
Get a Compute Nat Get Compute Nat with a given id Performs GET /iaas/api/compute-nats/{id}
- Parameters:
p_id (string) – (required in path) The ID of the Compute Nat resource.
apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
- async idem_vra.exec.vra.iaas.computenat.get_compute_nats(hub, ctx, **kwargs)[source]#
Get Compute Nats Get all Compute Nats Performs GET /iaas/api/compute-nats
- Parameters:
apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
- async idem_vra.exec.vra.iaas.computenat.reconfigure_nat(hub, ctx, p_id, natRules, **kwargs)[source]#
Reconfigure operation for nat Day-2 reconfigure operation for nat Performs POST /iaas/api/compute-nats/{id}/operations/reconfigure
- Parameters:
p_id (string) – (required in path) The ID of the Compute Nat
natRules (array) – (required in body) List of NAT rules to be applied on this Compute Nat.
apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about