Class: OCI::Core::VirtualNetworkClient
- Inherits:
-
Object
- Object
- OCI::Core::VirtualNetworkClient
- Defined in:
- lib/oci/core/virtual_network_client.rb
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
Instance Method Summary collapse
-
#bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {}) ⇒ Response
Adds one or more customer public IP prefixes to the specified public virtual circuit.
-
#bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {}) ⇒ Response
Removes one or more customer public IP prefixes from the specified public virtual circuit.
-
#connect_local_peering_gateways(local_peering_gateway_id, connect_local_peering_gateways_details, opts = {}) ⇒ Response
Connects this local peering gateway (LPG) to another one in the same region.
-
#connect_remote_peering_connections(remote_peering_connection_id, connect_remote_peering_connections_details, opts = {}) ⇒ Response
Connects this RPC to another one in a different region.
-
#create_cpe(create_cpe_details, opts = {}) ⇒ Response
Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment.
-
#create_cross_connect(create_cross_connect_details, opts = {}) ⇒ Response
Creates a new cross-connect.
-
#create_cross_connect_group(create_cross_connect_group_details, opts = {}) ⇒ Response
Creates a new cross-connect group to use with Oracle Cloud Infrastructure FastConnect.
-
#create_dhcp_options(create_dhcp_details, opts = {}) ⇒ Response
Creates a new set of DHCP options for the specified VCN.
-
#create_drg(create_drg_details, opts = {}) ⇒ Response
Creates a new Dynamic Routing Gateway (DRG) in the specified compartment.
-
#create_drg_attachment(create_drg_attachment_details, opts = {}) ⇒ Response
Attaches the specified DRG to the specified VCN.
-
#create_internet_gateway(create_internet_gateway_details, opts = {}) ⇒ Response
Creates a new Internet Gateway for the specified VCN.
-
#create_ip_sec_connection(create_ip_sec_connection_details, opts = {}) ⇒ Response
Creates a new IPSec connection between the specified DRG and CPE.
-
#create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) ⇒ Response
Creates a new local peering gateway (LPG) for the specified VCN.
-
#create_private_ip(create_private_ip_details, opts = {}) ⇒ Response
Creates a secondary private IP for the specified VNIC.
-
#create_public_ip(create_public_ip_details, opts = {}) ⇒ Response
Creates a public IP.
-
#create_remote_peering_connection(create_remote_peering_connection_details, opts = {}) ⇒ Response
Creates a new remote peering connection (RPC) for the specified DRG.
-
#create_route_table(create_route_table_details, opts = {}) ⇒ Response
Creates a new route table for the specified VCN.
-
#create_security_list(create_security_list_details, opts = {}) ⇒ Response
Creates a new security list for the specified VCN.
-
#create_subnet(create_subnet_details, opts = {}) ⇒ Response
Creates a new subnet in the specified VCN.
-
#create_vcn(create_vcn_details, opts = {}) ⇒ Response
Creates a new Virtual Cloud Network (VCN).
-
#create_virtual_circuit(create_virtual_circuit_details, opts = {}) ⇒ Response
Creates a new virtual circuit to use with Oracle Cloud Infrastructure FastConnect.
-
#delete_cpe(cpe_id, opts = {}) ⇒ Response
Deletes the specified CPE object.
-
#delete_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Deletes the specified cross-connect.
-
#delete_cross_connect_group(cross_connect_group_id, opts = {}) ⇒ Response
Deletes the specified cross-connect group.
-
#delete_dhcp_options(dhcp_id, opts = {}) ⇒ Response
Deletes the specified set of DHCP options, but only if it’s not associated with a subnet.
-
#delete_drg(drg_id, opts = {}) ⇒ Response
Deletes the specified DRG.
-
#delete_drg_attachment(drg_attachment_id, opts = {}) ⇒ Response
Detaches a DRG from a VCN by deleting the corresponding ‘DrgAttachment`.
-
#delete_internet_gateway(ig_id, opts = {}) ⇒ Response
Deletes the specified Internet Gateway.
-
#delete_ip_sec_connection(ipsc_id, opts = {}) ⇒ Response
Deletes the specified IPSec connection.
-
#delete_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Deletes the specified local peering gateway (LPG).
-
#delete_private_ip(private_ip_id, opts = {}) ⇒ Response
Unassigns and deletes the specified private IP.
-
#delete_public_ip(public_ip_id, opts = {}) ⇒ Response
Unassigns and deletes the specified public IP (either ephemeral or reserved).
-
#delete_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Deletes the remote peering connection (RPC).
-
#delete_route_table(rt_id, opts = {}) ⇒ Response
Deletes the specified route table, but only if it’s not associated with a subnet.
-
#delete_security_list(security_list_id, opts = {}) ⇒ Response
Deletes the specified security list, but only if it’s not associated with a subnet.
-
#delete_subnet(subnet_id, opts = {}) ⇒ Response
Deletes the specified subnet, but only if there are no instances in the subnet.
-
#delete_vcn(vcn_id, opts = {}) ⇒ Response
Deletes the specified VCN.
-
#delete_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Deletes the specified virtual circuit.
-
#get_cpe(cpe_id, opts = {}) ⇒ Response
Gets the specified CPE’s information.
-
#get_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Gets the specified cross-connect’s information.
-
#get_cross_connect_group(cross_connect_group_id, opts = {}) ⇒ Response
Gets the specified cross-connect group’s information.
-
#get_cross_connect_letter_of_authority(cross_connect_id, opts = {}) ⇒ Response
Gets the Letter of Authority for the specified cross-connect.
-
#get_cross_connect_status(cross_connect_id, opts = {}) ⇒ Response
Gets the status of the specified cross-connect.
-
#get_dhcp_options(dhcp_id, opts = {}) ⇒ Response
Gets the specified set of DHCP options.
-
#get_drg(drg_id, opts = {}) ⇒ Response
Gets the specified DRG’s information.
-
#get_drg_attachment(drg_attachment_id, opts = {}) ⇒ Response
Gets the information for the specified ‘DrgAttachment`.
-
#get_fast_connect_provider_service(provider_service_id, opts = {}) ⇒ Response
Gets the specified provider service.
-
#get_internet_gateway(ig_id, opts = {}) ⇒ Response
Gets the specified Internet Gateway’s information.
-
#get_ip_sec_connection(ipsc_id, opts = {}) ⇒ Response
Gets the specified IPSec connection’s basic information, including the static routes for the on-premises router.
-
#get_ip_sec_connection_device_config(ipsc_id, opts = {}) ⇒ Response
Gets the configuration information for the specified IPSec connection.
-
#get_ip_sec_connection_device_status(ipsc_id, opts = {}) ⇒ Response
Gets the status of the specified IPSec connection (whether it’s up or down).
-
#get_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Gets the specified local peering gateway’s information.
-
#get_private_ip(private_ip_id, opts = {}) ⇒ Response
Gets the specified private IP.
-
#get_public_ip(public_ip_id, opts = {}) ⇒ Response
Gets the specified public IP.
-
#get_public_ip_by_ip_address(get_public_ip_by_ip_address_details, opts = {}) ⇒ Response
Gets the public IP based on the public IP address (for example, 129.146.2.1).
-
#get_public_ip_by_private_ip_id(get_public_ip_by_private_ip_id_details, opts = {}) ⇒ Response
Gets the public IP assigned to the specified private IP.
-
#get_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Get the specified remote peering connection’s information.
-
#get_route_table(rt_id, opts = {}) ⇒ Response
Gets the specified route table’s information.
-
#get_security_list(security_list_id, opts = {}) ⇒ Response
Gets the specified security list’s information.
-
#get_subnet(subnet_id, opts = {}) ⇒ Response
Gets the specified subnet’s information.
-
#get_vcn(vcn_id, opts = {}) ⇒ Response
Gets the specified VCN’s information.
-
#get_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Gets the specified virtual circuit’s information.
-
#get_vnic(vnic_id, opts = {}) ⇒ Response
Gets the information for the specified virtual network interface card (VNIC).
-
#initialize(config: nil, region: nil, signer: nil, proxy_settings: nil) ⇒ VirtualNetworkClient
constructor
Creates a new VirtualNetworkClient.
-
#list_allowed_peer_regions_for_remote_peering(opts = {}) ⇒ Response
Lists the regions that support remote VCN peering (which is peering across regions).
-
#list_cpes(compartment_id, opts = {}) ⇒ Response
Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment.
-
#list_cross_connect_groups(compartment_id, opts = {}) ⇒ Response
Lists the cross-connect groups in the specified compartment.
-
#list_cross_connect_locations(compartment_id, opts = {}) ⇒ Response
Lists the available FastConnect locations for cross-connect installation.
-
#list_cross_connects(compartment_id, opts = {}) ⇒ Response
Lists the cross-connects in the specified compartment.
-
#list_crossconnect_port_speed_shapes(compartment_id, opts = {}) ⇒ Response
Lists the available port speeds for cross-connects.
-
#list_dhcp_options(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the sets of DHCP options in the specified VCN and specified compartment.
-
#list_drg_attachments(compartment_id, opts = {}) ⇒ Response
Lists the ‘DrgAttachment` objects for the specified compartment.
-
#list_drgs(compartment_id, opts = {}) ⇒ Response
Lists the DRGs in the specified compartment.
-
#list_fast_connect_provider_services(compartment_id, opts = {}) ⇒ Response
Lists the service offerings from supported providers.
-
#list_fast_connect_provider_virtual_circuit_bandwidth_shapes(provider_service_id, opts = {}) ⇒ Response
Gets the list of available virtual circuit bandwidth levels for a provider.
-
#list_internet_gateways(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the Internet Gateways in the specified VCN and the specified compartment.
-
#list_ip_sec_connections(compartment_id, opts = {}) ⇒ Response
Lists the IPSec connections for the specified compartment.
-
#list_local_peering_gateways(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the local peering gateways (LPGs) for the specified VCN and compartment (the LPG’s compartment).
-
#list_private_ips(opts = {}) ⇒ Response
Lists the PrivateIp objects based on one of these filters:.
-
#list_public_ips(scope, compartment_id, opts = {}) ⇒ Response
Lists either the ephemeral or reserved PublicIp objects in the specified compartment.
-
#list_remote_peering_connections(compartment_id, opts = {}) ⇒ Response
Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC’s compartment).
-
#list_route_tables(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the route tables in the specified VCN and specified compartment.
-
#list_security_lists(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the security lists in the specified VCN and compartment.
-
#list_subnets(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the subnets in the specified VCN and the specified compartment.
-
#list_vcns(compartment_id, opts = {}) ⇒ Response
Lists the Virtual Cloud Networks (VCNs) in the specified compartment.
-
#list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {}) ⇒ Response
The deprecated operation lists available bandwidth levels for virtual circuits.
-
#list_virtual_circuit_public_prefixes(virtual_circuit_id, opts = {}) ⇒ Response
Lists the public IP prefixes and their details for the specified public virtual circuit.
-
#list_virtual_circuits(compartment_id, opts = {}) ⇒ Response
Lists the virtual circuits in the specified compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#update_cpe(cpe_id, update_cpe_details, opts = {}) ⇒ Response
Updates the specified CPE’s display name.
-
#update_cross_connect(cross_connect_id, update_cross_connect_details, opts = {}) ⇒ Response
Updates the specified cross-connect.
-
#update_cross_connect_group(cross_connect_group_id, update_cross_connect_group_details, opts = {}) ⇒ Response
Updates the specified cross-connect group’s display name.
-
#update_dhcp_options(dhcp_id, update_dhcp_details, opts = {}) ⇒ Response
Updates the specified set of DHCP options.
-
#update_drg(drg_id, update_drg_details, opts = {}) ⇒ Response
Updates the specified DRG’s display name.
-
#update_drg_attachment(drg_attachment_id, update_drg_attachment_details, opts = {}) ⇒ Response
Updates the display name for the specified ‘DrgAttachment`.
-
#update_internet_gateway(ig_id, update_internet_gateway_details, opts = {}) ⇒ Response
Updates the specified Internet Gateway.
-
#update_ip_sec_connection(ipsc_id, update_ip_sec_connection_details, opts = {}) ⇒ Response
Updates the display name for the specified IPSec connection.
-
#update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) ⇒ Response
Updates the specified local peering gateway (LPG).
-
#update_private_ip(private_ip_id, update_private_ip_details, opts = {}) ⇒ Response
Updates the specified private IP.
-
#update_public_ip(public_ip_id, update_public_ip_details, opts = {}) ⇒ Response
Updates the specified public IP.
-
#update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {}) ⇒ Response
Updates the specified remote peering connection (RPC).
-
#update_route_table(rt_id, update_route_table_details, opts = {}) ⇒ Response
Updates the specified route table’s display name or route rules.
-
#update_security_list(security_list_id, update_security_list_details, opts = {}) ⇒ Response
Updates the specified security list’s display name or rules.
-
#update_subnet(subnet_id, update_subnet_details, opts = {}) ⇒ Response
Updates the specified subnet’s display name.
-
#update_vcn(vcn_id, update_vcn_details, opts = {}) ⇒ Response
Updates the specified VCN’s display name.
-
#update_virtual_circuit(virtual_circuit_id, update_virtual_circuit_details, opts = {}) ⇒ Response
Updates the specified virtual circuit.
-
#update_vnic(vnic_id, update_vnic_details, opts = {}) ⇒ Response
Updates the specified VNIC.
Constructor Details
#initialize(config: nil, region: nil, signer: nil, proxy_settings: nil) ⇒ VirtualNetworkClient
Creates a new VirtualNetworkClient. If a config is not specified, then the global OCI.config will be used.
A region must be specified in either the config or the region parameter. If specified in both, then the region parameter will be used.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/oci/core/virtual_network_client.rb', line 36 def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) if signer.nil? signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD) end @api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings) region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
12 13 14 |
# File 'lib/oci/core/virtual_network_client.rb', line 12 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
16 17 18 |
# File 'lib/oci/core/virtual_network_client.rb', line 16 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
20 21 22 |
# File 'lib/oci/core/virtual_network_client.rb', line 20 def region @region end |
Instance Method Details
#bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {}) ⇒ Response
Adds one or more customer public IP prefixes to the specified public virtual circuit. Use this operation (and not update_virtual_circuit) to add prefixes to the virtual circuit. Oracle must verify the customer’s ownership of each prefix before traffic for that prefix will flow across the virtual circuit.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/oci/core/virtual_network_client.rb', line 86 def bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil? raise "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details.nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(bulk_add_virtual_circuit_public_prefixes_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {}) ⇒ Response
Removes one or more customer public IP prefixes from the specified public virtual circuit. Use this operation (and not update_virtual_circuit) to remove prefixes from the virtual circuit. When the virtual circuit’s state switches back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/oci/core/virtual_network_client.rb', line 123 def bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil? raise "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details.nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(bulk_delete_virtual_circuit_public_prefixes_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#connect_local_peering_gateways(local_peering_gateway_id, connect_local_peering_gateways_details, opts = {}) ⇒ Response
Connects this local peering gateway (LPG) to another one in the same region.
This operation must be called by the VCN administrator who is designated as the requestor in the peering relationship. The acceptor must implement an Identity and Access Management (IAM) policy that gives the requestor permission to connect to LPGs in the acceptor’s compartment. Without that permission, this operation will fail. For more information, see [VCN Peering](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/oci/core/virtual_network_client.rb', line 164 def connect_local_peering_gateways(local_peering_gateway_id, connect_local_peering_gateways_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#connect_local_peering_gateways." if logger raise "Missing the required parameter 'local_peering_gateway_id' when calling connect_local_peering_gateways." if local_peering_gateway_id.nil? raise "Missing the required parameter 'connect_local_peering_gateways_details' when calling connect_local_peering_gateways." if connect_local_peering_gateways_details.nil? raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id) path = "/localPeeringGateways/{localPeeringGatewayId}/actions/connect".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(connect_local_peering_gateways_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#connect_remote_peering_connections(remote_peering_connection_id, connect_remote_peering_connections_details, opts = {}) ⇒ Response
Connects this RPC to another one in a different region.
This operation must be called by the VCN administrator who is designated as the requestor in the peering relationship. The acceptor must implement an Identity and Access Management (IAM) policy that gives the requestor permission to connect to RPCs in the acceptor’s compartment. Without that permission, this operation will fail. For more information, see [VCN Peering](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/oci/core/virtual_network_client.rb', line 205 def connect_remote_peering_connections(remote_peering_connection_id, connect_remote_peering_connections_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#connect_remote_peering_connections." if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling connect_remote_peering_connections." if remote_peering_connection_id.nil? raise "Missing the required parameter 'connect_remote_peering_connections_details' when calling connect_remote_peering_connections." if connect_remote_peering_connections_details.nil? raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id) path = "/remotePeeringConnections/{remotePeeringConnectionId}/actions/connect".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(connect_remote_peering_connections_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#create_cpe(create_cpe_details, opts = {}) ⇒ Response
Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For more information, see [IPSec VPNs](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the CPE to reside. Notice that the CPE doesn’t have to be in the same compartment as the IPSec connection or other Networking Service components. If you’re not sure which compartment to use, put the CPE in the same compartment as the DRG. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You must provide the public IP address of your on-premises router. See [Configuring Your On-Premises Router for an IPSec VPN](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/configuringCPE.htm).
You may optionally specify a *display name* for the CPE, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/oci/core/virtual_network_client.rb', line 258 def create_cpe(create_cpe_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_cpe." if logger raise "Missing the required parameter 'create_cpe_details' when calling create_cpe." if create_cpe_details.nil? path = "/cpes" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_cpe_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Cpe') end |
#create_cross_connect(create_cross_connect_details, opts = {}) ⇒ Response
Creates a new cross-connect. Oracle recommends you create each cross-connect in a CrossConnectGroup so you can use link aggregation with the connection.
After creating the ‘CrossConnect` object, you need to go the FastConnect location and request to have the physical cable installed. For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the cross-connect to reside. If you’re not sure which compartment to use, put the cross-connect in the same compartment with your VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the cross-connect. It does not have to be unique, and you can change it. Avoid entering confidential information.
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
# File 'lib/oci/core/virtual_network_client.rb', line 315 def create_cross_connect(create_cross_connect_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_cross_connect." if logger raise "Missing the required parameter 'create_cross_connect_details' when calling create_cross_connect." if create_cross_connect_details.nil? path = "/crossConnects" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_cross_connect_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnect') end |
#create_cross_connect_group(create_cross_connect_group_details, opts = {}) ⇒ Response
Creates a new cross-connect group to use with Oracle Cloud Infrastructure FastConnect. For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the cross-connect group to reside. If you’re not sure which compartment to use, put the cross-connect group in the same compartment with your VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the cross-connect group. It does not have to be unique, and you can change it. Avoid entering confidential information.
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/oci/core/virtual_network_client.rb', line 368 def create_cross_connect_group(create_cross_connect_group_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_cross_connect_group." if logger raise "Missing the required parameter 'create_cross_connect_group_details' when calling create_cross_connect_group." if create_cross_connect_group_details.nil? path = "/crossConnectGroups" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_cross_connect_group_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnectGroup') end |
#create_dhcp_options(create_dhcp_details, opts = {}) ⇒ Response
Creates a new set of DHCP options for the specified VCN. For more information, see DhcpOptions.
For the purposes of access control, you must provide the OCID of the compartment where you want the set of DHCP options to reside. Notice that the set of options doesn’t have to be in the same compartment as the VCN, subnets, or other Networking Service components. If you’re not sure which compartment to use, put the set of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the set of DHCP options, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/oci/core/virtual_network_client.rb', line 418 def (create_dhcp_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_dhcp_options." if logger raise "Missing the required parameter 'create_dhcp_details' when calling create_dhcp_options." if create_dhcp_details.nil? path = "/dhcps" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_dhcp_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DhcpOptions') end |
#create_drg(create_drg_details, opts = {}) ⇒ Response
Creates a new Dynamic Routing Gateway (DRG) in the specified compartment. For more information, see [Dynamic Routing Gateways (DRGs)](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDRGs.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the DRG to reside. Notice that the DRG doesn’t have to be in the same compartment as the VCN, the DRG attachment, or other Networking Service components. If you’re not sure which compartment to use, put the DRG in the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the DRG, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/oci/core/virtual_network_client.rb', line 468 def create_drg(create_drg_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_drg." if logger raise "Missing the required parameter 'create_drg_details' when calling create_drg." if create_drg_details.nil? path = "/drgs" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_drg_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Drg') end |
#create_drg_attachment(create_drg_attachment_details, opts = {}) ⇒ Response
Attaches the specified DRG to the specified VCN. A VCN can be attached to only one DRG at a time, and vice versa. The response includes a ‘DrgAttachment` object with its own OCID. For more information about DRGs, see [Dynamic Routing Gateways (DRGs)](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDRGs.htm).
You may optionally specify a *display name* for the attachment, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
For the purposes of access control, the DRG attachment is automatically placed into the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/oci/core/virtual_network_client.rb', line 517 def (, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_drg_attachment." if logger raise "Missing the required parameter 'create_drg_attachment_details' when calling create_drg_attachment." if .nil? path = "/drgAttachments" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body() return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DrgAttachment') end |
#create_internet_gateway(create_internet_gateway_details, opts = {}) ⇒ Response
Creates a new Internet Gateway for the specified VCN. For more information, see [Connectivity to the Internet](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIGs.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the Internet Gateway to reside. Notice that the Internet Gateway doesn’t have to be in the same compartment as the VCN or other Networking Service components. If you’re not sure which compartment to use, put the Internet Gateway in the same compartment with the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the Internet Gateway, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
For traffic to flow between a subnet and an Internet Gateway, you must create a route rule accordingly in the subnet’s route table (for example, 0.0.0.0/0 > Internet Gateway). See update_route_table.
You must specify whether the Internet Gateway is enabled when you create it. If it’s disabled, that means no traffic will flow to/from the internet even if there’s a route rule that enables that traffic. You can later use update_internet_gateway to easily disable/enable the gateway without changing the route rule.
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/oci/core/virtual_network_client.rb', line 576 def create_internet_gateway(create_internet_gateway_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_internet_gateway." if logger raise "Missing the required parameter 'create_internet_gateway_details' when calling create_internet_gateway." if create_internet_gateway_details.nil? path = "/internetGateways" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_internet_gateway_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::InternetGateway') end |
#create_ip_sec_connection(create_ip_sec_connection_details, opts = {}) ⇒ Response
Creates a new IPSec connection between the specified DRG and CPE. For more information, see [IPSec VPNs](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm).
In the request, you must include at least one static route to the CPE object (you’re allowed a maximum of 10). For example: 10.0.8.0/16.
For the purposes of access control, you must provide the OCID of the compartment where you want the IPSec connection to reside. Notice that the IPSec connection doesn’t have to be in the same compartment as the DRG, CPE, or other Networking Service components. If you’re not sure which compartment to use, put the IPSec connection in the same compartment as the DRG. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the IPSec connection, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
After creating the IPSec connection, you need to configure your on-premises router with tunnel-specific information returned by get_ip_sec_connection_device_config. For each tunnel, that operation gives you the IP address of Oracle’s VPN headend and the shared secret (that is, the pre-shared key). For more information, see [Configuring Your On-Premises Router for an IPSec VPN](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/configuringCPE.htm).
To get the status of the tunnels (whether they’re up or down), use get_ip_sec_connection_device_status.
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 |
# File 'lib/oci/core/virtual_network_client.rb', line 640 def create_ip_sec_connection(create_ip_sec_connection_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_ip_sec_connection." if logger raise "Missing the required parameter 'create_ip_sec_connection_details' when calling create_ip_sec_connection." if create_ip_sec_connection_details.nil? path = "/ipsecConnections" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_ip_sec_connection_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::IPSecConnection') end |
#create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) ⇒ Response
Creates a new local peering gateway (LPG) for the specified VCN.
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/oci/core/virtual_network_client.rb', line 679 def create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_local_peering_gateway." if logger raise "Missing the required parameter 'create_local_peering_gateway_details' when calling create_local_peering_gateway." if create_local_peering_gateway_details.nil? path = "/localPeeringGateways" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_local_peering_gateway_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::LocalPeeringGateway') end |
#create_private_ip(create_private_ip_details, opts = {}) ⇒ Response
Creates a secondary private IP for the specified VNIC. For more information about secondary private IPs, see [IP Addresses](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm).
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 |
# File 'lib/oci/core/virtual_network_client.rb', line 720 def create_private_ip(create_private_ip_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_private_ip." if logger raise "Missing the required parameter 'create_private_ip_details' when calling create_private_ip." if create_private_ip_details.nil? path = "/privateIps" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_private_ip_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PrivateIp') end |
#create_public_ip(create_public_ip_details, opts = {}) ⇒ Response
Creates a public IP. Use the ‘lifetime` property to specify whether it’s an ephemeral or reserved public IP. For information about limits on how many you can create, see [Public IP Addresses](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm).
-
**For an ephemeral public IP:** You must also specify a ‘privateIpId` with the OCID of
the primary private IP you want to assign the public IP to. The public IP is created in the same Availability Domain as the private IP. An ephemeral public IP must always be assigned to a private IP, and only to the primary private IP on a VNIC, not a secondary private IP.
-
**For a reserved public IP:** You may also optionally assign the public IP to a private
IP by specifying ‘privateIpId`. Or you can later assign the public IP with update_public_ip.
Note: When assigning a public IP to a private IP, the private IP must not already have a public IP with ‘lifecycleState` = ASSIGNING or ASSIGNED. If it does, an error is returned.
Also, for reserved public IPs, the optional assignment part of this operation is asynchronous. Poll the public IP’s ‘lifecycleState` to determine if the assignment succeeded.
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/oci/core/virtual_network_client.rb', line 778 def create_public_ip(create_public_ip_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_public_ip." if logger raise "Missing the required parameter 'create_public_ip_details' when calling create_public_ip." if create_public_ip_details.nil? path = "/publicIps" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_public_ip_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PublicIp') end |
#create_remote_peering_connection(create_remote_peering_connection_details, opts = {}) ⇒ Response
Creates a new remote peering connection (RPC) for the specified DRG.
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 |
# File 'lib/oci/core/virtual_network_client.rb', line 817 def create_remote_peering_connection(create_remote_peering_connection_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_remote_peering_connection." if logger raise "Missing the required parameter 'create_remote_peering_connection_details' when calling create_remote_peering_connection." if create_remote_peering_connection_details.nil? path = "/remotePeeringConnections" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_remote_peering_connection_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RemotePeeringConnection') end |
#create_route_table(create_route_table_details, opts = {}) ⇒ Response
Creates a new route table for the specified VCN. In the request you must also include at least one route rule for the new route table. For information on the number of rules you can have in a route table, see [Service Limits](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). For general information about route tables in your VCN and the types of targets you can use in route rules, see [Route Tables](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the route table to reside. Notice that the route table doesn’t have to be in the same compartment as the VCN, subnets, or other Networking Service components. If you’re not sure which compartment to use, put the route table in the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the route table, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/oci/core/virtual_network_client.rb', line 870 def create_route_table(create_route_table_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_route_table." if logger raise "Missing the required parameter 'create_route_table_details' when calling create_route_table." if create_route_table_details.nil? path = "/routeTables" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_route_table_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RouteTable') end |
#create_security_list(create_security_list_details, opts = {}) ⇒ Response
Creates a new security list for the specified VCN. For more information about security lists, see [Security Lists](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm). For information on the number of rules you can have in a security list, see [Service Limits](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the security list to reside. Notice that the security list doesn’t have to be in the same compartment as the VCN, subnets, or other Networking Service components. If you’re not sure which compartment to use, put the security list in the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the security list, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 |
# File 'lib/oci/core/virtual_network_client.rb', line 922 def create_security_list(create_security_list_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_security_list." if logger raise "Missing the required parameter 'create_security_list_details' when calling create_security_list." if create_security_list_details.nil? path = "/securityLists" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_security_list_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::SecurityList') end |
#create_subnet(create_subnet_details, opts = {}) ⇒ Response
Creates a new subnet in the specified VCN. You can’t change the size of the subnet after creation, so it’s important to think about the size of subnets you need before creating them. For more information, see [VCNs and Subnets](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm). For information on the number of subnets you can have in a VCN, see [Service Limits](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the subnet to reside. Notice that the subnet doesn’t have to be in the same compartment as the VCN, route tables, or other Networking Service components. If you’re not sure which compartment to use, put the subnet in the same compartment as the VCN. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally associate a route table with the subnet. If you don’t, the subnet will use the VCN’s default route table. For more information about route tables, see [Route Tables](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
You may optionally associate a security list with the subnet. If you don’t, the subnet will use the VCN’s default security list. For more information about security lists, see [Security Lists](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/securitylists.htm).
You may optionally associate a set of DHCP options with the subnet. If you don’t, the subnet will use the VCN’s default set. For more information about DHCP options, see [DHCP Options](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingDHCP.htm).
You may optionally specify a *display name* for the subnet, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
You can also add a DNS label for the subnet, which is required if you want the Internet and VCN Resolver to resolve hostnames for instances in the subnet. For more information, see [DNS in Your Virtual Cloud Network](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/oci/core/virtual_network_client.rb', line 991 def create_subnet(create_subnet_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_subnet." if logger raise "Missing the required parameter 'create_subnet_details' when calling create_subnet." if create_subnet_details.nil? path = "/subnets" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_subnet_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Subnet') end |
#create_vcn(create_vcn_details, opts = {}) ⇒ Response
Creates a new Virtual Cloud Network (VCN). For more information, see [VCNs and Subnets](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVCNs.htm).
For the VCN you must specify a single, contiguous IPv4 CIDR block. Oracle recommends using one of the private IP address ranges specified in [RFC 1918](tools.ietf.org/html/rfc1918) (10.0.0.0/8, 172.16/12, and 192.168/16). Example: 172.16.0.0/16. The CIDR block can range from /16 to /30, and it must not overlap with your on-premises network. You can’t change the size of the VCN after creation.
For the purposes of access control, you must provide the OCID of the compartment where you want the VCN to reside. Consult an Oracle Cloud Infrastructure administrator in your organization if you’re not sure which compartment to use. Notice that the VCN doesn’t have to be in the same compartment as the subnets or other Networking Service components. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the VCN, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
You can also add a DNS label for the VCN, which is required if you want the instances to use the Interent and VCN Resolver option for DNS in the VCN. For more information, see [DNS in Your Virtual Cloud Network](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
The VCN automatically comes with a default route table, default security list, and default set of DHCP options. The OCID for each is returned in the response. You can’t delete these default objects, but you can change their contents (that is, change the route rules, security list rules, and so on).
The VCN and subnets you create are not accessible until you attach an Internet Gateway or set up an IPSec VPN or FastConnect. For more information, see [Overview of the Networking Service](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/overview.htm).
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/oci/core/virtual_network_client.rb', line 1058 def create_vcn(create_vcn_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_vcn." if logger raise "Missing the required parameter 'create_vcn_details' when calling create_vcn." if create_vcn_details.nil? path = "/vcns" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_vcn_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Vcn') end |
#create_virtual_circuit(create_virtual_circuit_details, opts = {}) ⇒ Response
Creates a new virtual circuit to use with Oracle Cloud Infrastructure FastConnect. For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the virtual circuit to reside. If you’re not sure which compartment to use, put the virtual circuit in the same compartment with the DRG it’s using. For more information about compartments and access control, see [Overview of the IAM Service](docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm). For information about OCIDs, see [Resource Identifiers](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
You may optionally specify a *display name* for the virtual circuit. It does not have to be unique, and you can change it. Avoid entering confidential information.
Important: When creating a virtual circuit, you specify a DRG for the traffic to flow through. Make sure you attach the DRG to your VCN and confirm the VCN’s routing sends traffic to the DRG. Otherwise traffic will not flow. For more information, see [Route Tables](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm).
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'lib/oci/core/virtual_network_client.rb', line 1117 def create_virtual_circuit(create_virtual_circuit_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#create_virtual_circuit." if logger raise "Missing the required parameter 'create_virtual_circuit_details' when calling create_virtual_circuit." if create_virtual_circuit_details.nil? path = "/virtualCircuits" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token'] post_body = @api_client.object_to_http_body(create_virtual_circuit_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::VirtualCircuit') end |
#delete_cpe(cpe_id, opts = {}) ⇒ Response
Deletes the specified CPE object. The CPE must not be connected to a DRG. This is an asynchronous operation. The CPE’s ‘lifecycleState` will change to TERMINATING temporarily until the CPE is completely removed.
1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 |
# File 'lib/oci/core/virtual_network_client.rb', line 1156 def delete_cpe(cpe_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_cpe." if logger raise "Missing the required parameter 'cpe_id' when calling delete_cpe." if cpe_id.nil? raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id) path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Deletes the specified cross-connect. It must not be mapped to a VirtualCircuit.
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 |
# File 'lib/oci/core/virtual_network_client.rb', line 1194 def delete_cross_connect(cross_connect_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect." if logger raise "Missing the required parameter 'cross_connect_id' when calling delete_cross_connect." if cross_connect_id.nil? raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id) path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_cross_connect_group(cross_connect_group_id, opts = {}) ⇒ Response
Deletes the specified cross-connect group. It must not contain any cross-connects, and it cannot be mapped to a VirtualCircuit.
1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/oci/core/virtual_network_client.rb', line 1233 def delete_cross_connect_group(cross_connect_group_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect_group." if logger raise "Missing the required parameter 'cross_connect_group_id' when calling delete_cross_connect_group." if cross_connect_group_id.nil? raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id) path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_dhcp_options(dhcp_id, opts = {}) ⇒ Response
Deletes the specified set of DHCP options, but only if it’s not associated with a subnet. You can’t delete a VCN’s default set of DHCP options.
This is an asynchronous operation. The state of the set of options will switch to TERMINATING temporarily until the set is completely removed.
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/oci/core/virtual_network_client.rb', line 1274 def (dhcp_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_dhcp_options." if logger raise "Missing the required parameter 'dhcp_id' when calling delete_dhcp_options." if dhcp_id.nil? raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id) path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_drg(drg_id, opts = {}) ⇒ Response
Deletes the specified DRG. The DRG must not be attached to a VCN or be connected to your on-premise network. Also, there must not be a route table that lists the DRG as a target. This is an asynchronous operation. The DRG’s ‘lifecycleState` will change to TERMINATING temporarily until the DRG is completely removed.
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 |
# File 'lib/oci/core/virtual_network_client.rb', line 1314 def delete_drg(drg_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_drg." if logger raise "Missing the required parameter 'drg_id' when calling delete_drg." if drg_id.nil? raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id) path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_drg_attachment(drg_attachment_id, opts = {}) ⇒ Response
Detaches a DRG from a VCN by deleting the corresponding ‘DrgAttachment`. This is an asynchronous operation. The attachment’s ‘lifecycleState` will change to DETACHING temporarily until the attachment is completely removed.
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'lib/oci/core/virtual_network_client.rb', line 1353 def (, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_drg_attachment." if logger raise "Missing the required parameter 'drg_attachment_id' when calling delete_drg_attachment." if .nil? raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?() path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', .to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_internet_gateway(ig_id, opts = {}) ⇒ Response
Deletes the specified Internet Gateway. The Internet Gateway does not have to be disabled, but there must not be a route table that lists it as a target.
This is an asynchronous operation. The gateway’s ‘lifecycleState` will change to TERMINATING temporarily until the gateway is completely removed.
1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 |
# File 'lib/oci/core/virtual_network_client.rb', line 1394 def delete_internet_gateway(ig_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_internet_gateway." if logger raise "Missing the required parameter 'ig_id' when calling delete_internet_gateway." if ig_id.nil? raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id) path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_ip_sec_connection(ipsc_id, opts = {}) ⇒ Response
Deletes the specified IPSec connection. If your goal is to disable the IPSec VPN between your VCN and on-premises network, it’s easiest to simply detach the DRG but keep all the IPSec VPN components intact. If you were to delete all the components and then later need to create an IPSec VPN again, you would need to configure your on-premises router again with the new information returned from create_ip_sec_connection.
This is an asynchronous operation. The connection’s ‘lifecycleState` will change to TERMINATING temporarily until the connection is completely removed.
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 |
# File 'lib/oci/core/virtual_network_client.rb', line 1438 def delete_ip_sec_connection(ipsc_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_ip_sec_connection." if logger raise "Missing the required parameter 'ipsc_id' when calling delete_ip_sec_connection." if ipsc_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id) path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Deletes the specified local peering gateway (LPG).
This is an asynchronous operation; the local peering gateway’s ‘lifecycleState` changes to TERMINATING temporarily until the local peering gateway is completely removed.
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 |
# File 'lib/oci/core/virtual_network_client.rb', line 1478 def delete_local_peering_gateway(local_peering_gateway_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_local_peering_gateway." if logger raise "Missing the required parameter 'local_peering_gateway_id' when calling delete_local_peering_gateway." if local_peering_gateway_id.nil? raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id) path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_private_ip(private_ip_id, opts = {}) ⇒ Response
Unassigns and deletes the specified private IP. You must specify the object’s OCID. The private IP address is returned to the subnet’s pool of available addresses.
This operation cannot be used with primary private IPs, which are automatically unassigned and deleted when the VNIC is terminated.
Important: If a secondary private IP is the [target of a route rule](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip), unassigning it from the VNIC causes that route rule to blackhole and the traffic will be dropped.
1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 |
# File 'lib/oci/core/virtual_network_client.rb', line 1525 def delete_private_ip(private_ip_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_private_ip." if logger raise "Missing the required parameter 'private_ip_id' when calling delete_private_ip." if private_ip_id.nil? raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id) path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_public_ip(public_ip_id, opts = {}) ⇒ Response
Unassigns and deletes the specified public IP (either ephemeral or reserved). You must specify the object’s OCID. The public IP address is returned to the Oracle Cloud Infrastructure public IP pool.
For an assigned reserved public IP, the initial unassignment portion of this operation is asynchronous. Poll the public IP’s ‘lifecycleState` to determine if the operation succeeded.
If you want to simply unassign a reserved public IP and return it to your pool of reserved public IPs, instead use update_public_ip.
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/oci/core/virtual_network_client.rb', line 1572 def delete_public_ip(public_ip_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_public_ip." if logger raise "Missing the required parameter 'public_ip_id' when calling delete_public_ip." if public_ip_id.nil? raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id) path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Deletes the remote peering connection (RPC).
This is an asynchronous operation; the RPC’s ‘lifecycleState` changes to TERMINATING temporarily until the RPC is completely removed.
1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 |
# File 'lib/oci/core/virtual_network_client.rb', line 1612 def delete_remote_peering_connection(remote_peering_connection_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_remote_peering_connection." if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling delete_remote_peering_connection." if remote_peering_connection_id.nil? raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id) path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_route_table(rt_id, opts = {}) ⇒ Response
Deletes the specified route table, but only if it’s not associated with a subnet. You can’t delete a VCN’s default route table.
This is an asynchronous operation. The route table’s ‘lifecycleState` will change to TERMINATING temporarily until the route table is completely removed.
1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 |
# File 'lib/oci/core/virtual_network_client.rb', line 1653 def delete_route_table(rt_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_route_table." if logger raise "Missing the required parameter 'rt_id' when calling delete_route_table." if rt_id.nil? raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id) path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_security_list(security_list_id, opts = {}) ⇒ Response
Deletes the specified security list, but only if it’s not associated with a subnet. You can’t delete a VCN’s default security list.
This is an asynchronous operation. The security list’s ‘lifecycleState` will change to TERMINATING temporarily until the security list is completely removed.
1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 |
# File 'lib/oci/core/virtual_network_client.rb', line 1694 def delete_security_list(security_list_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_security_list." if logger raise "Missing the required parameter 'security_list_id' when calling delete_security_list." if security_list_id.nil? raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id) path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_subnet(subnet_id, opts = {}) ⇒ Response
Deletes the specified subnet, but only if there are no instances in the subnet. This is an asynchronous operation. The subnet’s ‘lifecycleState` will change to TERMINATING temporarily. If there are any instances in the subnet, the state will instead change back to AVAILABLE.
1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 |
# File 'lib/oci/core/virtual_network_client.rb', line 1733 def delete_subnet(subnet_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_subnet." if logger raise "Missing the required parameter 'subnet_id' when calling delete_subnet." if subnet_id.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id) path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_vcn(vcn_id, opts = {}) ⇒ Response
Deletes the specified VCN. The VCN must be empty and have no attached gateways. This is an asynchronous operation. The VCN’s ‘lifecycleState` will change to TERMINATING temporarily until the VCN is completely removed.
1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/oci/core/virtual_network_client.rb', line 1772 def delete_vcn(vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_vcn." if logger raise "Missing the required parameter 'vcn_id' when calling delete_vcn." if vcn_id.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id) path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#delete_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Deletes the specified virtual circuit.
Important: If you’re using FastConnect via a provider, make sure to also terminate the connection with the provider, or else the provider may continue to bill you.
1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 |
# File 'lib/oci/core/virtual_network_client.rb', line 1813 def delete_virtual_circuit(virtual_circuit_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#delete_virtual_circuit." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling delete_virtual_circuit." if virtual_circuit_id.nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = nil return @api_client.call_api( :DELETE, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body) end |
#get_cpe(cpe_id, opts = {}) ⇒ Response
Gets the specified CPE’s information.
1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 |
# File 'lib/oci/core/virtual_network_client.rb', line 1845 def get_cpe(cpe_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_cpe." if logger raise "Missing the required parameter 'cpe_id' when calling get_cpe." if cpe_id.nil? raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id) path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Cpe') end |
#get_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Gets the specified cross-connect’s information.
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 |
# File 'lib/oci/core/virtual_network_client.rb', line 1877 def get_cross_connect(cross_connect_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_cross_connect." if logger raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect." if cross_connect_id.nil? raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id) path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnect') end |
#get_cross_connect_group(cross_connect_group_id, opts = {}) ⇒ Response
Gets the specified cross-connect group’s information.
1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 |
# File 'lib/oci/core/virtual_network_client.rb', line 1909 def get_cross_connect_group(cross_connect_group_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_group." if logger raise "Missing the required parameter 'cross_connect_group_id' when calling get_cross_connect_group." if cross_connect_group_id.nil? raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id) path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnectGroup') end |
#get_cross_connect_letter_of_authority(cross_connect_id, opts = {}) ⇒ Response
Gets the Letter of Authority for the specified cross-connect.
1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/oci/core/virtual_network_client.rb', line 1941 def (cross_connect_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_letter_of_authority." if logger raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_letter_of_authority." if cross_connect_id.nil? raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id) path = "/crossConnects/{crossConnectId}/letterOfAuthority".sub('{crossConnectId}', cross_connect_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::LetterOfAuthority') end |
#get_cross_connect_status(cross_connect_id, opts = {}) ⇒ Response
Gets the status of the specified cross-connect.
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 |
# File 'lib/oci/core/virtual_network_client.rb', line 1974 def get_cross_connect_status(cross_connect_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_status." if logger raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_status." if cross_connect_id.nil? raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id) path = "/crossConnects/{crossConnectId}/status".sub('{crossConnectId}', cross_connect_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnectStatus') end |
#get_dhcp_options(dhcp_id, opts = {}) ⇒ Response
Gets the specified set of DHCP options.
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 |
# File 'lib/oci/core/virtual_network_client.rb', line 2006 def (dhcp_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_dhcp_options." if logger raise "Missing the required parameter 'dhcp_id' when calling get_dhcp_options." if dhcp_id.nil? raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id) path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DhcpOptions') end |
#get_drg(drg_id, opts = {}) ⇒ Response
Gets the specified DRG’s information.
2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 |
# File 'lib/oci/core/virtual_network_client.rb', line 2038 def get_drg(drg_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_drg." if logger raise "Missing the required parameter 'drg_id' when calling get_drg." if drg_id.nil? raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id) path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Drg') end |
#get_drg_attachment(drg_attachment_id, opts = {}) ⇒ Response
Gets the information for the specified ‘DrgAttachment`.
2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 |
# File 'lib/oci/core/virtual_network_client.rb', line 2070 def (, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_drg_attachment." if logger raise "Missing the required parameter 'drg_attachment_id' when calling get_drg_attachment." if .nil? raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?() path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', .to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DrgAttachment') end |
#get_fast_connect_provider_service(provider_service_id, opts = {}) ⇒ Response
Gets the specified provider service. For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 |
# File 'lib/oci/core/virtual_network_client.rb', line 2104 def get_fast_connect_provider_service(provider_service_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_fast_connect_provider_service." if logger raise "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service." if provider_service_id.nil? raise "Parameter value for 'provider_service_id' must not be blank" if OCI::Internal::Util::blank_string?(provider_service_id) path = "/fastConnectProviderServices/{providerServiceId}".sub('{providerServiceId}', provider_service_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::FastConnectProviderService') end |
#get_internet_gateway(ig_id, opts = {}) ⇒ Response
Gets the specified Internet Gateway’s information.
2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 |
# File 'lib/oci/core/virtual_network_client.rb', line 2136 def get_internet_gateway(ig_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_internet_gateway." if logger raise "Missing the required parameter 'ig_id' when calling get_internet_gateway." if ig_id.nil? raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id) path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::InternetGateway') end |
#get_ip_sec_connection(ipsc_id, opts = {}) ⇒ Response
Gets the specified IPSec connection’s basic information, including the static routes for the on-premises router. If you want the status of the connection (whether it’s up or down), use get_ip_sec_connection_device_status.
2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/oci/core/virtual_network_client.rb', line 2171 def get_ip_sec_connection(ipsc_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection." if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection." if ipsc_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id) path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::IPSecConnection') end |
#get_ip_sec_connection_device_config(ipsc_id, opts = {}) ⇒ Response
Gets the configuration information for the specified IPSec connection. For each tunnel, the response includes the IP address of Oracle’s VPN headend and the shared secret.
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 |
# File 'lib/oci/core/virtual_network_client.rb', line 2205 def get_ip_sec_connection_device_config(ipsc_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_config." if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_config." if ipsc_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id) path = "/ipsecConnections/{ipscId}/deviceConfig".sub('{ipscId}', ipsc_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::IPSecConnectionDeviceConfig') end |
#get_ip_sec_connection_device_status(ipsc_id, opts = {}) ⇒ Response
Gets the status of the specified IPSec connection (whether it’s up or down).
2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 |
# File 'lib/oci/core/virtual_network_client.rb', line 2238 def get_ip_sec_connection_device_status(ipsc_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_status." if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_status." if ipsc_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id) path = "/ipsecConnections/{ipscId}/deviceStatus".sub('{ipscId}', ipsc_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::IPSecConnectionDeviceStatus') end |
#get_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Gets the specified local peering gateway’s information.
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 |
# File 'lib/oci/core/virtual_network_client.rb', line 2270 def get_local_peering_gateway(local_peering_gateway_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_local_peering_gateway." if logger raise "Missing the required parameter 'local_peering_gateway_id' when calling get_local_peering_gateway." if local_peering_gateway_id.nil? raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id) path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::LocalPeeringGateway') end |
#get_private_ip(private_ip_id, opts = {}) ⇒ Response
Gets the specified private IP. You must specify the object’s OCID. Alternatively, you can get the object by using list_private_ips with the private IP address (for example, 10.0.3.3) and subnet OCID.
2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 |
# File 'lib/oci/core/virtual_network_client.rb', line 2306 def get_private_ip(private_ip_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_private_ip." if logger raise "Missing the required parameter 'private_ip_id' when calling get_private_ip." if private_ip_id.nil? raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id) path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PrivateIp') end |
#get_public_ip(public_ip_id, opts = {}) ⇒ Response
Gets the specified public IP. You must specify the object’s OCID.
Alternatively, you can get the object by using get_public_ip_by_ip_address with the public IP address (for example, 129.146.2.1).
Or you can use get_public_ip_by_private_ip_id with the OCID of the private IP that the public IP is assigned to.
Note: If you’re fetching a reserved public IP that is in the process of being moved to a different private IP, the service returns the public IP object with ‘lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP.
2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 |
# File 'lib/oci/core/virtual_network_client.rb', line 2349 def get_public_ip(public_ip_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_public_ip." if logger raise "Missing the required parameter 'public_ip_id' when calling get_public_ip." if public_ip_id.nil? raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id) path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PublicIp') end |
#get_public_ip_by_ip_address(get_public_ip_by_ip_address_details, opts = {}) ⇒ Response
Gets the public IP based on the public IP address (for example, 129.146.2.1).
Note: If you’re fetching a reserved public IP that is in the process of being moved to a different private IP, the service returns the public IP object with ‘lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP.
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 |
# File 'lib/oci/core/virtual_network_client.rb', line 2386 def get_public_ip_by_ip_address(get_public_ip_by_ip_address_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_public_ip_by_ip_address." if logger raise "Missing the required parameter 'get_public_ip_by_ip_address_details' when calling get_public_ip_by_ip_address." if get_public_ip_by_ip_address_details.nil? path = "/publicIps/actions/getByIpAddress" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(get_public_ip_by_ip_address_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PublicIp') end |
#get_public_ip_by_private_ip_id(get_public_ip_by_private_ip_id_details, opts = {}) ⇒ Response
Gets the public IP assigned to the specified private IP. You must specify the OCID of the private IP. If no public IP is assigned, a 404 is returned.
Note: If you’re fetching a reserved public IP that is in the process of being moved to a different private IP, and you provide the OCID of the original private IP, this operation returns a 404. If you instead provide the OCID of the target private IP, or if you instead call get_public_ip or get_public_ip_by_ip_address, the service returns the public IP object with ‘lifecycleState` = ASSIGNING and `privateIpId` = OCID of the target private IP.
2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 |
# File 'lib/oci/core/virtual_network_client.rb', line 2428 def get_public_ip_by_private_ip_id(get_public_ip_by_private_ip_id_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_public_ip_by_private_ip_id." if logger raise "Missing the required parameter 'get_public_ip_by_private_ip_id_details' when calling get_public_ip_by_private_ip_id." if get_public_ip_by_private_ip_id_details.nil? path = "/publicIps/actions/getByPrivateIpId" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = @api_client.object_to_http_body(get_public_ip_by_private_ip_id_details) return @api_client.call_api( :POST, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PublicIp') end |
#get_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Get the specified remote peering connection’s information.
2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 |
# File 'lib/oci/core/virtual_network_client.rb', line 2460 def get_remote_peering_connection(remote_peering_connection_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_remote_peering_connection." if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling get_remote_peering_connection." if remote_peering_connection_id.nil? raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id) path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RemotePeeringConnection') end |
#get_route_table(rt_id, opts = {}) ⇒ Response
Gets the specified route table’s information.
2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 |
# File 'lib/oci/core/virtual_network_client.rb', line 2492 def get_route_table(rt_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_route_table." if logger raise "Missing the required parameter 'rt_id' when calling get_route_table." if rt_id.nil? raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id) path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RouteTable') end |
#get_security_list(security_list_id, opts = {}) ⇒ Response
Gets the specified security list’s information.
2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 |
# File 'lib/oci/core/virtual_network_client.rb', line 2524 def get_security_list(security_list_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_security_list." if logger raise "Missing the required parameter 'security_list_id' when calling get_security_list." if security_list_id.nil? raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id) path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::SecurityList') end |
#get_subnet(subnet_id, opts = {}) ⇒ Response
Gets the specified subnet’s information.
2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 |
# File 'lib/oci/core/virtual_network_client.rb', line 2556 def get_subnet(subnet_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_subnet." if logger raise "Missing the required parameter 'subnet_id' when calling get_subnet." if subnet_id.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id) path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Subnet') end |
#get_vcn(vcn_id, opts = {}) ⇒ Response
Gets the specified VCN’s information.
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 |
# File 'lib/oci/core/virtual_network_client.rb', line 2588 def get_vcn(vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_vcn." if logger raise "Missing the required parameter 'vcn_id' when calling get_vcn." if vcn_id.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id) path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Vcn') end |
#get_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Gets the specified virtual circuit’s information.
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 |
# File 'lib/oci/core/virtual_network_client.rb', line 2620 def get_virtual_circuit(virtual_circuit_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_virtual_circuit." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling get_virtual_circuit." if virtual_circuit_id.nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::VirtualCircuit') end |
#get_vnic(vnic_id, opts = {}) ⇒ Response
Gets the information for the specified virtual network interface card (VNIC). You can get the VNIC OCID from the list_vnic_attachments operation.
2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 |
# File 'lib/oci/core/virtual_network_client.rb', line 2656 def get_vnic(vnic_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#get_vnic." if logger raise "Missing the required parameter 'vnic_id' when calling get_vnic." if vnic_id.nil? raise "Parameter value for 'vnic_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_id) path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Vnic') end |
#list_allowed_peer_regions_for_remote_peering(opts = {}) ⇒ Response
Lists the regions that support remote VCN peering (which is peering across regions). For more information, see [VCN Peering](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 |
# File 'lib/oci/core/virtual_network_client.rb', line 2689 def list_allowed_peer_regions_for_remote_peering(opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_allowed_peer_regions_for_remote_peering." if logger path = "/allowedPeerRegionsForRemotePeering" # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::PeerRegionForRemotePeering>') end |
#list_cpes(compartment_id, opts = {}) ⇒ Response
Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment.
2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 |
# File 'lib/oci/core/virtual_network_client.rb', line 2726 def list_cpes(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_cpes." if logger raise "Missing the required parameter 'compartment_id' when calling list_cpes." if compartment_id.nil? path = "/cpes" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::Cpe>') end |
#list_cross_connect_groups(compartment_id, opts = {}) ⇒ Response
Lists the cross-connect groups in the specified compartment.
2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 |
# File 'lib/oci/core/virtual_network_client.rb', line 2785 def list_cross_connect_groups(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_cross_connect_groups." if logger raise "Missing the required parameter 'compartment_id' when calling list_cross_connect_groups." if compartment_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.' end path = "/crossConnectGroups" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::CrossConnectGroup>') end |
#list_cross_connect_locations(compartment_id, opts = {}) ⇒ Response
Lists the available FastConnect locations for cross-connect installation. You need this information so you can specify your desired location when you create a cross-connect.
2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 |
# File 'lib/oci/core/virtual_network_client.rb', line 2843 def list_cross_connect_locations(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_cross_connect_locations." if logger raise "Missing the required parameter 'compartment_id' when calling list_cross_connect_locations." if compartment_id.nil? path = "/crossConnectLocations" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::CrossConnectLocation>') end |
#list_cross_connects(compartment_id, opts = {}) ⇒ Response
Lists the cross-connects in the specified compartment. You can filter the list by specifying the OCID of a cross-connect group.
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 |
# File 'lib/oci/core/virtual_network_client.rb', line 2904 def list_cross_connects(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_cross_connects." if logger raise "Missing the required parameter 'compartment_id' when calling list_cross_connects." if compartment_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.' end path = "/crossConnects" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'crossConnectGroupId'] = opts[:'cross_connect_group_id'] if opts[:'cross_connect_group_id'] query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::CrossConnect>') end |
#list_crossconnect_port_speed_shapes(compartment_id, opts = {}) ⇒ Response
Lists the available port speeds for cross-connects. You need this information so you can specify your desired port speed (that is, shape) when you create a cross-connect.
2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 |
# File 'lib/oci/core/virtual_network_client.rb', line 2964 def list_crossconnect_port_speed_shapes(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_crossconnect_port_speed_shapes." if logger raise "Missing the required parameter 'compartment_id' when calling list_crossconnect_port_speed_shapes." if compartment_id.nil? path = "/crossConnectPortSpeedShapes" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::CrossConnectPortSpeedShape>') end |
#list_dhcp_options(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the sets of DHCP options in the specified VCN and specified compartment. The response includes the default set of options that automatically comes with each VCN, plus any other sets you’ve created.
3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 |
# File 'lib/oci/core/virtual_network_client.rb', line 3026 def (compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_dhcp_options." if logger raise "Missing the required parameter 'compartment_id' when calling list_dhcp_options." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_dhcp_options." if vcn_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.' end path = "/dhcps" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::DhcpOptions>') end |
#list_drg_attachments(compartment_id, opts = {}) ⇒ Response
Lists the ‘DrgAttachment` objects for the specified compartment. You can filter the results by VCN or DRG.
3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 |
# File 'lib/oci/core/virtual_network_client.rb', line 3088 def (compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_drg_attachments." if logger raise "Missing the required parameter 'compartment_id' when calling list_drg_attachments." if compartment_id.nil? path = "/drgAttachments" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = opts[:'vcn_id'] if opts[:'vcn_id'] query_params[:'drgId'] = opts[:'drg_id'] if opts[:'drg_id'] query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::DrgAttachment>') end |
#list_drgs(compartment_id, opts = {}) ⇒ Response
Lists the DRGs in the specified compartment.
3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 |
# File 'lib/oci/core/virtual_network_client.rb', line 3131 def list_drgs(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_drgs." if logger raise "Missing the required parameter 'compartment_id' when calling list_drgs." if compartment_id.nil? path = "/drgs" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::Drg>') end |
#list_fast_connect_provider_services(compartment_id, opts = {}) ⇒ Response
Lists the service offerings from supported providers. You need this information so you can specify your desired provider and service offering when you create a virtual circuit.
For the compartment ID, provide the OCID of your tenancy (the root compartment).
For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 |
# File 'lib/oci/core/virtual_network_client.rb', line 3178 def list_fast_connect_provider_services(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_services." if logger raise "Missing the required parameter 'compartment_id' when calling list_fast_connect_provider_services." if compartment_id.nil? path = "/fastConnectProviderServices" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::FastConnectProviderService>') end |
#list_fast_connect_provider_virtual_circuit_bandwidth_shapes(provider_service_id, opts = {}) ⇒ Response
Gets the list of available virtual circuit bandwidth levels for a provider. You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit.
For more information about virtual circuits, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 |
# File 'lib/oci/core/virtual_network_client.rb', line 3222 def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(provider_service_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if logger raise "Missing the required parameter 'provider_service_id' when calling list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if provider_service_id.nil? raise "Parameter value for 'provider_service_id' must not be blank" if OCI::Internal::Util::blank_string?(provider_service_id) path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes".sub('{providerServiceId}', provider_service_id.to_s) # Query Params query_params = {} query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>') end |
#list_internet_gateways(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the Internet Gateways in the specified VCN and the specified compartment.
3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 |
# File 'lib/oci/core/virtual_network_client.rb', line 3282 def list_internet_gateways(compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_internet_gateways." if logger raise "Missing the required parameter 'compartment_id' when calling list_internet_gateways." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_internet_gateways." if vcn_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.' end path = "/internetGateways" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::InternetGateway>') end |
#list_ip_sec_connections(compartment_id, opts = {}) ⇒ Response
Lists the IPSec connections for the specified compartment. You can filter the results by DRG or CPE.
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 |
# File 'lib/oci/core/virtual_network_client.rb', line 3344 def list_ip_sec_connections(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_ip_sec_connections." if logger raise "Missing the required parameter 'compartment_id' when calling list_ip_sec_connections." if compartment_id.nil? path = "/ipsecConnections" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'drgId'] = opts[:'drg_id'] if opts[:'drg_id'] query_params[:'cpeId'] = opts[:'cpe_id'] if opts[:'cpe_id'] query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::IPSecConnection>') end |
#list_local_peering_gateways(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the local peering gateways (LPGs) for the specified VCN and compartment (the LPG’s compartment).
3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 |
# File 'lib/oci/core/virtual_network_client.rb', line 3389 def list_local_peering_gateways(compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_local_peering_gateways." if logger raise "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_local_peering_gateways." if vcn_id.nil? path = "/localPeeringGateways" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::LocalPeeringGateway>') end |
#list_private_ips(opts = {}) ⇒ Response
Lists the PrivateIp objects based on one of these filters:
- Subnet OCID.
- VNIC OCID.
- Both private IP address and subnet OCID: This lets
you get a `privateIP` object based on its private IP
address (for example, 10.0.3.3) and not its OCID. For comparison,
{#get_private_ip get_private_ip}
requires the OCID.
If you’re listing all the private IPs associated with a given subnet or VNIC, the response includes both primary and secondary private IPs.
3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 |
# File 'lib/oci/core/virtual_network_client.rb', line 3449 def list_private_ips(opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_private_ips." if logger path = "/privateIps" # Query Params query_params = {} query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'ipAddress'] = opts[:'ip_address'] if opts[:'ip_address'] query_params[:'subnetId'] = opts[:'subnet_id'] if opts[:'subnet_id'] query_params[:'vnicId'] = opts[:'vnic_id'] if opts[:'vnic_id'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::PrivateIp>') end |
#list_public_ips(scope, compartment_id, opts = {}) ⇒ Response
Lists either the ephemeral or reserved PublicIp objects in the specified compartment.
To list your reserved public IPs, set ‘scope` = `REGION`, and leave the `availabilityDomain` parameter empty.
To list your ephemeral public IPs, set ‘scope` = `AVAILABILITY_DOMAIN`, and set the `availabilityDomain` parameter to the desired Availability Domain. An ephemeral public IP is always in the same Availability Domain and compartment as the private IP it’s assigned to.
3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 |
# File 'lib/oci/core/virtual_network_client.rb', line 3513 def list_public_ips(scope, compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_public_ips." if logger raise "Missing the required parameter 'scope' when calling list_public_ips." if scope.nil? unless ['REGION', 'AVAILABILITY_DOMAIN'].include?(scope) raise "Invalid value for 'scope', must be one of REGION, AVAILABILITY_DOMAIN." end raise "Missing the required parameter 'compartment_id' when calling list_public_ips." if compartment_id.nil? path = "/publicIps" # Query Params query_params = {} query_params[:'scope'] = scope query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::PublicIp>') end |
#list_remote_peering_connections(compartment_id, opts = {}) ⇒ Response
Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC’s compartment).
3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 |
# File 'lib/oci/core/virtual_network_client.rb', line 3562 def list_remote_peering_connections(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_remote_peering_connections." if logger raise "Missing the required parameter 'compartment_id' when calling list_remote_peering_connections." if compartment_id.nil? path = "/remotePeeringConnections" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'drgId'] = opts[:'drg_id'] if opts[:'drg_id'] query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::RemotePeeringConnection>') end |
#list_route_tables(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the route tables in the specified VCN and specified compartment. The response includes the default route table that automatically comes with each VCN, plus any route tables you’ve created.
3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 |
# File 'lib/oci/core/virtual_network_client.rb', line 3625 def list_route_tables(compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_route_tables." if logger raise "Missing the required parameter 'compartment_id' when calling list_route_tables." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_route_tables." if vcn_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.' end path = "/routeTables" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::RouteTable>') end |
#list_security_lists(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the security lists in the specified VCN and compartment.
3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 |
# File 'lib/oci/core/virtual_network_client.rb', line 3703 def list_security_lists(compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_security_lists." if logger raise "Missing the required parameter 'compartment_id' when calling list_security_lists." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_security_lists." if vcn_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.' end path = "/securityLists" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::SecurityList>') end |
#list_subnets(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the subnets in the specified VCN and the specified compartment.
3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 |
# File 'lib/oci/core/virtual_network_client.rb', line 3781 def list_subnets(compartment_id, vcn_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_subnets." if logger raise "Missing the required parameter 'compartment_id' when calling list_subnets." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling list_subnets." if vcn_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.' end path = "/subnets" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'vcnId'] = vcn_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::Subnet>') end |
#list_vcns(compartment_id, opts = {}) ⇒ Response
Lists the Virtual Cloud Networks (VCNs) in the specified compartment.
3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 |
# File 'lib/oci/core/virtual_network_client.rb', line 3858 def list_vcns(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_vcns." if logger raise "Missing the required parameter 'compartment_id' when calling list_vcns." if compartment_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.' end path = "/vcns" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::Vcn>') end |
#list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {}) ⇒ Response
The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment).
3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 |
# File 'lib/oci/core/virtual_network_client.rb', line 3915 def list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuit_bandwidth_shapes." if logger raise "Missing the required parameter 'compartment_id' when calling list_virtual_circuit_bandwidth_shapes." if compartment_id.nil? path = "/virtualCircuitBandwidthShapes" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>') end |
#list_virtual_circuit_public_prefixes(virtual_circuit_id, opts = {}) ⇒ Response
Lists the public IP prefixes and their details for the specified public virtual circuit.
3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 |
# File 'lib/oci/core/virtual_network_client.rb', line 3954 def list_virtual_circuit_public_prefixes(virtual_circuit_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuit_public_prefixes." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling list_virtual_circuit_public_prefixes." if virtual_circuit_id.nil? if opts[:'verification_state'] && !OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.include?(opts[:'verification_state']) raise 'Invalid value for "verification_state", must be one of the values in OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.' end raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} query_params[:'verificationState'] = opts[:'verification_state'] if opts[:'verification_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::VirtualCircuitPublicPrefix>') end |
#list_virtual_circuits(compartment_id, opts = {}) ⇒ Response
Lists the virtual circuits in the specified compartment.
4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 |
# File 'lib/oci/core/virtual_network_client.rb', line 4016 def list_virtual_circuits(compartment_id, opts = {}) logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuits." if logger raise "Missing the required parameter 'compartment_id' when calling list_virtual_circuits." if compartment_id.nil? if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by']) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order']) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:'lifecycle_state'] && !OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state']) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.' end path = "/virtualCircuits" # Query Params query_params = {} query_params[:'compartmentId'] = compartment_id query_params[:'limit'] = opts[:'limit'] if opts[:'limit'] query_params[:'page'] = opts[:'page'] if opts[:'page'] query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state'] # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' post_body = nil return @api_client.call_api( :GET, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'Array<OCI::Core::Models::VirtualCircuit>') end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
72 73 74 |
# File 'lib/oci/core/virtual_network_client.rb', line 72 def logger @api_client.config.logger end |
#update_cpe(cpe_id, update_cpe_details, opts = {}) ⇒ Response
Updates the specified CPE’s display name. Avoid entering confidential information.
4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 |
# File 'lib/oci/core/virtual_network_client.rb', line 4073 def update_cpe(cpe_id, update_cpe_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_cpe." if logger raise "Missing the required parameter 'cpe_id' when calling update_cpe." if cpe_id.nil? raise "Missing the required parameter 'update_cpe_details' when calling update_cpe." if update_cpe_details.nil? raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id) path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_cpe_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Cpe') end |
#update_cross_connect(cross_connect_id, update_cross_connect_details, opts = {}) ⇒ Response
Updates the specified cross-connect.
4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 |
# File 'lib/oci/core/virtual_network_client.rb', line 4112 def update_cross_connect(cross_connect_id, update_cross_connect_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_cross_connect." if logger raise "Missing the required parameter 'cross_connect_id' when calling update_cross_connect." if cross_connect_id.nil? raise "Missing the required parameter 'update_cross_connect_details' when calling update_cross_connect." if update_cross_connect_details.nil? raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id) path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_cross_connect_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnect') end |
#update_cross_connect_group(cross_connect_group_id, update_cross_connect_group_details, opts = {}) ⇒ Response
Updates the specified cross-connect group’s display name. Avoid entering confidential information.
4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 |
# File 'lib/oci/core/virtual_network_client.rb', line 4153 def update_cross_connect_group(cross_connect_group_id, update_cross_connect_group_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_cross_connect_group." if logger raise "Missing the required parameter 'cross_connect_group_id' when calling update_cross_connect_group." if cross_connect_group_id.nil? raise "Missing the required parameter 'update_cross_connect_group_details' when calling update_cross_connect_group." if update_cross_connect_group_details.nil? raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id) path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_cross_connect_group_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::CrossConnectGroup') end |
#update_dhcp_options(dhcp_id, update_dhcp_details, opts = {}) ⇒ Response
Updates the specified set of DHCP options. You can update the display name or the options themselves. Avoid entering confidential information.
Note that the ‘options` object you provide replaces the entire existing set of options.
4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 |
# File 'lib/oci/core/virtual_network_client.rb', line 4196 def (dhcp_id, update_dhcp_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_dhcp_options." if logger raise "Missing the required parameter 'dhcp_id' when calling update_dhcp_options." if dhcp_id.nil? raise "Missing the required parameter 'update_dhcp_details' when calling update_dhcp_options." if update_dhcp_details.nil? raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id) path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_dhcp_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DhcpOptions') end |
#update_drg(drg_id, update_drg_details, opts = {}) ⇒ Response
Updates the specified DRG’s display name. Avoid entering confidential information.
4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 |
# File 'lib/oci/core/virtual_network_client.rb', line 4236 def update_drg(drg_id, update_drg_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_drg." if logger raise "Missing the required parameter 'drg_id' when calling update_drg." if drg_id.nil? raise "Missing the required parameter 'update_drg_details' when calling update_drg." if update_drg_details.nil? raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id) path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_drg_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Drg') end |
#update_drg_attachment(drg_attachment_id, update_drg_attachment_details, opts = {}) ⇒ Response
Updates the display name for the specified ‘DrgAttachment`. Avoid entering confidential information.
4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 |
# File 'lib/oci/core/virtual_network_client.rb', line 4277 def (, , opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_drg_attachment." if logger raise "Missing the required parameter 'drg_attachment_id' when calling update_drg_attachment." if .nil? raise "Missing the required parameter 'update_drg_attachment_details' when calling update_drg_attachment." if .nil? raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?() path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', .to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body() return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::DrgAttachment') end |
#update_internet_gateway(ig_id, update_internet_gateway_details, opts = {}) ⇒ Response
Updates the specified Internet Gateway. You can disable/enable it, or change its display name. Avoid entering confidential information.
If the gateway is disabled, that means no traffic will flow to/from the internet even if there’s a route rule that enables that traffic.
4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 |
# File 'lib/oci/core/virtual_network_client.rb', line 4321 def update_internet_gateway(ig_id, update_internet_gateway_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_internet_gateway." if logger raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil? raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil? raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id) path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_internet_gateway_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::InternetGateway') end |
#update_ip_sec_connection(ipsc_id, update_ip_sec_connection_details, opts = {}) ⇒ Response
Updates the display name for the specified IPSec connection. Avoid entering confidential information.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 |
# File 'lib/oci/core/virtual_network_client.rb', line 4362 def update_ip_sec_connection(ipsc_id, update_ip_sec_connection_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_ip_sec_connection." if logger raise "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection." if ipsc_id.nil? raise "Missing the required parameter 'update_ip_sec_connection_details' when calling update_ip_sec_connection." if update_ip_sec_connection_details.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id) path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_ip_sec_connection_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::IPSecConnection') end |
#update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) ⇒ Response
Updates the specified local peering gateway (LPG).
4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 |
# File 'lib/oci/core/virtual_network_client.rb', line 4402 def update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_local_peering_gateway." if logger raise "Missing the required parameter 'local_peering_gateway_id' when calling update_local_peering_gateway." if local_peering_gateway_id.nil? raise "Missing the required parameter 'update_local_peering_gateway_details' when calling update_local_peering_gateway." if update_local_peering_gateway_details.nil? raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id) path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_local_peering_gateway_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::LocalPeeringGateway') end |
#update_private_ip(private_ip_id, update_private_ip_details, opts = {}) ⇒ Response
Updates the specified private IP. You must specify the object’s OCID. Use this operation if you want to:
- Move a secondary private IP to a different VNIC in the same subnet.
- Change the display name for a secondary private IP.
- Change the hostname for a secondary private IP.
This operation cannot be used with primary private IPs. To update the hostname for the primary IP on a VNIC, use update_vnic.
4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 |
# File 'lib/oci/core/virtual_network_client.rb', line 4451 def update_private_ip(private_ip_id, update_private_ip_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_private_ip." if logger raise "Missing the required parameter 'private_ip_id' when calling update_private_ip." if private_ip_id.nil? raise "Missing the required parameter 'update_private_ip_details' when calling update_private_ip." if update_private_ip_details.nil? raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id) path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_private_ip_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PrivateIp') end |
#update_public_ip(public_ip_id, update_public_ip_details, opts = {}) ⇒ Response
Updates the specified public IP. You must specify the object’s OCID. Use this operation if you want to:
-
Assign a reserved public IP in your pool to a private IP.
-
Move a reserved public IP to a different private IP.
-
Unassign a reserved public IP from a private IP (which returns it to your pool
of reserved public IPs).
-
Change the display name for a public IP (either ephemeral or reserved).
Assigning, moving, and unassigning a reserved public IP are asynchronous operations. Poll the public IP’s ‘lifecycleState` to determine if the operation succeeded.
Note: When moving a reserved public IP, the target private IP must not already have a public IP with ‘lifecycleState` = ASSIGNING or ASSIGNED. If it does, an error is returned. Also, the initial unassignment from the original private IP always succeeds, but the assignment to the target private IP is asynchronous and could fail silently (for example, if the target private IP is deleted or has a different public IP assigned to it in the interim). If that occurs, the public IP remains unassigned and its `lifecycleState` switches to AVAILABLE (it is not reassigned to its original private IP). You must poll the public IP’s ‘lifecycleState` to determine if the move succeeded.
Regarding ephemeral public IPs:
-
If you want to assign an ephemeral public IP to a primary private IP, use
-
You can’t move an ephemeral public IP to a different private IP.
-
If you want to unassign an ephemeral public IP from its private IP, use
delete_public_ip, which unassigns and deletes the ephemeral public IP.
Note: If a public IP (either ephemeral or reserved) is assigned to a secondary private IP (see PrivateIp), and you move that secondary private IP to another VNIC, the public IP moves with it.
Note: There’s a limit to the number of PublicIp a VNIC or instance can have. If you try to move a reserved public IP to a VNIC or instance that has already reached its public IP limit, an error is returned. For information about the public IP limits, see [Public IP Addresses](docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm).
4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 |
# File 'lib/oci/core/virtual_network_client.rb', line 4529 def update_public_ip(public_ip_id, update_public_ip_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_public_ip." if logger raise "Missing the required parameter 'public_ip_id' when calling update_public_ip." if public_ip_id.nil? raise "Missing the required parameter 'update_public_ip_details' when calling update_public_ip." if update_public_ip_details.nil? raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id) path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_public_ip_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::PublicIp') end |
#update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {}) ⇒ Response
Updates the specified remote peering connection (RPC).
4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 |
# File 'lib/oci/core/virtual_network_client.rb', line 4569 def update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_remote_peering_connection." if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling update_remote_peering_connection." if remote_peering_connection_id.nil? raise "Missing the required parameter 'update_remote_peering_connection_details' when calling update_remote_peering_connection." if update_remote_peering_connection_details.nil? raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id) path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_remote_peering_connection_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RemotePeeringConnection') end |
#update_route_table(rt_id, update_route_table_details, opts = {}) ⇒ Response
Updates the specified route table’s display name or route rules. Avoid entering confidential information.
Note that the ‘routeRules` object you provide replaces the entire existing set of rules.
4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 |
# File 'lib/oci/core/virtual_network_client.rb', line 4612 def update_route_table(rt_id, update_route_table_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_route_table." if logger raise "Missing the required parameter 'rt_id' when calling update_route_table." if rt_id.nil? raise "Missing the required parameter 'update_route_table_details' when calling update_route_table." if update_route_table_details.nil? raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id) path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_route_table_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::RouteTable') end |
#update_security_list(security_list_id, update_security_list_details, opts = {}) ⇒ Response
Updates the specified security list’s display name or rules. Avoid entering confidential information.
Note that the ‘egressSecurityRules` or `ingressSecurityRules` objects you provide replace the entire existing objects.
4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 |
# File 'lib/oci/core/virtual_network_client.rb', line 4656 def update_security_list(security_list_id, update_security_list_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_security_list." if logger raise "Missing the required parameter 'security_list_id' when calling update_security_list." if security_list_id.nil? raise "Missing the required parameter 'update_security_list_details' when calling update_security_list." if update_security_list_details.nil? raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id) path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_security_list_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::SecurityList') end |
#update_subnet(subnet_id, update_subnet_details, opts = {}) ⇒ Response
Updates the specified subnet’s display name. Avoid entering confidential information.
4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 |
# File 'lib/oci/core/virtual_network_client.rb', line 4696 def update_subnet(subnet_id, update_subnet_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_subnet." if logger raise "Missing the required parameter 'subnet_id' when calling update_subnet." if subnet_id.nil? raise "Missing the required parameter 'update_subnet_details' when calling update_subnet." if update_subnet_details.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id) path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_subnet_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Subnet') end |
#update_vcn(vcn_id, update_vcn_details, opts = {}) ⇒ Response
Updates the specified VCN’s display name. Avoid entering confidential information.
4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 |
# File 'lib/oci/core/virtual_network_client.rb', line 4737 def update_vcn(vcn_id, update_vcn_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_vcn." if logger raise "Missing the required parameter 'vcn_id' when calling update_vcn." if vcn_id.nil? raise "Missing the required parameter 'update_vcn_details' when calling update_vcn." if update_vcn_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id) path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_vcn_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Vcn') end |
#update_virtual_circuit(virtual_circuit_id, update_virtual_circuit_details, opts = {}) ⇒ Response
Updates the specified virtual circuit. This can be called by either the customer who owns the virtual circuit, or the provider (when provisioning or de-provisioning the virtual circuit from their end). The documentation for update_virtual_circuit_details indicates who can update each property of the virtual circuit.
Important: If the virtual circuit is working and in the PROVISIONED state, updating any of the network-related properties (such as the DRG being used, the BGP ASN, and so on) will cause the virtual circuit’s state to switch to PROVISIONING and the related BGP session to go down. After Oracle re-provisions the virtual circuit, its state will return to PROVISIONED. Make sure you confirm that the associated BGP session is back up. For more information about the various states and how to test connectivity, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
To change the list of public IP prefixes for a public virtual circuit, use bulk_add_virtual_circuit_public_prefixes and bulk_delete_virtual_circuit_public_prefixes. Updating the list of prefixes does NOT cause the BGP session to go down. However, Oracle must verify the customer’s ownership of each added prefix before traffic for that prefix will flow across the virtual circuit.
4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 |
# File 'lib/oci/core/virtual_network_client.rb', line 4800 def update_virtual_circuit(virtual_circuit_id, update_virtual_circuit_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_virtual_circuit." if logger raise "Missing the required parameter 'virtual_circuit_id' when calling update_virtual_circuit." if virtual_circuit_id.nil? raise "Missing the required parameter 'update_virtual_circuit_details' when calling update_virtual_circuit." if update_virtual_circuit_details.nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id) path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_virtual_circuit_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::VirtualCircuit') end |
#update_vnic(vnic_id, update_vnic_details, opts = {}) ⇒ Response
Updates the specified VNIC.
4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 |
# File 'lib/oci/core/virtual_network_client.rb', line 4840 def update_vnic(vnic_id, update_vnic_details, opts = {}) logger.debug "Calling operation VirtualNetworkClient#update_vnic." if logger raise "Missing the required parameter 'vnic_id' when calling update_vnic." if vnic_id.nil? raise "Missing the required parameter 'update_vnic_details' when calling update_vnic." if update_vnic_details.nil? raise "Parameter value for 'vnic_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_id) path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s) # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match'] post_body = @api_client.object_to_http_body(update_vnic_details) return @api_client.call_api( :PUT, path, endpoint, :header_params => header_params, :query_params => query_params, :body => post_body, :return_type => 'OCI::Core::Models::Vnic') end |