Class: OCI::Core::VirtualNetworkClient
- Inherits:
-
Object
- Object
- OCI::Core::VirtualNetworkClient
- Defined in:
- lib/oci/core/virtual_network_client.rb
Overview
APIs for Networking Service, Compute Service, and Block Volume Service.
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.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#attach_service_id(service_gateway_id, attach_service_details, opts = {}) ⇒ Response
Enables the specified service on the specified gateway.
-
#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_service_gateway(create_service_gateway_details, opts = {}) ⇒ Response
Creates a new service gateway in the specified compartment.
-
#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_service_gateway(service_gateway_id, opts = {}) ⇒ Response
Deletes the specified service gateway.
-
#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.
-
#detach_service_id(service_gateway_id, detach_service_details, opts = {}) ⇒ Response
Disables the specified service on the specified gateway.
-
#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_service(service_id, opts = {}) ⇒ Response
Gets the specified service’s information.
-
#get_service_gateway(service_gateway_id, opts = {}) ⇒ Response
Gets the specified service gateway’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, retry_config: 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_service_gateways(compartment_id, opts = {}) ⇒ Response
Lists the service gateways in the specified compartment.
-
#list_services(opts = {}) ⇒ Response
Lists the available services that you can access through a service gateway in this region.
-
#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 or tags.
-
#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 or tags.
-
#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 or tags 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_service_gateway(service_gateway_id, update_service_gateway_details, opts = {}) ⇒ Response
Updates the specified service gateway.
-
#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, retry_config: 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.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/oci/core/virtual_network_client.rb', line 48 def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil, retry_config: 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 = OCI::Signer.new( config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content ) end @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config 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.
26 27 28 |
# File 'lib/oci/core/virtual_network_client.rb', line 26 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is ‘nil`, which means that an operation will not perform any retries
22 23 24 |
# File 'lib/oci/core/virtual_network_client.rb', line 22 def retry_config @retry_config end |
Instance Method Details
#attach_service_id(service_gateway_id, attach_service_details, opts = {}) ⇒ Response
Enables the specified service on the specified gateway. In other words, enables the service gateway to send traffic to the specified service. You must also set up a route rule with the service’s ‘cidrBlock` as the rule’s destination CIDR and the gateway as the rule’s target. See RouteTable.
Note: The ‘AttachServiceId` operation is an easy way to enable an individual service on the service gateway. Compare it with update_service_gateway, which also lets you enable an individual service. However, with `UpdateServiceGateway`, you must specify the entire list of services you want enabled on the service gateway.
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 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/oci/core/virtual_network_client.rb', line 123 def attach_service_id(service_gateway_id, attach_service_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#attach_service_id.' if logger raise "Missing the required parameter 'service_gateway_id' when calling attach_service_id." if service_gateway_id.nil? raise "Missing the required parameter 'attach_service_details' when calling attach_service_id." if attach_service_details.nil? raise "Parameter value for 'service_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(service_gateway_id) path = '/serviceGateways/{serviceGatewayId}/actions/attachService'.sub('{serviceGatewayId}', service_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(attach_service_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#attach_service_id') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::ServiceGateway' ) end # rubocop:enable Metrics/BlockLength end |
#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.
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/oci/core/virtual_network_client.rb', line 182 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(bulk_add_virtual_circuit_public_prefixes_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/oci/core/virtual_network_client.rb', line 240 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(bulk_delete_virtual_circuit_public_prefixes_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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).
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/oci/core/virtual_network_client.rb', line 302 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(connect_local_peering_gateways_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#connect_local_peering_gateways') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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).
364 365 366 367 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 395 396 397 398 399 |
# File 'lib/oci/core/virtual_network_client.rb', line 364 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(connect_remote_peering_connections_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#connect_remote_peering_connections') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 |
# File 'lib/oci/core/virtual_network_client.rb', line 437 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_cpe_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_cpe') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Cpe' ) end # rubocop:enable Metrics/BlockLength 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.
514 515 516 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 544 545 546 547 548 549 550 |
# File 'lib/oci/core/virtual_network_client.rb', line 514 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_cross_connect_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_cross_connect') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnect' ) end # rubocop:enable Metrics/BlockLength 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.
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 |
# File 'lib/oci/core/virtual_network_client.rb', line 587 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_cross_connect_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_cross_connect_group') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnectGroup' ) end # rubocop:enable Metrics/BlockLength 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.
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lib/oci/core/virtual_network_client.rb', line 657 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_dhcp_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_dhcp_options') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DhcpOptions' ) end # rubocop:enable Metrics/BlockLength 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.
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/oci/core/virtual_network_client.rb', line 727 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_drg_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_drg') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Drg' ) end # rubocop:enable Metrics/BlockLength 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).
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/oci/core/virtual_network_client.rb', line 796 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body() # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_drg_attachment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DrgAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#create_internet_gateway(create_internet_gateway_details, opts = {}) ⇒ Response
Creates a new Internet Gateway for the specified VCN. For more information, see [Access 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.
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 |
# File 'lib/oci/core/virtual_network_client.rb', line 875 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_internet_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_internet_gateway') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::InternetGateway' ) end # rubocop:enable Metrics/BlockLength 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.
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 |
# File 'lib/oci/core/virtual_network_client.rb', line 959 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_ip_sec_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_ip_sec_connection') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::IPSecConnection' ) end # rubocop:enable Metrics/BlockLength end |
#create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) ⇒ Response
Creates a new local peering gateway (LPG) for the specified VCN.
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/oci/core/virtual_network_client.rb', line 1018 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_local_peering_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_local_peering_gateway') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::LocalPeeringGateway' ) end # rubocop:enable Metrics/BlockLength 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).
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/oci/core/virtual_network_client.rb', line 1079 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_private_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_private_ip') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PrivateIp' ) end # rubocop:enable Metrics/BlockLength 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.
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 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
# File 'lib/oci/core/virtual_network_client.rb', line 1157 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_public_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_public_ip') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PublicIp' ) end # rubocop:enable Metrics/BlockLength end |
#create_remote_peering_connection(create_remote_peering_connection_details, opts = {}) ⇒ Response
Creates a new remote peering connection (RPC) for the specified DRG.
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 |
# File 'lib/oci/core/virtual_network_client.rb', line 1216 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_remote_peering_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_remote_peering_connection') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RemotePeeringConnection' ) end # rubocop:enable Metrics/BlockLength 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.
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 |
# File 'lib/oci/core/virtual_network_client.rb', line 1289 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_route_table') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RouteTable' ) end # rubocop:enable Metrics/BlockLength 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.
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 |
# File 'lib/oci/core/virtual_network_client.rb', line 1361 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_security_list_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_security_list') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::SecurityList' ) end # rubocop:enable Metrics/BlockLength end |
#create_service_gateway(create_service_gateway_details, opts = {}) ⇒ Response
Creates a new service gateway in the specified compartment.
For the purposes of access control, you must provide the OCID of the compartment where you want the service gateway to reside. 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 service gateway, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 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 1428 def create_service_gateway(create_service_gateway_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_service_gateway.' if logger raise "Missing the required parameter 'create_service_gateway_details' when calling create_service_gateway." if create_service_gateway_details.nil? path = '/serviceGateways' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_service_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_service_gateway') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::ServiceGateway' ) end # rubocop:enable Metrics/BlockLength 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).
1517 1518 1519 1520 1521 1522 1523 1524 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 1552 1553 |
# File 'lib/oci/core/virtual_network_client.rb', line 1517 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_subnet_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_subnet') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Subnet' ) end # rubocop:enable Metrics/BlockLength 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).
1604 1605 1606 1607 1608 1609 1610 1611 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 1639 1640 |
# File 'lib/oci/core/virtual_network_client.rb', line 1604 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_vcn_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_vcn') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Vcn' ) end # rubocop:enable Metrics/BlockLength 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).
1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 1683 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_virtual_circuit_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_virtual_circuit') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::VirtualCircuit' ) end # rubocop:enable Metrics/BlockLength 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.
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/oci/core/virtual_network_client.rb', line 1742 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_cpe') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Deletes the specified cross-connect. It must not be mapped to a VirtualCircuit.
1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 |
# File 'lib/oci/core/virtual_network_client.rb', line 1799 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_cross_connect') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'lib/oci/core/virtual_network_client.rb', line 1857 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_cross_connect_group') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 |
# File 'lib/oci/core/virtual_network_client.rb', line 1917 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_dhcp_options') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
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 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 |
# File 'lib/oci/core/virtual_network_client.rb', line 1976 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_drg') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2034 2035 2036 2037 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 2065 2066 2067 2068 2069 |
# File 'lib/oci/core/virtual_network_client.rb', line 2034 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_drg_attachment') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2094 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_internet_gateway') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 |
# File 'lib/oci/core/virtual_network_client.rb', line 2157 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_ip_sec_connection') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 |
# File 'lib/oci/core/virtual_network_client.rb', line 2216 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_local_peering_gateway') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/oci/core/virtual_network_client.rb', line 2282 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_private_ip') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2348 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 2376 2377 2378 2379 2380 2381 2382 2383 |
# File 'lib/oci/core/virtual_network_client.rb', line 2348 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_public_ip') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 |
# File 'lib/oci/core/virtual_network_client.rb', line 2407 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_remote_peering_connection') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 |
# File 'lib/oci/core/virtual_network_client.rb', line 2467 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_route_table') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 |
# File 'lib/oci/core/virtual_network_client.rb', line 2527 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_security_list') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_service_gateway(service_gateway_id, opts = {}) ⇒ Response
Deletes the specified service gateway. There must not be a route table that lists the service gateway as a target.
2584 2585 2586 2587 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 2615 2616 2617 2618 2619 |
# File 'lib/oci/core/virtual_network_client.rb', line 2584 def delete_service_gateway(service_gateway_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_service_gateway.' if logger raise "Missing the required parameter 'service_gateway_id' when calling delete_service_gateway." if service_gateway_id.nil? raise "Parameter value for 'service_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(service_gateway_id) path = '/serviceGateways/{serviceGatewayId}'.sub('{serviceGatewayId}', service_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_service_gateway') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 |
# File 'lib/oci/core/virtual_network_client.rb', line 2642 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_subnet') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 |
# File 'lib/oci/core/virtual_network_client.rb', line 2700 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_vcn') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength 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.
2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 |
# File 'lib/oci/core/virtual_network_client.rb', line 2760 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_virtual_circuit') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#detach_service_id(service_gateway_id, detach_service_details, opts = {}) ⇒ Response
Disables the specified service on the specified gateway. In other words, stops the service gateway from sending traffic to the specified service. You do not need to remove any route rules that specify this service’s ‘cidrBlock` as the destination CIDR. However, consider removing the rules if your intent is to permanently disable use of the service through this service gateway.
Note: The ‘DetachServiceId` operation is an easy way to disable an individual service on the service gateway. Compare it with update_service_gateway, which also lets you disable an individual service. However, with `UpdateServiceGateway`, you must specify the entire list of services you want enabled on the service gateway. `UpdateServiceGateway` also lets you block all traffic through the service gateway without having to disable each of the individual services.
2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 |
# File 'lib/oci/core/virtual_network_client.rb', line 2829 def detach_service_id(service_gateway_id, detach_service_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#detach_service_id.' if logger raise "Missing the required parameter 'service_gateway_id' when calling detach_service_id." if service_gateway_id.nil? raise "Missing the required parameter 'detach_service_details' when calling detach_service_id." if detach_service_details.nil? raise "Parameter value for 'service_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(service_gateway_id) path = '/serviceGateways/{serviceGatewayId}/actions/detachService'.sub('{serviceGatewayId}', service_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(detach_service_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#detach_service_id') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::ServiceGateway' ) end # rubocop:enable Metrics/BlockLength end |
#get_cpe(cpe_id, opts = {}) ⇒ Response
Gets the specified CPE’s information.
2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 |
# File 'lib/oci/core/virtual_network_client.rb', line 2883 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cpe') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Cpe' ) end # rubocop:enable Metrics/BlockLength end |
#get_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Gets the specified cross-connect’s information.
2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 |
# File 'lib/oci/core/virtual_network_client.rb', line 2936 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cross_connect') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnect' ) end # rubocop:enable Metrics/BlockLength end |
#get_cross_connect_group(cross_connect_group_id, opts = {}) ⇒ Response
Gets the specified cross-connect group’s information.
2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 |
# File 'lib/oci/core/virtual_network_client.rb', line 2989 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cross_connect_group') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnectGroup' ) end # rubocop:enable Metrics/BlockLength end |
#get_cross_connect_letter_of_authority(cross_connect_id, opts = {}) ⇒ Response
Gets the Letter of Authority for the specified cross-connect.
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 3073 3074 3075 3076 3077 |
# File 'lib/oci/core/virtual_network_client.rb', line 3042 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json, text/html' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cross_connect_letter_of_authority') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::LetterOfAuthority' ) end # rubocop:enable Metrics/BlockLength end |
#get_cross_connect_status(cross_connect_id, opts = {}) ⇒ Response
Gets the status of the specified cross-connect.
3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 |
# File 'lib/oci/core/virtual_network_client.rb', line 3096 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cross_connect_status') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnectStatus' ) end # rubocop:enable Metrics/BlockLength end |
#get_dhcp_options(dhcp_id, opts = {}) ⇒ Response
Gets the specified set of DHCP options.
3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 |
# File 'lib/oci/core/virtual_network_client.rb', line 3149 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_dhcp_options') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DhcpOptions' ) end # rubocop:enable Metrics/BlockLength end |
#get_drg(drg_id, opts = {}) ⇒ Response
Gets the specified DRG’s information.
3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 |
# File 'lib/oci/core/virtual_network_client.rb', line 3202 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_drg') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Drg' ) end # rubocop:enable Metrics/BlockLength end |
#get_drg_attachment(drg_attachment_id, opts = {}) ⇒ Response
Gets the information for the specified ‘DrgAttachment`.
3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 |
# File 'lib/oci/core/virtual_network_client.rb', line 3255 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_drg_attachment') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DrgAttachment' ) end # rubocop:enable Metrics/BlockLength 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).
3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 |
# File 'lib/oci/core/virtual_network_client.rb', line 3310 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_fast_connect_provider_service') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::FastConnectProviderService' ) end # rubocop:enable Metrics/BlockLength end |
#get_internet_gateway(ig_id, opts = {}) ⇒ Response
Gets the specified Internet Gateway’s information.
3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 |
# File 'lib/oci/core/virtual_network_client.rb', line 3363 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_internet_gateway') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::InternetGateway' ) end # rubocop:enable Metrics/BlockLength 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.
3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 |
# File 'lib/oci/core/virtual_network_client.rb', line 3419 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ip_sec_connection') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::IPSecConnection' ) end # rubocop:enable Metrics/BlockLength 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.
3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 |
# File 'lib/oci/core/virtual_network_client.rb', line 3474 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ip_sec_connection_device_config') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::IPSecConnectionDeviceConfig' ) end # rubocop:enable Metrics/BlockLength 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).
3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 |
# File 'lib/oci/core/virtual_network_client.rb', line 3528 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ip_sec_connection_device_status') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::IPSecConnectionDeviceStatus' ) end # rubocop:enable Metrics/BlockLength end |
#get_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Gets the specified local peering gateway’s information.
3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 |
# File 'lib/oci/core/virtual_network_client.rb', line 3581 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_local_peering_gateway') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::LocalPeeringGateway' ) end # rubocop:enable Metrics/BlockLength 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.
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 3672 3673 |
# File 'lib/oci/core/virtual_network_client.rb', line 3638 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_private_ip') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PrivateIp' ) end # rubocop:enable Metrics/BlockLength 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.
3702 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 3702 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_public_ip') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PublicIp' ) end # rubocop:enable Metrics/BlockLength 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.
3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 |
# File 'lib/oci/core/virtual_network_client.rb', line 3760 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(get_public_ip_by_ip_address_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_public_ip_by_ip_address') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PublicIp' ) end # rubocop:enable Metrics/BlockLength 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.
3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 |
# File 'lib/oci/core/virtual_network_client.rb', line 3823 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(get_public_ip_by_private_ip_id_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_public_ip_by_private_ip_id') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PublicIp' ) end # rubocop:enable Metrics/BlockLength end |
#get_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Get the specified remote peering connection’s information.
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 3903 3904 3905 3906 3907 3908 3909 3910 3911 |
# File 'lib/oci/core/virtual_network_client.rb', line 3876 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_remote_peering_connection') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RemotePeeringConnection' ) end # rubocop:enable Metrics/BlockLength end |
#get_route_table(rt_id, opts = {}) ⇒ Response
Gets the specified route table’s information.
3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 |
# File 'lib/oci/core/virtual_network_client.rb', line 3929 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_route_table') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_list(security_list_id, opts = {}) ⇒ Response
Gets the specified security list’s information.
3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 |
# File 'lib/oci/core/virtual_network_client.rb', line 3982 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_security_list') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::SecurityList' ) end # rubocop:enable Metrics/BlockLength end |
#get_service(service_id, opts = {}) ⇒ Response
Gets the specified service’s information.
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 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 |
# File 'lib/oci/core/virtual_network_client.rb', line 4036 def get_service(service_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_service.' if logger raise "Missing the required parameter 'service_id' when calling get_service." if service_id.nil? raise "Parameter value for 'service_id' must not be blank" if OCI::Internal::Util.blank_string?(service_id) path = '/services/{serviceId}'.sub('{serviceId}', service_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_service') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Service' ) end # rubocop:enable Metrics/BlockLength end |
#get_service_gateway(service_gateway_id, opts = {}) ⇒ Response
Gets the specified service gateway’s information.
4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 |
# File 'lib/oci/core/virtual_network_client.rb', line 4089 def get_service_gateway(service_gateway_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_service_gateway.' if logger raise "Missing the required parameter 'service_gateway_id' when calling get_service_gateway." if service_gateway_id.nil? raise "Parameter value for 'service_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(service_gateway_id) path = '/serviceGateways/{serviceGatewayId}'.sub('{serviceGatewayId}', service_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_service_gateway') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::ServiceGateway' ) end # rubocop:enable Metrics/BlockLength end |
#get_subnet(subnet_id, opts = {}) ⇒ Response
Gets the specified subnet’s information.
4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 4142 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_subnet') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Subnet' ) end # rubocop:enable Metrics/BlockLength end |
#get_vcn(vcn_id, opts = {}) ⇒ Response
Gets the specified VCN’s information.
4195 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 4225 4226 4227 4228 4229 4230 |
# File 'lib/oci/core/virtual_network_client.rb', line 4195 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vcn') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Vcn' ) end # rubocop:enable Metrics/BlockLength end |
#get_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Gets the specified virtual circuit’s information.
4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 |
# File 'lib/oci/core/virtual_network_client.rb', line 4248 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_virtual_circuit') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::VirtualCircuit' ) end # rubocop:enable Metrics/BlockLength 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.
4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 |
# File 'lib/oci/core/virtual_network_client.rb', line 4305 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vnic') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Vnic' ) end # rubocop:enable Metrics/BlockLength 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).
4359 4360 4361 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 4391 4392 |
# File 'lib/oci/core/virtual_network_client.rb', line 4359 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params['accept'] = 'application/json' header_params['content-type'] = 'application/json' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_allowed_peer_regions_for_remote_peering') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::PeerRegionForRemotePeering>' ) end # rubocop:enable Metrics/BlockLength end |
#list_cpes(compartment_id, opts = {}) ⇒ Response
Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment.
4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 |
# File 'lib/oci/core/virtual_network_client.rb', line 4416 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cpes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::Cpe>' ) end # rubocop:enable Metrics/BlockLength end |
#list_cross_connect_groups(compartment_id, opts = {}) ⇒ Response
Lists the cross-connect groups in the specified compartment.
4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 |
# File 'lib/oci/core/virtual_network_client.rb', line 4494 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cross_connect_groups') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::CrossConnectGroup>' ) end # rubocop:enable Metrics/BlockLength 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.
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 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 |
# File 'lib/oci/core/virtual_network_client.rb', line 4571 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cross_connect_locations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::CrossConnectLocation>' ) end # rubocop:enable Metrics/BlockLength 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.
4651 4652 4653 4654 4655 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 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 |
# File 'lib/oci/core/virtual_network_client.rb', line 4651 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cross_connects') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::CrossConnect>' ) end # rubocop:enable Metrics/BlockLength 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.
4730 4731 4732 4733 4734 4735 4736 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 4766 4767 |
# File 'lib/oci/core/virtual_network_client.rb', line 4730 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_crossconnect_port_speed_shapes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::CrossConnectPortSpeedShape>' ) end # rubocop:enable Metrics/BlockLength 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.
4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 4811 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_dhcp_options') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::DhcpOptions>' ) end # rubocop:enable Metrics/BlockLength 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.
4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 |
# File 'lib/oci/core/virtual_network_client.rb', line 4892 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_drg_attachments') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::DrgAttachment>' ) end # rubocop:enable Metrics/BlockLength end |
#list_drgs(compartment_id, opts = {}) ⇒ Response
Lists the DRGs in the specified compartment.
4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 |
# File 'lib/oci/core/virtual_network_client.rb', line 4954 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_drgs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::Drg>' ) end # rubocop:enable Metrics/BlockLength 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).
5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 |
# File 'lib/oci/core/virtual_network_client.rb', line 5020 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_fast_connect_provider_services') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::FastConnectProviderService>' ) end # rubocop:enable Metrics/BlockLength 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).
5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 |
# File 'lib/oci/core/virtual_network_client.rb', line 5083 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_fast_connect_provider_virtual_circuit_bandwidth_shapes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>' ) end # rubocop:enable Metrics/BlockLength end |
#list_internet_gateways(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the Internet Gateways in the specified VCN and the specified compartment.
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 |
# File 'lib/oci/core/virtual_network_client.rb', line 5162 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_internet_gateways') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::InternetGateway>' ) end # rubocop:enable Metrics/BlockLength 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.
5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 |
# File 'lib/oci/core/virtual_network_client.rb', line 5243 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_ip_sec_connections') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::IPSecConnection>' ) end # rubocop:enable Metrics/BlockLength 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).
5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 |
# File 'lib/oci/core/virtual_network_client.rb', line 5307 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_local_peering_gateways') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::LocalPeeringGateway>' ) end # rubocop:enable Metrics/BlockLength 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.
5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 |
# File 'lib/oci/core/virtual_network_client.rb', line 5386 def list_private_ips(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_private_ips.' if logger path = '/privateIps' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_private_ips') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::PrivateIp>' ) end # rubocop:enable Metrics/BlockLength 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.
5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 |
# File 'lib/oci/core/virtual_network_client.rb', line 5469 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 %w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_public_ips') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::PublicIp>' ) end # rubocop:enable Metrics/BlockLength 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).
5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 |
# File 'lib/oci/core/virtual_network_client.rb', line 5537 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_remote_peering_connections') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::RemotePeeringConnection>' ) end # rubocop:enable Metrics/BlockLength 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.
5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 |
# File 'lib/oci/core/virtual_network_client.rb', line 5619 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_route_tables') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::RouteTable>' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_lists(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the security lists in the specified VCN and compartment.
5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 |
# File 'lib/oci/core/virtual_network_client.rb', line 5716 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_security_lists') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::SecurityList>' ) end # rubocop:enable Metrics/BlockLength end |
#list_service_gateways(compartment_id, opts = {}) ⇒ Response
Lists the service gateways in the specified compartment. You may optionally specify a VCN OCID to filter the results by VCN.
5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 |
# File 'lib/oci/core/virtual_network_client.rb', line 5812 def list_service_gateways(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_service_gateways.' if logger raise "Missing the required parameter 'compartment_id' when calling list_service_gateways." if compartment_id.nil? if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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::ServiceGateway::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ServiceGateway::LIFECYCLE_STATE_ENUM.' end path = '/serviceGateways' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_service_gateways') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::ServiceGateway>' ) end # rubocop:enable Metrics/BlockLength end |
#list_services(opts = {}) ⇒ Response
Lists the available services that you can access through a service gateway in this region.
5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 |
# File 'lib/oci/core/virtual_network_client.rb', line 5887 def list_services(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_services.' if logger path = '/services' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_services') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::Service>' ) end # rubocop:enable Metrics/BlockLength end |
#list_subnets(compartment_id, vcn_id, opts = {}) ⇒ Response
Lists the subnets in the specified VCN and the specified compartment.
5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 |
# File 'lib/oci/core/virtual_network_client.rb', line 5964 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_subnets') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::Subnet>' ) end # rubocop:enable Metrics/BlockLength end |
#list_vcns(compartment_id, opts = {}) ⇒ Response
Lists the Virtual Cloud Networks (VCNs) in the specified compartment.
6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 |
# File 'lib/oci/core/virtual_network_client.rb', line 6060 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_vcns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::Vcn>' ) end # rubocop:enable Metrics/BlockLength 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).
6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 |
# File 'lib/oci/core/virtual_network_client.rb', line 6136 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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_virtual_circuit_bandwidth_shapes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>' ) end # rubocop:enable Metrics/BlockLength 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.
6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 |
# File 'lib/oci/core/virtual_network_client.rb', line 6194 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_virtual_circuit_public_prefixes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::VirtualCircuitPublicPrefix>' ) end # rubocop:enable Metrics/BlockLength end |
#list_virtual_circuits(compartment_id, opts = {}) ⇒ Response
Lists the virtual circuits in the specified compartment.
6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 |
# File 'lib/oci/core/virtual_network_client.rb', line 6275 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] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[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' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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' # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_virtual_circuits') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::Core::Models::VirtualCircuit>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
93 94 95 |
# File 'lib/oci/core/virtual_network_client.rb', line 93 def logger @api_client.config.logger end |
#update_cpe(cpe_id, update_cpe_details, opts = {}) ⇒ Response
Updates the specified CPE’s display name or tags. Avoid entering confidential information.
6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 |
# File 'lib/oci/core/virtual_network_client.rb', line 6351 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_cpe_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_cpe') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Cpe' ) end # rubocop:enable Metrics/BlockLength end |
#update_cross_connect(cross_connect_id, update_cross_connect_details, opts = {}) ⇒ Response
Updates the specified cross-connect.
6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 |
# File 'lib/oci/core/virtual_network_client.rb', line 6409 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_cross_connect_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_cross_connect') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnect' ) end # rubocop:enable Metrics/BlockLength 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.
6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 |
# File 'lib/oci/core/virtual_network_client.rb', line 6469 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_cross_connect_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_cross_connect_group') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::CrossConnectGroup' ) end # rubocop:enable Metrics/BlockLength 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.
6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 |
# File 'lib/oci/core/virtual_network_client.rb', line 6531 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_dhcp_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_dhcp_options') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DhcpOptions' ) end # rubocop:enable Metrics/BlockLength end |
#update_drg(drg_id, update_drg_details, opts = {}) ⇒ Response
Updates the specified DRG’s display name or tags. Avoid entering confidential information.
6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 |
# File 'lib/oci/core/virtual_network_client.rb', line 6590 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_drg_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Drg' ) end # rubocop:enable Metrics/BlockLength 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.
6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 |
# File 'lib/oci/core/virtual_network_client.rb', line 6650 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body() # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg_attachment') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::DrgAttachment' ) end # rubocop:enable Metrics/BlockLength 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 or tags. 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.
6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 |
# File 'lib/oci/core/virtual_network_client.rb', line 6713 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_internet_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_internet_gateway') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::InternetGateway' ) end # rubocop:enable Metrics/BlockLength end |
#update_ip_sec_connection(ipsc_id, update_ip_sec_connection_details, opts = {}) ⇒ Response
Updates the display name or tags for the specified IPSec connection. Avoid entering confidential information.
6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 |
# File 'lib/oci/core/virtual_network_client.rb', line 6773 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_ip_sec_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_ip_sec_connection') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::IPSecConnection' ) end # rubocop:enable Metrics/BlockLength end |
#update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) ⇒ Response
Updates the specified local peering gateway (LPG).
6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 |
# File 'lib/oci/core/virtual_network_client.rb', line 6832 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_local_peering_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_local_peering_gateway') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::LocalPeeringGateway' ) end # rubocop:enable Metrics/BlockLength 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.
6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 |
# File 'lib/oci/core/virtual_network_client.rb', line 6900 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_private_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_private_ip') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PrivateIp' ) end # rubocop:enable Metrics/BlockLength 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 or tags for a public IP.
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).
6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 |
# File 'lib/oci/core/virtual_network_client.rb', line 6997 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_public_ip_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_public_ip') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::PublicIp' ) end # rubocop:enable Metrics/BlockLength end |
#update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {}) ⇒ Response
Updates the specified remote peering connection (RPC).
7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 |
# File 'lib/oci/core/virtual_network_client.rb', line 7056 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_remote_peering_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_remote_peering_connection') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RemotePeeringConnection' ) end # rubocop:enable Metrics/BlockLength 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.
7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 |
# File 'lib/oci/core/virtual_network_client.rb', line 7118 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_route_table') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::RouteTable' ) end # rubocop:enable Metrics/BlockLength 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.
7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 |
# File 'lib/oci/core/virtual_network_client.rb', line 7181 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_security_list_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_security_list') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::SecurityList' ) end # rubocop:enable Metrics/BlockLength end |
#update_service_gateway(service_gateway_id, update_service_gateway_details, opts = {}) ⇒ Response
Updates the specified service gateway. The information you provide overwrites the existing attributes of the gateway.
7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 |
# File 'lib/oci/core/virtual_network_client.rb', line 7241 def update_service_gateway(service_gateway_id, update_service_gateway_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_service_gateway.' if logger raise "Missing the required parameter 'service_gateway_id' when calling update_service_gateway." if service_gateway_id.nil? raise "Missing the required parameter 'update_service_gateway_details' when calling update_service_gateway." if update_service_gateway_details.nil? raise "Parameter value for 'service_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(service_gateway_id) path = '/serviceGateways/{serviceGatewayId}'.sub('{serviceGatewayId}', service_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_service_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_service_gateway') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::ServiceGateway' ) end # rubocop:enable Metrics/BlockLength end |
#update_subnet(subnet_id, update_subnet_details, opts = {}) ⇒ Response
Updates the specified subnet’s display name. Avoid entering confidential information.
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 |
# File 'lib/oci/core/virtual_network_client.rb', line 7300 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_subnet_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_subnet') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Subnet' ) end # rubocop:enable Metrics/BlockLength end |
#update_vcn(vcn_id, update_vcn_details, opts = {}) ⇒ Response
Updates the specified VCN’s display name. Avoid entering confidential information.
7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 |
# File 'lib/oci/core/virtual_network_client.rb', line 7360 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_vcn_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_vcn') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Vcn' ) end # rubocop:enable Metrics/BlockLength 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.
7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 |
# File 'lib/oci/core/virtual_network_client.rb', line 7442 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_virtual_circuit_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_virtual_circuit') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::VirtualCircuit' ) end # rubocop:enable Metrics/BlockLength end |
#update_vnic(vnic_id, update_vnic_details, opts = {}) ⇒ Response
Updates the specified VNIC.
7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 |
# File 'lib/oci/core/virtual_network_client.rb', line 7501 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) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_vnic_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_vnic') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Core::Models::Vnic' ) end # rubocop:enable Metrics/BlockLength end |