Class: OCI::Core::VirtualNetworkClient
- Inherits:
-
Object
- Object
- OCI::Core::VirtualNetworkClient
- Defined in:
- lib/oci/core/virtual_network_client.rb
Overview
Use the Core Services API to manage resources such as virtual cloud networks (VCNs), compute instances, and block storage volumes. For more information, see the console documentation for the Networking, Compute, and Block Volume services. The required permissions are documented in the Details for the Core Services article.
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
-
#add_drg_route_distribution_statements(drg_route_distribution_id, add_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Adds one or more route distribution statements to the specified route distribution.
-
#add_drg_route_rules(drg_route_table_id, add_drg_route_rules_details, opts = {}) ⇒ Response
Adds one or more static route rules to the specified DRG route table.
-
#add_ipv6_subnet_cidr(subnet_id, add_subnet_ipv6_cidr_details, opts = {}) ⇒ Response
Add an IPv6 prefix to a subnet.
-
#add_ipv6_vcn_cidr(vcn_id, opts = {}) ⇒ Response
Add an IPv6 prefix to a VCN.
-
#add_network_security_group_security_rules(network_security_group_id, add_network_security_group_security_rules_details, opts = {}) ⇒ Response
Adds up to 25 security rules to the specified network security group.
-
#add_public_ip_pool_capacity(public_ip_pool_id, add_public_ip_pool_capacity_details, opts = {}) ⇒ Response
Adds some or all of a CIDR block to a public IP pool.
-
#add_vcn_cidr(vcn_id, add_vcn_cidr_details, opts = {}) ⇒ Response
Adds a CIDR block to a VCN.
-
#advertise_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Begins BGP route advertisements for the BYOIP CIDR block you imported to the Oracle Cloud.
-
#attach_service_id(service_gateway_id, attach_service_details, opts = {}) ⇒ Response
Adds the specified Service to the list of enabled
Service
objects for 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.
-
#change_byoasn_compartment(byoasn_id, change_byoasn_compartment_details, opts = {}) ⇒ Response
Moves a BYOASN Resource to a different compartment.
-
#change_byoip_range_compartment(byoip_range_id, change_byoip_range_compartment_details, opts = {}) ⇒ Response
Moves a BYOIP CIDR block to a different compartment.
-
#change_capture_filter_compartment(capture_filter_id, change_capture_filter_compartment_details, opts = {}) ⇒ Response
Moves a capture filter to a new compartment in the same tenancy.
-
#change_cpe_compartment(cpe_id, change_cpe_compartment_details, opts = {}) ⇒ Response
Moves a CPE object into a different compartment within the same tenancy.
-
#change_cross_connect_compartment(cross_connect_id, change_cross_connect_compartment_details, opts = {}) ⇒ Response
Moves a cross-connect into a different compartment within the same tenancy.
-
#change_cross_connect_group_compartment(cross_connect_group_id, change_cross_connect_group_compartment_details, opts = {}) ⇒ Response
Moves a cross-connect group into a different compartment within the same tenancy.
-
#change_dhcp_options_compartment(dhcp_id, change_dhcp_options_compartment_details, opts = {}) ⇒ Response
Moves a set of DHCP options into a different compartment within the same tenancy.
-
#change_drg_compartment(drg_id, change_drg_compartment_details, opts = {}) ⇒ Response
Moves a DRG into a different compartment within the same tenancy.
-
#change_internet_gateway_compartment(ig_id, change_internet_gateway_compartment_details, opts = {}) ⇒ Response
Moves an internet gateway into a different compartment within the same tenancy.
-
#change_ip_sec_connection_compartment(ipsc_id, change_ip_sec_connection_compartment_details, opts = {}) ⇒ Response
Moves an IPSec connection into a different compartment within the same tenancy.
-
#change_local_peering_gateway_compartment(local_peering_gateway_id, change_local_peering_gateway_compartment_details, opts = {}) ⇒ Response
Moves a local peering gateway into a different compartment within the same tenancy.
-
#change_nat_gateway_compartment(nat_gateway_id, change_nat_gateway_compartment_details, opts = {}) ⇒ Response
Moves a NAT gateway into a different compartment within the same tenancy.
-
#change_network_security_group_compartment(network_security_group_id, change_network_security_group_compartment_details, opts = {}) ⇒ Response
Moves a network security group into a different compartment within the same tenancy.
-
#change_public_ip_compartment(public_ip_id, change_public_ip_compartment_details, opts = {}) ⇒ Response
Moves a public IP into a different compartment within the same tenancy.
-
#change_public_ip_pool_compartment(public_ip_pool_id, change_public_ip_pool_compartment_details, opts = {}) ⇒ Response
Moves a public IP pool to a different compartment.
-
#change_remote_peering_connection_compartment(remote_peering_connection_id, change_remote_peering_connection_compartment_details, opts = {}) ⇒ Response
Moves a remote peering connection (RPC) into a different compartment within the same tenancy.
-
#change_route_table_compartment(rt_id, change_route_table_compartment_details, opts = {}) ⇒ Response
Moves a route table into a different compartment within the same tenancy.
-
#change_security_list_compartment(security_list_id, change_security_list_compartment_details, opts = {}) ⇒ Response
Moves a security list into a different compartment within the same tenancy.
-
#change_service_gateway_compartment(service_gateway_id, change_service_gateway_compartment_details, opts = {}) ⇒ Response
Moves a service gateway into a different compartment within the same tenancy.
-
#change_subnet_compartment(subnet_id, change_subnet_compartment_details, opts = {}) ⇒ Response
Moves a subnet into a different compartment within the same tenancy.
-
#change_vcn_compartment(vcn_id, change_vcn_compartment_details, opts = {}) ⇒ Response
Moves a VCN into a different compartment within the same tenancy.
-
#change_virtual_circuit_compartment(virtual_circuit_id, change_virtual_circuit_compartment_details, opts = {}) ⇒ Response
Moves a virtual circuit into a different compartment within the same tenancy.
-
#change_vlan_compartment(vlan_id, change_vlan_compartment_details, opts = {}) ⇒ Response
Moves a VLAN into a different compartment within the same tenancy.
-
#change_vtap_compartment(vtap_id, change_vtap_compartment_details, opts = {}) ⇒ Response
Moves a VTAP to a new compartment within the same tenancy.
-
#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_byoasn(create_byoasn_details, opts = {}) ⇒ Response
Creates a BYOASN Resource.
-
#create_byoip_range(create_byoip_range_details, opts = {}) ⇒ Response
Creates a subrange of the BYOIP CIDR block.
-
#create_capture_filter(create_capture_filter_details, opts = {}) ⇒ Response
Creates a virtual test access point (VTAP) capture filter in the specified compartment.
-
#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 network resource.
-
#create_drg_route_distribution(create_drg_route_distribution_details, opts = {}) ⇒ Response
Creates a new route distribution for the specified DRG.
-
#create_drg_route_table(create_drg_route_table_details, opts = {}) ⇒ Response
Creates a new DRG route table for the specified DRG.
-
#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_ipv6(create_ipv6_details, opts = {}) ⇒ Response
Creates an IPv6 for the specified VNIC.
-
#create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) ⇒ Response
Creates a new local peering gateway (LPG) for the specified VCN.
-
#create_nat_gateway(create_nat_gateway_details, opts = {}) ⇒ Response
Creates a new NAT gateway for the specified VCN.
-
#create_network_security_group(create_network_security_group_details, opts = {}) ⇒ Response
Creates a new network security group for the specified VCN.
-
#create_private_ip(create_private_ip_details, opts = {}) ⇒ Response
Creates a private IP.
-
#create_public_ip(create_public_ip_details, opts = {}) ⇒ Response
Creates a public IP.
-
#create_public_ip_pool(create_public_ip_pool_details, opts = {}) ⇒ Response
Creates a public IP pool.
-
#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.
-
#create_vlan(create_vlan_details, opts = {}) ⇒ Response
Creates a VLAN in the specified VCN and the specified compartment.
-
#create_vtap(create_vtap_details, opts = {}) ⇒ Response
Creates a virtual test access point (VTAP) in the specified compartment.
-
#delete_byoasn(byoasn_id, opts = {}) ⇒ Response
Deletes the specified
Byoasn
resource. -
#delete_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Deletes the specified
ByoipRange
resource. -
#delete_capture_filter(capture_filter_id, opts = {}) ⇒ Response
Deletes the specified VTAP capture filter.
-
#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 network resource by deleting the corresponding
DrgAttachment
resource. -
#delete_drg_route_distribution(drg_route_distribution_id, opts = {}) ⇒ Response
Deletes the specified route distribution.
-
#delete_drg_route_table(drg_route_table_id, opts = {}) ⇒ Response
Deletes the specified DRG route table.
-
#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_ipv6(ipv6_id, opts = {}) ⇒ Response
Unassigns and deletes the specified IPv6.
-
#delete_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Deletes the specified local peering gateway (LPG).
-
#delete_nat_gateway(nat_gateway_id, opts = {}) ⇒ Response
Deletes the specified NAT gateway.
-
#delete_network_security_group(network_security_group_id, opts = {}) ⇒ Response
Deletes the specified network security group.
-
#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_public_ip_pool(public_ip_pool_id, opts = {}) ⇒ Response
Deletes the specified public IP pool.
-
#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.
-
#delete_vlan(vlan_id, opts = {}) ⇒ Response
Deletes the specified VLAN, but only if there are no VNICs in the VLAN.
-
#delete_vtap(vtap_id, opts = {}) ⇒ Response
Deletes the specified VTAP.
-
#detach_service_id(service_gateway_id, detach_service_details, opts = {}) ⇒ Response
Removes the specified Service from the list of enabled
Service
objects for the specified gateway. -
#get_all_drg_attachments(drg_id, opts = {}) ⇒ Response
Returns a complete list of DRG attachments that belong to a particular DRG.
-
#get_allowed_ike_ip_sec_parameters(opts = {}) ⇒ Response
The parameters allowed for IKE IPSec tunnels.
-
#get_byoasn(byoasn_id, opts = {}) ⇒ Response
Gets the
Byoasn
resource. -
#get_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Gets the
ByoipRange
resource. -
#get_capture_filter(capture_filter_id, opts = {}) ⇒ Response
Gets information about the specified VTAP capture filter.
-
#get_cpe(cpe_id, opts = {}) ⇒ Response
Gets the specified CPE's information.
-
#get_cpe_device_config_content(cpe_id, opts = {}, &block) ⇒ Response
Renders a set of CPE configuration content that can help a network engineer configure the actual CPE device (for example, a hardware router) represented by the specified Cpe object.
-
#get_cpe_device_shape(cpe_device_shape_id, opts = {}) ⇒ Response
Gets the detailed information about the specified CPE device type.
-
#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
DrgAttachment
resource. -
#get_drg_redundancy_status(drg_id, opts = {}) ⇒ Response
Gets the redundancy status for the specified DRG.
-
#get_drg_route_distribution(drg_route_distribution_id, opts = {}) ⇒ Response
Gets the specified route distribution's information.
-
#get_drg_route_table(drg_route_table_id, opts = {}) ⇒ Response
Gets the specified DRG route table's information.
-
#get_fast_connect_provider_service(provider_service_id, opts = {}) ⇒ Response
Gets the specified provider service.
-
#get_fast_connect_provider_service_key(provider_service_id, provider_service_key_name, opts = {}) ⇒ Response
Gets the specified provider service key's information.
-
#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
Deprecated.
-
#get_ip_sec_connection_device_status(ipsc_id, opts = {}) ⇒ Response
Deprecated.
-
#get_ip_sec_connection_tunnel(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Gets the specified tunnel's information.
-
#get_ip_sec_connection_tunnel_error(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Gets the identified error for the specified IPSec tunnel ID.
-
#get_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Gets the specified tunnel's shared secret (pre-shared key).
-
#get_ipsec_cpe_device_config_content(ipsc_id, opts = {}, &block) ⇒ Response
Renders a set of CPE configuration content for the specified IPSec connection (for all the tunnels in the connection).
-
#get_ipv6(ipv6_id, opts = {}) ⇒ Response
Gets the specified IPv6.
-
#get_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Gets the specified local peering gateway's information.
-
#get_nat_gateway(nat_gateway_id, opts = {}) ⇒ Response
Gets the specified NAT gateway's information.
-
#get_network_security_group(network_security_group_id, opts = {}) ⇒ Response
Gets the specified network security group's information.
-
#get_networking_topology(compartment_id, opts = {}) ⇒ Response
Gets a virtual networking topology for the current region.
-
#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, 203.0.113.2).
-
#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_public_ip_pool(public_ip_pool_id, opts = {}) ⇒ Response
Gets the specified
PublicIpPool
object. -
#get_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Get the specified remote peering connection's information.
-
#get_resource_ip_inventory(data_request_id, opts = {}) ⇒ Response
Gets the
IpInventory
resource. -
#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 object.
-
#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_subnet_cidr_utilization(subnet_id, opts = {}) ⇒ Response
Gets the CIDR utilization data of the specified subnet.
-
#get_subnet_ip_inventory(subnet_id, opts = {}) ⇒ Response
Gets the IP Inventory data of the specified subnet.
-
#get_subnet_topology(compartment_id, subnet_id, opts = {}) ⇒ Response
Gets a topology for a given subnet.
-
#get_tunnel_cpe_device_config(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Gets the set of CPE configuration answers for the tunnel, which the customer provided in update_tunnel_cpe_device_config.
-
#get_tunnel_cpe_device_config_content(ipsc_id, tunnel_id, opts = {}, &block) ⇒ Response
Renders a set of CPE configuration content for the specified IPSec tunnel.
-
#get_upgrade_status(drg_id, opts = {}) ⇒ Response
Returns the DRG upgrade status.
-
#get_vcn(vcn_id, opts = {}) ⇒ Response
Gets the specified VCN's information.
-
#get_vcn_dns_resolver_association(vcn_id, opts = {}) ⇒ Response
Get the associated DNS resolver information with a vcn.
-
#get_vcn_overlap(vcn_id, get_vcn_overlap_details, opts = {}) ⇒ Response
Gets the CIDR overlap information of the specified VCN in selected compartments.
-
#get_vcn_topology(compartment_id, vcn_id, opts = {}) ⇒ Response
Gets a virtual network topology for a given VCN.
-
#get_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Gets the specified virtual circuit's information.
-
#get_vlan(vlan_id, opts = {}) ⇒ Response
Gets the specified VLAN's information.
-
#get_vnic(vnic_id, opts = {}) ⇒ Response
Gets the information for the specified virtual network interface card (VNIC).
-
#get_vtap(vtap_id, opts = {}) ⇒ Response
Gets the specified
Vtap
resource. -
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ VirtualNetworkClient
constructor
Creates a new VirtualNetworkClient.
-
#ipv6_vnic_detach(ipv6_id, opts = {}) ⇒ Response
Unassign the specified IPv6 address from Virtual Network Interface Card (VNIC).
-
#list_allowed_peer_regions_for_remote_peering(opts = {}) ⇒ Response
Lists the regions that support remote VCN peering (which is peering across regions).
-
#list_byoasns(compartment_id, opts = {}) ⇒ Response
Lists the
Byoasn
resources in the specified compartment. -
#list_byoip_allocated_ranges(byoip_range_id, opts = {}) ⇒ Response
Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool.
-
#list_byoip_ranges(compartment_id, opts = {}) ⇒ Response
Lists the
ByoipRange
resources in the specified compartment. -
#list_capture_filters(compartment_id, opts = {}) ⇒ Response
Lists the capture filters in the specified compartment.
-
#list_cpe_device_shapes(opts = {}) ⇒ Response
Lists the CPE device types that the Networking service provides CPE configuration content for (example: Cisco ASA).
-
#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_connect_mappings(virtual_circuit_id, opts = {}) ⇒ Response
Lists the Cross Connect mapping Details for the specified virtual circuit.
-
#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, 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
resource for the specified compartment. -
#list_drg_route_distribution_statements(drg_route_distribution_id, opts = {}) ⇒ Response
Lists the statements for the specified route distribution.
-
#list_drg_route_distributions(drg_id, opts = {}) ⇒ Response
Lists the route distributions in the specified DRG.
-
#list_drg_route_rules(drg_route_table_id, opts = {}) ⇒ Response
Lists the route rules in the specified DRG route table.
-
#list_drg_route_tables(drg_id, opts = {}) ⇒ Response
Lists the DRG route tables for the specified DRG.
-
#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, opts = {}) ⇒ Response
Lists the internet gateways in the specified VCN and the specified compartment.
-
#list_ip_inventory(list_ip_inventory_details, opts = {}) ⇒ Response
Lists the IP Inventory information in the selected compartments.
-
#list_ip_sec_connection_tunnel_routes(ipsc_id, tunnel_id, opts = {}) ⇒ Response
The routes advertised to the on-premises network and the routes received from the on-premises network.
-
#list_ip_sec_connection_tunnel_security_associations(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Lists the tunnel security associations information for the specified IPSec tunnel ID.
-
#list_ip_sec_connection_tunnels(ipsc_id, opts = {}) ⇒ Response
Lists the tunnel information for the specified IPSec connection.
-
#list_ip_sec_connections(compartment_id, opts = {}) ⇒ Response
Lists the IPSec connections for the specified compartment.
-
#list_ipv6s(opts = {}) ⇒ Response
Lists the Ipv6 objects based on one of these filters:.
-
#list_local_peering_gateways(compartment_id, opts = {}) ⇒ Response
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
-
#list_nat_gateways(compartment_id, opts = {}) ⇒ Response
Lists the NAT gateways in the specified compartment.
-
#list_network_security_group_security_rules(network_security_group_id, opts = {}) ⇒ Response
Lists the security rules in the specified network security group.
-
#list_network_security_group_vnics(network_security_group_id, opts = {}) ⇒ Response
Lists the VNICs in the specified network security group.
-
#list_network_security_groups(opts = {}) ⇒ Response
Lists either the network security groups in the specified compartment, or those associated with the specified VLAN.
-
#list_private_ips(opts = {}) ⇒ Response
Lists the PrivateIp objects based on one of these filters:.
-
#list_public_ip_pools(compartment_id, opts = {}) ⇒ Response
Lists the public IP pools in the specified compartment.
-
#list_public_ips(scope, compartment_id, opts = {}) ⇒ Response
Lists the 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, opts = {}) ⇒ Response
Lists the route tables in the specified VCN and specified compartment.
-
#list_security_lists(compartment_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 Service objects that you can enable for a service gateway in this region.
-
#list_subnets(compartment_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_associated_tunnels(virtual_circuit_id, opts = {}) ⇒ Response
Gets the specified virtual circuit's associatedTunnelsInfo.
-
#list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {}) ⇒ Response
The 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.
-
#list_vlans(compartment_id, opts = {}) ⇒ Response
Lists the VLANs in the specified VCN and the specified compartment.
-
#list_vtaps(compartment_id, opts = {}) ⇒ Response
Lists the virtual test access points (VTAPs) in the specified compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#modify_vcn_cidr(vcn_id, modify_vcn_cidr_details, opts = {}) ⇒ Response
Updates the specified CIDR block of a VCN.
-
#private_ip_vnic_detach(private_ip_id, opts = {}) ⇒ Response
Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC).
-
#remove_drg_route_distribution_statements(drg_route_distribution_id, remove_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Removes one or more route distribution statements from the specified route distribution's map.
-
#remove_drg_route_rules(drg_route_table_id, remove_drg_route_rules_details, opts = {}) ⇒ Response
Removes one or more route rules from the specified DRG route table.
-
#remove_export_drg_route_distribution(drg_attachment_id, opts = {}) ⇒ Response
Removes the export route distribution from the DRG attachment so no routes are advertised to it.
-
#remove_import_drg_route_distribution(drg_route_table_id, opts = {}) ⇒ Response
Removes the import route distribution from the DRG route table so no routes are imported into it.
-
#remove_ipv6_subnet_cidr(subnet_id, remove_subnet_ipv6_cidr_details, opts = {}) ⇒ Response
Remove an IPv6 prefix from a subnet.
-
#remove_ipv6_vcn_cidr(vcn_id, opts = {}) ⇒ Response
Removing an existing IPv6 prefix from a VCN.
-
#remove_network_security_group_security_rules(network_security_group_id, remove_network_security_group_security_rules_details, opts = {}) ⇒ Response
Removes one or more security rules from the specified network security group.
-
#remove_public_ip_pool_capacity(public_ip_pool_id, remove_public_ip_pool_capacity_details, opts = {}) ⇒ Response
Removes a CIDR block from the referenced public IP pool.
-
#remove_vcn_cidr(vcn_id, remove_vcn_cidr_details, opts = {}) ⇒ Response
Removes a specified CIDR block from a VCN.
-
#set_origin_asn(byoip_range_id, set_origin_asn_details, opts = {}) ⇒ Response
Update BYOIP's origin ASN to byoasn.
-
#set_origin_asn_to_oracle(byoip_range_id, opts = {}) ⇒ Response
Update prefix's origin ASN to OCI.
-
#update_byoasn(byoasn_id, update_byoasn_details, opts = {}) ⇒ Response
Updates the tags or display name associated with the specified BYOASN Resource.
-
#update_byoip_range(byoip_range_id, update_byoip_range_details, opts = {}) ⇒ Response
Updates the tags or display name associated to the specified BYOIP CIDR block.
-
#update_capture_filter(capture_filter_id, update_capture_filter_details, opts = {}) ⇒ Response
Updates the specified VTAP capture filter's display name or tags.
-
#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 and routing information for the specified
DrgAttachment
. -
#update_drg_route_distribution(drg_route_distribution_id, update_drg_route_distribution_details, opts = {}) ⇒ Response
Updates the specified route distribution.
-
#update_drg_route_distribution_statements(drg_route_distribution_id, update_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Updates one or more route distribution statements in the specified route distribution.
-
#update_drg_route_rules(drg_route_table_id, update_drg_route_rules_details, opts = {}) ⇒ Response
Updates one or more route rules in the specified DRG route table.
-
#update_drg_route_table(drg_route_table_id, update_drg_route_table_details, opts = {}) ⇒ Response
Updates the specified DRG route table.
-
#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 specified IPSec connection.
-
#update_ip_sec_connection_tunnel(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_details, opts = {}) ⇒ Response
Updates the specified tunnel.
-
#update_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_shared_secret_details, opts = {}) ⇒ Response
Updates the shared secret (pre-shared key) for the specified tunnel.
-
#update_ipv6(ipv6_id, update_ipv6_details, opts = {}) ⇒ Response
Updates the specified IPv6.
-
#update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) ⇒ Response
Updates the specified local peering gateway (LPG).
-
#update_nat_gateway(nat_gateway_id, update_nat_gateway_details, opts = {}) ⇒ Response
Updates the specified NAT gateway.
-
#update_network_security_group(network_security_group_id, update_network_security_group_details, opts = {}) ⇒ Response
Updates the specified network security group.
-
#update_network_security_group_security_rules(network_security_group_id, update_network_security_group_security_rules_details, opts = {}) ⇒ Response
Updates one or more security rules in the specified network security group.
-
#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_public_ip_pool(public_ip_pool_id, update_public_ip_pool_details, opts = {}) ⇒ Response
Updates the specified public IP pool.
-
#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.
-
#update_tunnel_cpe_device_config(ipsc_id, tunnel_id, update_tunnel_cpe_device_config_details, opts = {}) ⇒ Response
Creates or updates the set of CPE configuration answers for the specified tunnel.
-
#update_vcn(vcn_id, update_vcn_details, opts = {}) ⇒ Response
Updates the specified VCN.
-
#update_virtual_circuit(virtual_circuit_id, update_virtual_circuit_details, opts = {}) ⇒ Response
Updates the specified virtual circuit.
-
#update_vlan(vlan_id, update_vlan_details, opts = {}) ⇒ Response
Updates the specified VLAN.
-
#update_vnic(vnic_id, update_vnic_details, opts = {}) ⇒ Response
Updates the specified VNIC.
-
#update_vtap(vtap_id, update_vtap_details, opts = {}) ⇒ Response
Updates the specified VTAP's display name or tags.
-
#upgrade_drg(drg_id, opts = {}) ⇒ Response
Upgrades the DRG.
-
#validate_byoasn(byoasn_id, opts = {}) ⇒ Response
Submits the BYOASN for validation.
-
#validate_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Submits the BYOIP CIDR block you are importing for validation.
-
#withdraw_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Withdraws BGP route advertisement for the BYOIP CIDR block.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ VirtualNetworkClient
Creates a new VirtualNetworkClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/oci/core/virtual_network_client.rb', line 61 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # 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.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20160918' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "VirtualNetworkClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
21 22 23 |
# File 'lib/oci/core/virtual_network_client.rb', line 21 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
25 26 27 |
# File 'lib/oci/core/virtual_network_client.rb', line 25 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
35 36 37 |
# File 'lib/oci/core/virtual_network_client.rb', line 35 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
31 32 33 |
# File 'lib/oci/core/virtual_network_client.rb', line 31 def retry_config @retry_config end |
Instance Method Details
#add_drg_route_distribution_statements(drg_route_distribution_id, add_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_drg_route_distribution_statements API.
Adds one or more route distribution statements to the specified route distribution.
119 120 121 122 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 119 def add_drg_route_distribution_statements(drg_route_distribution_id, add_drg_route_distribution_statements_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_drg_route_distribution_statements.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling add_drg_route_distribution_statements." if drg_route_distribution_id.nil? raise "Missing the required parameter 'add_drg_route_distribution_statements_details' when calling add_drg_route_distribution_statements." if add_drg_route_distribution_statements_details.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}/actions/addDrgRouteDistributionStatements'.sub('{drgRouteDistributionId}', drg_route_distribution_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(add_drg_route_distribution_statements_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_drg_route_distribution_statements') 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: 'Array<OCI::Core::Models::DrgRouteDistributionStatement>' ) end # rubocop:enable Metrics/BlockLength end |
#add_drg_route_rules(drg_route_table_id, add_drg_route_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_drg_route_rules API.
Adds one or more static route rules to the specified DRG route table.
181 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 218 219 |
# File 'lib/oci/core/virtual_network_client.rb', line 181 def add_drg_route_rules(drg_route_table_id, add_drg_route_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_drg_route_rules.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling add_drg_route_rules." if drg_route_table_id.nil? raise "Missing the required parameter 'add_drg_route_rules_details' when calling add_drg_route_rules." if add_drg_route_rules_details.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}/actions/addDrgRouteRules'.sub('{drgRouteTableId}', drg_route_table_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[:'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(add_drg_route_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_drg_route_rules') 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: 'Array<OCI::Core::Models::DrgRouteRule>' ) end # rubocop:enable Metrics/BlockLength end |
#add_ipv6_subnet_cidr(subnet_id, add_subnet_ipv6_cidr_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_ipv6_subnet_cidr API.
Add an IPv6 prefix to a subnet.
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 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/oci/core/virtual_network_client.rb', line 251 def add_ipv6_subnet_cidr(subnet_id, add_subnet_ipv6_cidr_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_ipv6_subnet_cidr.' if logger raise "Missing the required parameter 'subnet_id' when calling add_ipv6_subnet_cidr." if subnet_id.nil? raise "Missing the required parameter 'add_subnet_ipv6_cidr_details' when calling add_ipv6_subnet_cidr." if add_subnet_ipv6_cidr_details.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util.blank_string?(subnet_id) path = '/subnets/{subnetId}/actions/addIpv6Cidr'.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[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_subnet_ipv6_cidr_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_ipv6_subnet_cidr') 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 |
#add_ipv6_vcn_cidr(vcn_id, opts = {}) ⇒ Response
Click here to see an example of how to use add_ipv6_vcn_cidr API.
Add an IPv6 prefix to a VCN. The VCN size is always /56 and assigned by Oracle. Once added the IPv6 prefix cannot be removed or modified.
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/oci/core/virtual_network_client.rb', line 324 def add_ipv6_vcn_cidr(vcn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_ipv6_vcn_cidr.' if logger raise "Missing the required parameter 'vcn_id' when calling add_ipv6_vcn_cidr." 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}/actions/addIpv6Cidr'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:add_vcn_ipv6_cidr_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_ipv6_vcn_cidr') 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 |
#add_network_security_group_security_rules(network_security_group_id, add_network_security_group_security_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_network_security_group_security_rules API.
Adds up to 25 security rules to the specified network security group. Adding more than 25 rules requires multiple operations.
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/oci/core/virtual_network_client.rb', line 382 def add_network_security_group_security_rules(network_security_group_id, add_network_security_group_security_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_network_security_group_security_rules.' if logger raise "Missing the required parameter 'network_security_group_id' when calling add_network_security_group_security_rules." if network_security_group_id.nil? raise "Missing the required parameter 'add_network_security_group_security_rules_details' when calling add_network_security_group_security_rules." if add_network_security_group_security_rules_details.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/actions/addSecurityRules'.sub('{networkSecurityGroupId}', network_security_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 = @api_client.object_to_http_body(add_network_security_group_security_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_network_security_group_security_rules') 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::AddedNetworkSecurityGroupSecurityRules' ) end # rubocop:enable Metrics/BlockLength end |
#add_public_ip_pool_capacity(public_ip_pool_id, add_public_ip_pool_capacity_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_public_ip_pool_capacity API.
Adds some or all of a CIDR block to a public IP pool.
The CIDR block (or subrange) must not overlap with any other CIDR block already added to this or any other public IP pool.
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 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/oci/core/virtual_network_client.rb', line 449 def add_public_ip_pool_capacity(public_ip_pool_id, add_public_ip_pool_capacity_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_public_ip_pool_capacity.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling add_public_ip_pool_capacity." if public_ip_pool_id.nil? raise "Missing the required parameter 'add_public_ip_pool_capacity_details' when calling add_public_ip_pool_capacity." if add_public_ip_pool_capacity_details.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}/actions/addCapacity'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(add_public_ip_pool_capacity_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_public_ip_pool_capacity') 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::PublicIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#add_vcn_cidr(vcn_id, add_vcn_cidr_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_vcn_cidr API.
Adds a CIDR block to a VCN. The CIDR block you add:
-
Must be valid.
-
Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block.
-
Must not exceed the limit of CIDR blocks allowed per VCN.
Note: Adding a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can take a few minutes. You can use the GetWorkRequest
operation to check the status of the update.
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 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/oci/core/virtual_network_client.rb', line 526 def add_vcn_cidr(vcn_id, add_vcn_cidr_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#add_vcn_cidr.' if logger raise "Missing the required parameter 'vcn_id' when calling add_vcn_cidr." if vcn_id.nil? raise "Missing the required parameter 'add_vcn_cidr_details' when calling add_vcn_cidr." if add_vcn_cidr_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util.blank_string?(vcn_id) path = '/vcns/{vcnId}/actions/addCidr'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_vcn_cidr_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#add_vcn_cidr') 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 |
#advertise_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use advertise_byoip_range API.
Begins BGP route advertisements for the BYOIP CIDR block you imported to the Oracle Cloud. The ByoipRange
resource must be in the PROVISIONED state before the BYOIP CIDR block routes can be advertised with BGP.
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 |
# File 'lib/oci/core/virtual_network_client.rb', line 587 def advertise_byoip_range(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#advertise_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling advertise_byoip_range." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/advertise'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#advertise_byoip_range') 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 |
#attach_service_id(service_gateway_id, attach_service_details, opts = {}) ⇒ Response
Click here to see an example of how to use attach_service_id API.
Adds the specified Service to the list of enabled Service
objects for the specified gateway. You must also set up a route rule with the cidrBlock
of the Service
as the rule's destination and the service gateway as the rule's target. See RouteTable.
Note: The AttachServiceId
operation is an easy way to add an individual Service
to the service gateway. Compare it with update_service_gateway, which replaces the entire existing list of enabled Service
objects with the list that you provide in the Update
call.
654 655 656 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 654 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
Click here to see an example of how to use bulk_add_virtual_circuit_public_prefixes API.
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.
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 |
# File 'lib/oci/core/virtual_network_client.rb', line 714 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
Click here to see an example of how to use bulk_delete_virtual_circuit_public_prefixes API.
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.
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/oci/core/virtual_network_client.rb', line 773 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 |
#change_byoasn_compartment(byoasn_id, change_byoasn_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_byoasn_compartment API.
Moves a BYOASN Resource to a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 |
# File 'lib/oci/core/virtual_network_client.rb', line 843 def change_byoasn_compartment(byoasn_id, change_byoasn_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_byoasn_compartment.' if logger raise "Missing the required parameter 'byoasn_id' when calling change_byoasn_compartment." if byoasn_id.nil? raise "Missing the required parameter 'change_byoasn_compartment_details' when calling change_byoasn_compartment." if change_byoasn_compartment_details.nil? raise "Parameter value for 'byoasn_id' must not be blank" if OCI::Internal::Util.blank_string?(byoasn_id) path = '/byoasns/{byoasnId}/actions/changeCompartment'.sub('{byoasnId}', byoasn_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_byoasn_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_byoasn_compartment') 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 |
#change_byoip_range_compartment(byoip_range_id, change_byoip_range_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_byoip_range_compartment API.
Moves a BYOIP CIDR block to a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 |
# File 'lib/oci/core/virtual_network_client.rb', line 912 def change_byoip_range_compartment(byoip_range_id, change_byoip_range_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_byoip_range_compartment.' if logger raise "Missing the required parameter 'byoip_range_id' when calling change_byoip_range_compartment." if byoip_range_id.nil? raise "Missing the required parameter 'change_byoip_range_compartment_details' when calling change_byoip_range_compartment." if change_byoip_range_compartment_details.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/changeCompartment'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_byoip_range_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_byoip_range_compartment') 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 |
#change_capture_filter_compartment(capture_filter_id, change_capture_filter_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_capture_filter_compartment API.
Moves a capture filter to a new compartment in the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/oci/core/virtual_network_client.rb', line 984 def change_capture_filter_compartment(capture_filter_id, change_capture_filter_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_capture_filter_compartment.' if logger raise "Missing the required parameter 'capture_filter_id' when calling change_capture_filter_compartment." if capture_filter_id.nil? raise "Missing the required parameter 'change_capture_filter_compartment_details' when calling change_capture_filter_compartment." if change_capture_filter_compartment_details.nil? raise "Parameter value for 'capture_filter_id' must not be blank" if OCI::Internal::Util.blank_string?(capture_filter_id) path = '/captureFilters/{captureFilterId}/actions/changeCompartment'.sub('{captureFilterId}', capture_filter_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_capture_filter_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_capture_filter_compartment') 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 |
#change_cpe_compartment(cpe_id, change_cpe_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_cpe_compartment API.
Moves a CPE object into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 |
# File 'lib/oci/core/virtual_network_client.rb', line 1053 def change_cpe_compartment(cpe_id, change_cpe_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_cpe_compartment.' if logger raise "Missing the required parameter 'cpe_id' when calling change_cpe_compartment." if cpe_id.nil? raise "Missing the required parameter 'change_cpe_compartment_details' when calling change_cpe_compartment." if change_cpe_compartment_details.nil? raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util.blank_string?(cpe_id) path = '/cpes/{cpeId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_cpe_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_cpe_compartment') 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 |
#change_cross_connect_compartment(cross_connect_id, change_cross_connect_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_cross_connect_compartment API.
Moves a cross-connect into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/oci/core/virtual_network_client.rb', line 1121 def change_cross_connect_compartment(cross_connect_id, change_cross_connect_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_cross_connect_compartment.' if logger raise "Missing the required parameter 'cross_connect_id' when calling change_cross_connect_compartment." if cross_connect_id.nil? raise "Missing the required parameter 'change_cross_connect_compartment_details' when calling change_cross_connect_compartment." if change_cross_connect_compartment_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}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_cross_connect_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_cross_connect_compartment') 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 |
#change_cross_connect_group_compartment(cross_connect_group_id, change_cross_connect_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_cross_connect_group_compartment API.
Moves a cross-connect group into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'lib/oci/core/virtual_network_client.rb', line 1189 def change_cross_connect_group_compartment(cross_connect_group_id, change_cross_connect_group_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_cross_connect_group_compartment.' if logger raise "Missing the required parameter 'cross_connect_group_id' when calling change_cross_connect_group_compartment." if cross_connect_group_id.nil? raise "Missing the required parameter 'change_cross_connect_group_compartment_details' when calling change_cross_connect_group_compartment." if change_cross_connect_group_compartment_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}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_cross_connect_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_cross_connect_group_compartment') 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 |
#change_dhcp_options_compartment(dhcp_id, change_dhcp_options_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_dhcp_options_compartment API.
Moves a set of DHCP options into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 |
# File 'lib/oci/core/virtual_network_client.rb', line 1257 def (dhcp_id, , opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_dhcp_options_compartment.' if logger raise "Missing the required parameter 'dhcp_id' when calling change_dhcp_options_compartment." if dhcp_id.nil? raise "Missing the required parameter 'change_dhcp_options_compartment_details' when calling change_dhcp_options_compartment." if .nil? raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util.blank_string?(dhcp_id) path = '/dhcps/{dhcpId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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#change_dhcp_options_compartment') 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 |
#change_drg_compartment(drg_id, change_drg_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_drg_compartment API.
Moves a DRG into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'lib/oci/core/virtual_network_client.rb', line 1325 def change_drg_compartment(drg_id, change_drg_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_drg_compartment.' if logger raise "Missing the required parameter 'drg_id' when calling change_drg_compartment." if drg_id.nil? raise "Missing the required parameter 'change_drg_compartment_details' when calling change_drg_compartment." if change_drg_compartment_details.nil? raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_id) path = '/drgs/{drgId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_drg_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_drg_compartment') 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 |
#change_internet_gateway_compartment(ig_id, change_internet_gateway_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_internet_gateway_compartment API.
Moves an internet gateway into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 |
# File 'lib/oci/core/virtual_network_client.rb', line 1393 def change_internet_gateway_compartment(ig_id, change_internet_gateway_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_internet_gateway_compartment.' if logger raise "Missing the required parameter 'ig_id' when calling change_internet_gateway_compartment." if ig_id.nil? raise "Missing the required parameter 'change_internet_gateway_compartment_details' when calling change_internet_gateway_compartment." if change_internet_gateway_compartment_details.nil? raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util.blank_string?(ig_id) path = '/internetGateways/{igId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_internet_gateway_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_internet_gateway_compartment') 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 |
#change_ip_sec_connection_compartment(ipsc_id, change_ip_sec_connection_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_ip_sec_connection_compartment API.
Moves an IPSec connection into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 |
# File 'lib/oci/core/virtual_network_client.rb', line 1461 def change_ip_sec_connection_compartment(ipsc_id, change_ip_sec_connection_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_ip_sec_connection_compartment.' if logger raise "Missing the required parameter 'ipsc_id' when calling change_ip_sec_connection_compartment." if ipsc_id.nil? raise "Missing the required parameter 'change_ip_sec_connection_compartment_details' when calling change_ip_sec_connection_compartment." if change_ip_sec_connection_compartment_details.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) path = '/ipsecConnections/{ipscId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_ip_sec_connection_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_ip_sec_connection_compartment') 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 |
#change_local_peering_gateway_compartment(local_peering_gateway_id, change_local_peering_gateway_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_local_peering_gateway_compartment API.
Moves a local peering gateway into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 |
# File 'lib/oci/core/virtual_network_client.rb', line 1529 def change_local_peering_gateway_compartment(local_peering_gateway_id, change_local_peering_gateway_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_local_peering_gateway_compartment.' if logger raise "Missing the required parameter 'local_peering_gateway_id' when calling change_local_peering_gateway_compartment." if local_peering_gateway_id.nil? raise "Missing the required parameter 'change_local_peering_gateway_compartment_details' when calling change_local_peering_gateway_compartment." if change_local_peering_gateway_compartment_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/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_local_peering_gateway_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_local_peering_gateway_compartment') 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 |
#change_nat_gateway_compartment(nat_gateway_id, change_nat_gateway_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_nat_gateway_compartment API.
Moves a NAT gateway into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1597 1598 1599 1600 1601 1602 1603 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 1597 def change_nat_gateway_compartment(nat_gateway_id, change_nat_gateway_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_nat_gateway_compartment.' if logger raise "Missing the required parameter 'nat_gateway_id' when calling change_nat_gateway_compartment." if nat_gateway_id.nil? raise "Missing the required parameter 'change_nat_gateway_compartment_details' when calling change_nat_gateway_compartment." if change_nat_gateway_compartment_details.nil? raise "Parameter value for 'nat_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(nat_gateway_id) path = '/natGateways/{natGatewayId}/actions/changeCompartment'.sub('{natGatewayId}', nat_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_nat_gateway_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_nat_gateway_compartment') 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 |
#change_network_security_group_compartment(network_security_group_id, change_network_security_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_network_security_group_compartment API.
Moves a network security group into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 |
# File 'lib/oci/core/virtual_network_client.rb', line 1664 def change_network_security_group_compartment(network_security_group_id, change_network_security_group_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_network_security_group_compartment.' if logger raise "Missing the required parameter 'network_security_group_id' when calling change_network_security_group_compartment." if network_security_group_id.nil? raise "Missing the required parameter 'change_network_security_group_compartment_details' when calling change_network_security_group_compartment." if change_network_security_group_compartment_details.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/actions/changeCompartment'.sub('{networkSecurityGroupId}', network_security_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_network_security_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_network_security_group_compartment') 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 |
#change_public_ip_compartment(public_ip_id, change_public_ip_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_public_ip_compartment API.
Moves a public IP into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
This operation applies only to reserved public IPs. Ephemeral public IPs always belong to the same compartment as their VNIC and move accordingly.
1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 |
# File 'lib/oci/core/virtual_network_client.rb', line 1735 def change_public_ip_compartment(public_ip_id, change_public_ip_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_public_ip_compartment.' if logger raise "Missing the required parameter 'public_ip_id' when calling change_public_ip_compartment." if public_ip_id.nil? raise "Missing the required parameter 'change_public_ip_compartment_details' when calling change_public_ip_compartment." if change_public_ip_compartment_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}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_public_ip_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_public_ip_compartment') 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 |
#change_public_ip_pool_compartment(public_ip_pool_id, change_public_ip_pool_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_public_ip_pool_compartment API.
Moves a public IP pool to a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/oci/core/virtual_network_client.rb', line 1803 def change_public_ip_pool_compartment(public_ip_pool_id, change_public_ip_pool_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_public_ip_pool_compartment.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling change_public_ip_pool_compartment." if public_ip_pool_id.nil? raise "Missing the required parameter 'change_public_ip_pool_compartment_details' when calling change_public_ip_pool_compartment." if change_public_ip_pool_compartment_details.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}/actions/changeCompartment'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_public_ip_pool_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_public_ip_pool_compartment') 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 |
#change_remote_peering_connection_compartment(remote_peering_connection_id, change_remote_peering_connection_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_remote_peering_connection_compartment API.
Moves a remote peering connection (RPC) into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 |
# File 'lib/oci/core/virtual_network_client.rb', line 1871 def change_remote_peering_connection_compartment(remote_peering_connection_id, change_remote_peering_connection_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_remote_peering_connection_compartment.' if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling change_remote_peering_connection_compartment." if remote_peering_connection_id.nil? raise "Missing the required parameter 'change_remote_peering_connection_compartment_details' when calling change_remote_peering_connection_compartment." if change_remote_peering_connection_compartment_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/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_remote_peering_connection_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_remote_peering_connection_compartment') 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 |
#change_route_table_compartment(rt_id, change_route_table_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_route_table_compartment API.
Moves a route table into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 |
# File 'lib/oci/core/virtual_network_client.rb', line 1939 def change_route_table_compartment(rt_id, change_route_table_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_route_table_compartment.' if logger raise "Missing the required parameter 'rt_id' when calling change_route_table_compartment." if rt_id.nil? raise "Missing the required parameter 'change_route_table_compartment_details' when calling change_route_table_compartment." if change_route_table_compartment_details.nil? raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util.blank_string?(rt_id) path = '/routeTables/{rtId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_route_table_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_route_table_compartment') 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 |
#change_security_list_compartment(security_list_id, change_security_list_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_security_list_compartment API.
Moves a security list into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 |
# File 'lib/oci/core/virtual_network_client.rb', line 2007 def change_security_list_compartment(security_list_id, change_security_list_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_security_list_compartment.' if logger raise "Missing the required parameter 'security_list_id' when calling change_security_list_compartment." if security_list_id.nil? raise "Missing the required parameter 'change_security_list_compartment_details' when calling change_security_list_compartment." if change_security_list_compartment_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}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_security_list_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_security_list_compartment') 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 |
#change_service_gateway_compartment(service_gateway_id, change_service_gateway_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_service_gateway_compartment API.
Moves a service gateway into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 |
# File 'lib/oci/core/virtual_network_client.rb', line 2075 def change_service_gateway_compartment(service_gateway_id, change_service_gateway_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_service_gateway_compartment.' if logger raise "Missing the required parameter 'service_gateway_id' when calling change_service_gateway_compartment." if service_gateway_id.nil? raise "Missing the required parameter 'change_service_gateway_compartment_details' when calling change_service_gateway_compartment." if change_service_gateway_compartment_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/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_service_gateway_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_service_gateway_compartment') 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 |
#change_subnet_compartment(subnet_id, change_subnet_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_subnet_compartment API.
Moves a subnet into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2143 def change_subnet_compartment(subnet_id, change_subnet_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_subnet_compartment.' if logger raise "Missing the required parameter 'subnet_id' when calling change_subnet_compartment." if subnet_id.nil? raise "Missing the required parameter 'change_subnet_compartment_details' when calling change_subnet_compartment." if change_subnet_compartment_details.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util.blank_string?(subnet_id) path = '/subnets/{subnetId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_subnet_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_subnet_compartment') 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 |
#change_vcn_compartment(vcn_id, change_vcn_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_vcn_compartment API.
Moves a VCN into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2211 2212 2213 2214 2215 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2211 def change_vcn_compartment(vcn_id, change_vcn_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_vcn_compartment.' if logger raise "Missing the required parameter 'vcn_id' when calling change_vcn_compartment." if vcn_id.nil? raise "Missing the required parameter 'change_vcn_compartment_details' when calling change_vcn_compartment." if change_vcn_compartment_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util.blank_string?(vcn_id) path = '/vcns/{vcnId}/actions/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_vcn_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_vcn_compartment') 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 |
#change_virtual_circuit_compartment(virtual_circuit_id, change_virtual_circuit_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_virtual_circuit_compartment API.
Moves a virtual circuit into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2279 2280 2281 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 2279 def change_virtual_circuit_compartment(virtual_circuit_id, change_virtual_circuit_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_virtual_circuit_compartment.' if logger raise "Missing the required parameter 'virtual_circuit_id' when calling change_virtual_circuit_compartment." if virtual_circuit_id.nil? raise "Missing the required parameter 'change_virtual_circuit_compartment_details' when calling change_virtual_circuit_compartment." if change_virtual_circuit_compartment_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/changeCompartment'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_virtual_circuit_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_virtual_circuit_compartment') 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 |
#change_vlan_compartment(vlan_id, change_vlan_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_vlan_compartment API.
Moves a VLAN into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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 2384 2385 2386 2387 2388 2389 2390 |
# File 'lib/oci/core/virtual_network_client.rb', line 2351 def change_vlan_compartment(vlan_id, change_vlan_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_vlan_compartment.' if logger raise "Missing the required parameter 'vlan_id' when calling change_vlan_compartment." if vlan_id.nil? raise "Missing the required parameter 'change_vlan_compartment_details' when calling change_vlan_compartment." if change_vlan_compartment_details.nil? raise "Parameter value for 'vlan_id' must not be blank" if OCI::Internal::Util.blank_string?(vlan_id) path = '/vlans/{vlanId}/actions/changeCompartment'.sub('{vlanId}', vlan_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_vlan_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_vlan_compartment') 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 |
#change_vtap_compartment(vtap_id, change_vtap_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_vtap_compartment API.
Moves a VTAP to a new compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 |
# File 'lib/oci/core/virtual_network_client.rb', line 2424 def change_vtap_compartment(vtap_id, change_vtap_compartment_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#change_vtap_compartment.' if logger raise "Missing the required parameter 'vtap_id' when calling change_vtap_compartment." if vtap_id.nil? raise "Missing the required parameter 'change_vtap_compartment_details' when calling change_vtap_compartment." if change_vtap_compartment_details.nil? raise "Parameter value for 'vtap_id' must not be blank" if OCI::Internal::Util.blank_string?(vtap_id) path = '/vtaps/{vtapId}/actions/changeCompartment'.sub('{vtapId}', vtap_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(change_vtap_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_vtap_compartment') 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
Click here to see an example of how to use connect_local_peering_gateways API.
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.
2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'lib/oci/core/virtual_network_client.rb', line 2490 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
Click here to see an example of how to use connect_remote_peering_connections API.
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.
2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 |
# File 'lib/oci/core/virtual_network_client.rb', line 2554 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_byoasn(create_byoasn_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_byoasn API.
Creates a BYOASN Resource
2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 |
# File 'lib/oci/core/virtual_network_client.rb', line 2617 def create_byoasn(create_byoasn_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_byoasn.' if logger raise "Missing the required parameter 'create_byoasn_details' when calling create_byoasn." if create_byoasn_details.nil? path = '/byoasns' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_byoasn_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_byoasn') 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::Byoasn' ) end # rubocop:enable Metrics/BlockLength end |
#create_byoip_range(create_byoip_range_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_byoip_range API.
Creates a subrange of the BYOIP CIDR block.
2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 |
# File 'lib/oci/core/virtual_network_client.rb', line 2681 def create_byoip_range(create_byoip_range_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_byoip_range.' if logger raise "Missing the required parameter 'create_byoip_range_details' when calling create_byoip_range." if create_byoip_range_details.nil? path = '/byoipRanges' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_byoip_range_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_byoip_range') 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::ByoipRange' ) end # rubocop:enable Metrics/BlockLength end |
#create_capture_filter(create_capture_filter_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_capture_filter API.
Creates a virtual test access point (VTAP) capture filter in the specified compartment.
For the purposes of access control, you must provide the OCID of the compartment that contains the VTAP. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.
You may optionally specify a display name for the VTAP, otherwise a default is provided. It does not have to be unique, and you can change it.
2753 2754 2755 2756 2757 2758 2759 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2753 def create_capture_filter(create_capture_filter_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_capture_filter.' if logger raise "Missing the required parameter 'create_capture_filter_details' when calling create_capture_filter." if create_capture_filter_details.nil? path = '/captureFilters' 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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_capture_filter_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_capture_filter') 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::CaptureFilter' ) end # rubocop:enable Metrics/BlockLength end |
#create_cpe(create_cpe_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_cpe API.
Creates a new virtual customer-premises equipment (CPE) object in the specified compartment. For more information, see Site-to-Site VPN Overview.
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. For information about OCIDs, see Resource Identifiers.
You must provide the public IP address of your on-premises router. See CPE Configuration.
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.
2828 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2828 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
Click here to see an example of how to use create_cross_connect API.
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.
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. For information about OCIDs, see Resource Identifiers.
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.
2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 |
# File 'lib/oci/core/virtual_network_client.rb', line 2906 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
Click here to see an example of how to use create_cross_connect_group API.
Creates a new cross-connect group to use with Oracle Cloud Infrastructure FastConnect. For more information, see FastConnect Overview.
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. For information about OCIDs, see Resource Identifiers.
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.
2980 2981 2982 2983 2984 2985 2986 2987 2988 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 2980 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
Click here to see an example of how to use create_dhcp_options API.
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. For information about OCIDs, see Resource Identifiers.
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.
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 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 |
# File 'lib/oci/core/virtual_network_client.rb', line 3051 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
Click here to see an example of how to use create_drg API.
Creates a new dynamic routing gateway (DRG) in the specified compartment. For more information, see Dynamic Routing Gateways (DRGs).
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. For information about OCIDs, see Resource Identifiers.
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.
3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 |
# File 'lib/oci/core/virtual_network_client.rb', line 3122 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
Click here to see an example of how to use create_drg_attachment API.
Attaches the specified DRG to the specified network resource. A VCN can be attached to only one DRG at a time, but a DRG can be attached to more than one VCN. The response includes a DrgAttachment
object with its own OCID. For more information about DRGs, see Dynamic Routing Gateways (DRGs).
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 currently selected compartment. For more information about compartments and access control, see Overview of the IAM Service.
3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 3192 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_drg_route_distribution(create_drg_route_distribution_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_drg_route_distribution API.
Creates a new route distribution for the specified DRG. Assign the route distribution as an import distribution to a DRG route table using the UpdateDrgRouteTable
or CreateDrgRouteTable
operations. Assign the route distribution as an export distribution to a DRG attachment using the UpdateDrgAttachment
or CreateDrgAttachment
operations.
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 3291 |
# File 'lib/oci/core/virtual_network_client.rb', line 3255 def create_drg_route_distribution(create_drg_route_distribution_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_drg_route_distribution.' if logger raise "Missing the required parameter 'create_drg_route_distribution_details' when calling create_drg_route_distribution." if create_drg_route_distribution_details.nil? path = '/drgRouteDistributions' 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_route_distribution_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_drg_route_distribution') 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::DrgRouteDistribution' ) end # rubocop:enable Metrics/BlockLength end |
#create_drg_route_table(create_drg_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_drg_route_table API.
Creates a new DRG route table for the specified DRG. Assign the DRG route table to a DRG attachment using the UpdateDrgAttachment
or CreateDrgAttachment
operations.
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 3346 3347 3348 3349 3350 3351 3352 |
# File 'lib/oci/core/virtual_network_client.rb', line 3316 def create_drg_route_table(create_drg_route_table_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_drg_route_table.' if logger raise "Missing the required parameter 'create_drg_route_table_details' when calling create_drg_route_table." if create_drg_route_table_details.nil? path = '/drgRouteTables' 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_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_drg_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::DrgRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#create_internet_gateway(create_internet_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_internet_gateway API.
Creates a new internet gateway for the specified VCN. For more information, see Access to the Internet.
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.
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.
3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 |
# File 'lib/oci/core/virtual_network_client.rb', line 3395 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
Click here to see an example of how to use create_ip_sec_connection API.
Creates a new IPSec connection between the specified DRG and CPE. For more information, see Site-to-Site VPN Overview.
If you configure at least one tunnel to use static routing, then in the request you must provide at least one valid static route (you're allowed a maximum of 10). For example: 10.0.0.0/16. If you configure both tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. For more information, see the important note in IPSecConnection.
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.
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. For tunnel status and the required configuration information, see:
-
IPSecConnectionTunnel
-
IPSecConnectionTunnelSharedSecret
For each tunnel, you need the IP address of Oracle's VPN headend and the shared secret (that is, the pre-shared key). For more information, see CPE Configuration.
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 3510 3511 3512 3513 3514 3515 3516 3517 3518 |
# File 'lib/oci/core/virtual_network_client.rb', line 3482 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_ipv6(create_ipv6_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_ipv6 API.
Creates an IPv6 for the specified VNIC.
3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 |
# File 'lib/oci/core/virtual_network_client.rb', line 3545 def create_ipv6(create_ipv6_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_ipv6.' if logger raise "Missing the required parameter 'create_ipv6_details' when calling create_ipv6." if create_ipv6_details.nil? path = '/ipv6' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_ipv6_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_ipv6') 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::Ipv6' ) end # rubocop:enable Metrics/BlockLength end |
#create_local_peering_gateway(create_local_peering_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_local_peering_gateway API.
Creates a new local peering gateway (LPG) for the specified VCN.
3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 |
# File 'lib/oci/core/virtual_network_client.rb', line 3606 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_nat_gateway(create_nat_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_nat_gateway API.
Creates a new NAT gateway for the specified VCN. You must also set up a route rule with the NAT gateway as the rule's target. See RouteTable.
3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 |
# File 'lib/oci/core/virtual_network_client.rb', line 3667 def create_nat_gateway(create_nat_gateway_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_nat_gateway.' if logger raise "Missing the required parameter 'create_nat_gateway_details' when calling create_nat_gateway." if create_nat_gateway_details.nil? path = '/natGateways' 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_nat_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_nat_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::NatGateway' ) end # rubocop:enable Metrics/BlockLength end |
#create_network_security_group(create_network_security_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_network_security_group API.
Creates a new network security group for the specified VCN.
3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 |
# File 'lib/oci/core/virtual_network_client.rb', line 3727 def create_network_security_group(create_network_security_group_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_network_security_group.' if logger raise "Missing the required parameter 'create_network_security_group_details' when calling create_network_security_group." if create_network_security_group_details.nil? path = '/networkSecurityGroups' 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_network_security_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_network_security_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::NetworkSecurityGroup' ) end # rubocop:enable Metrics/BlockLength end |
#create_private_ip(create_private_ip_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_private_ip API.
Creates a private IP. For more information about private IPs, see IP Addresses.
3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 |
# File 'lib/oci/core/virtual_network_client.rb', line 3789 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
Click here to see an example of how to use create_public_ip API.
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.
-
For an ephemeral public IP assigned to a private 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. Exception: If you create a NatGateway, Oracle automatically assigns the NAT gateway a regional ephemeral public IP that you cannot remove. -
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.
3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 |
# File 'lib/oci/core/virtual_network_client.rb', line 3869 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_public_ip_pool(create_public_ip_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_public_ip_pool API.
Creates a public IP pool.
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 3965 3966 3967 3968 3969 |
# File 'lib/oci/core/virtual_network_client.rb', line 3932 def create_public_ip_pool(create_public_ip_pool_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_public_ip_pool.' if logger raise "Missing the required parameter 'create_public_ip_pool_details' when calling create_public_ip_pool." if create_public_ip_pool_details.nil? path = '/publicIpPools' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_public_ip_pool') 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::PublicIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#create_remote_peering_connection(create_remote_peering_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_remote_peering_connection API.
Creates a new remote peering connection (RPC) for the specified DRG.
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 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 |
# File 'lib/oci/core/virtual_network_client.rb', line 3993 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
Click here to see an example of how to use create_route_table API.
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. For general information about route tables in your VCN and the types of targets you can use in route rules, see Route Tables.
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. For information about OCIDs, see Resource Identifiers.
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.
4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 |
# File 'lib/oci/core/virtual_network_client.rb', line 4067 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
Click here to see an example of how to use create_security_list API.
Creates a new security list for the specified VCN. For more information about security lists, see Security Lists. For information on the number of rules you can have in a security list, see Service Limits.
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. For information about OCIDs, see Resource Identifiers.
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.
4140 4141 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 4140 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
Click here to see an example of how to use create_service_gateway API.
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. For information about OCIDs, see Resource Identifiers.
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.
Use the list_services operation to find service CIDR labels available in the region.
4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 |
# File 'lib/oci/core/virtual_network_client.rb', line 4211 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
Click here to see an example of how to use create_subnet API.
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. For information on the number of subnets you can have in a VCN, see Service Limits.
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. For information about OCIDs, see Resource Identifiers.
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.
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.
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.
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.
4301 4302 4303 4304 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 4301 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
Click here to see an example of how to use create_vcn API.
Creates a new virtual cloud network (VCN). For more information, see VCNs and Subnets.
For the VCN, you specify a list of one or more IPv4 CIDR blocks that meet the following criteria:
-
The CIDR blocks must be valid.
-
They must not overlap with each other or with the on-premises network CIDR block.
-
The number of CIDR blocks does not exceed the limit of CIDR blocks allowed per VCN.
For a CIDR block, Oracle recommends that you use one of the private IP address ranges specified in RFC 1918 (10.0.0.0/8, 172.16/12, and 192.168/16). Example: 172.16.0.0/16. The CIDR blocks can range from /16 to /30.
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. For information about OCIDs, see Resource Identifiers.
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.
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 a Site-to-Site VPN or FastConnect. For more information, see Overview of the Networking Service.
4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 |
# File 'lib/oci/core/virtual_network_client.rb', line 4393 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
Click here to see an example of how to use create_virtual_circuit API.
Creates a new virtual circuit to use with Oracle Cloud Infrastructure FastConnect. For more information, see FastConnect Overview.
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. For information about OCIDs, see Resource Identifiers.
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.
4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 |
# File 'lib/oci/core/virtual_network_client.rb', line 4473 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 |
#create_vlan(create_vlan_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_vlan API.
Creates a VLAN in the specified VCN and the specified compartment.
4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 |
# File 'lib/oci/core/virtual_network_client.rb', line 4536 def create_vlan(create_vlan_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_vlan.' if logger raise "Missing the required parameter 'create_vlan_details' when calling create_vlan." if create_vlan_details.nil? path = '/vlans' 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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_vlan_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_vlan') 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::Vlan' ) end # rubocop:enable Metrics/BlockLength end |
#create_vtap(create_vtap_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_vtap API.
Creates a virtual test access point (VTAP) in the specified compartment.
For the purposes of access control, you must provide the OCID of the compartment that contains the VTAP. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.
You may optionally specify a display name for the VTAP, otherwise a default is provided. It does not have to be unique, and you can change it.
4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 |
# File 'lib/oci/core/virtual_network_client.rb', line 4608 def create_vtap(create_vtap_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#create_vtap.' if logger raise "Missing the required parameter 'create_vtap_details' when calling create_vtap." if create_vtap_details.nil? path = '/vtaps' 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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_vtap_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#create_vtap') 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::Vtap' ) end # rubocop:enable Metrics/BlockLength end |
#delete_byoasn(byoasn_id, opts = {}) ⇒ Response
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 4706 4707 4708 4709 |
# File 'lib/oci/core/virtual_network_client.rb', line 4673 def delete_byoasn(byoasn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_byoasn.' if logger raise "Missing the required parameter 'byoasn_id' when calling delete_byoasn." if byoasn_id.nil? raise "Parameter value for 'byoasn_id' must not be blank" if OCI::Internal::Util.blank_string?(byoasn_id) path = '/byoasns/{byoasnId}'.sub('{byoasnId}', byoasn_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_byoasn') 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_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_byoip_range API.
Deletes the specified ByoipRange
resource. The resource must be in one of the following states: CREATING, PROVISIONED, ACTIVE, or FAILED. It must not have any subranges currently allocated to a PublicIpPool object or the deletion will fail. You must specify the OCID. If the ByoipRange
resource is currently in the PROVISIONED or ACTIVE state, it will be de-provisioned and then deleted.
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 4768 4769 4770 4771 4772 4773 4774 |
# File 'lib/oci/core/virtual_network_client.rb', line 4738 def delete_byoip_range(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling delete_byoip_range." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_byoip_range') 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_capture_filter(capture_filter_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_capture_filter API.
Deletes the specified VTAP capture filter. This is an asynchronous operation. The VTAP capture filter's lifecycleState
will change to TERMINATING temporarily until the VTAP capture filter is completely removed.
4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 |
# File 'lib/oci/core/virtual_network_client.rb', line 4800 def delete_capture_filter(capture_filter_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_capture_filter.' if logger raise "Missing the required parameter 'capture_filter_id' when calling delete_capture_filter." if capture_filter_id.nil? raise "Parameter value for 'capture_filter_id' must not be blank" if OCI::Internal::Util.blank_string?(capture_filter_id) path = '/captureFilters/{captureFilterId}'.sub('{captureFilterId}', capture_filter_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_capture_filter') 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_cpe(cpe_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_cpe API.
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.
4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 |
# File 'lib/oci/core/virtual_network_client.rb', line 4860 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
Click here to see an example of how to use delete_cross_connect API.
Deletes the specified cross-connect. It must not be mapped to a VirtualCircuit.
4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 |
# File 'lib/oci/core/virtual_network_client.rb', line 4918 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
Click here to see an example of how to use delete_cross_connect_group API.
Deletes the specified cross-connect group. It must not contain any cross-connects, and it cannot be mapped to a VirtualCircuit.
4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 |
# File 'lib/oci/core/virtual_network_client.rb', line 4977 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
Click here to see an example of how to use delete_dhcp_options API.
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.
5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 |
# File 'lib/oci/core/virtual_network_client.rb', line 5038 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
Click here to see an example of how to use delete_drg API.
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.
5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 |
# File 'lib/oci/core/virtual_network_client.rb', line 5098 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
Click here to see an example of how to use delete_drg_attachment API.
Detaches a DRG from a network resource by deleting the corresponding DrgAttachment
resource. This is an asynchronous operation. The attachment's lifecycleState
will temporarily change to DETACHING until the attachment is completely removed.
5157 5158 5159 5160 5161 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 5157 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_drg_route_distribution(drg_route_distribution_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_drg_route_distribution API.
Deletes the specified route distribution. You can't delete a route distribution currently in use by a DRG attachment or DRG route table.
Remove the DRG route distribution from a DRG attachment or DRG route table by using the "RemoveExportDrgRouteDistribution" or "RemoveImportDrgRouteDistribution' operations.
5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 |
# File 'lib/oci/core/virtual_network_client.rb', line 5216 def delete_drg_route_distribution(drg_route_distribution_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_drg_route_distribution.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling delete_drg_route_distribution." if drg_route_distribution_id.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}'.sub('{drgRouteDistributionId}', drg_route_distribution_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_route_distribution') 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_route_table(drg_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_drg_route_table API.
Deletes the specified DRG route table. There must not be any DRG attachments assigned.
5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 |
# File 'lib/oci/core/virtual_network_client.rb', line 5273 def delete_drg_route_table(drg_route_table_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_drg_route_table.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling delete_drg_route_table." if drg_route_table_id.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}'.sub('{drgRouteTableId}', drg_route_table_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_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_internet_gateway(ig_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_internet_gateway API.
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.
5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 |
# File 'lib/oci/core/virtual_network_client.rb', line 5334 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
Click here to see an example of how to use delete_ip_sec_connection API.
Deletes the specified IPSec connection. If your goal is to disable the Site-to-Site VPN between your VCN and on-premises network, it's easiest to simply detach the DRG but keep all the Site-to-Site VPN components intact. If you were to delete all the components and then later need to create an Site-to-Site 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.
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 5425 5426 5427 5428 5429 5430 5431 5432 5433 |
# File 'lib/oci/core/virtual_network_client.rb', line 5398 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_ipv6(ipv6_id, opts = {}) ⇒ Response
5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 5459 def delete_ipv6(ipv6_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_ipv6.' if logger raise "Missing the required parameter 'ipv6_id' when calling delete_ipv6." if ipv6_id.nil? raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id) path = '/ipv6/{ipv6Id}'.sub('{ipv6Id}', ipv6_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_ipv6') 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
Click here to see an example of how to use delete_local_peering_gateway API.
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.
5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 |
# File 'lib/oci/core/virtual_network_client.rb', line 5520 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_nat_gateway(nat_gateway_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_nat_gateway API.
Deletes the specified NAT gateway. The NAT gateway does not have to be disabled, but there must not be a route rule that lists the NAT gateway as a target.
This is an asynchronous operation. The NAT gateway's lifecycleState
will change to TERMINATING temporarily until the NAT gateway is completely removed.
5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 |
# File 'lib/oci/core/virtual_network_client.rb', line 5581 def delete_nat_gateway(nat_gateway_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_nat_gateway.' if logger raise "Missing the required parameter 'nat_gateway_id' when calling delete_nat_gateway." if nat_gateway_id.nil? raise "Parameter value for 'nat_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(nat_gateway_id) path = '/natGateways/{natGatewayId}'.sub('{natGatewayId}', nat_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_nat_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_network_security_group(network_security_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_network_security_group API.
Deletes the specified network security group. The group must not contain any VNICs.
To get a list of the VNICs in a network security group, use #list_network_security_group_vnics list_network_security_group_vnics}. Each returned NetworkSecurityGroupVnic object contains both the {OCID of the VNIC and the OCID of the VNIC's parent resource (for example, the Compute instance that the VNIC is attached to).
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 5675 5676 5677 5678 5679 |
# File 'lib/oci/core/virtual_network_client.rb', line 5644 def delete_network_security_group(network_security_group_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_network_security_group.' if logger raise "Missing the required parameter 'network_security_group_id' when calling delete_network_security_group." if network_security_group_id.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}'.sub('{networkSecurityGroupId}', network_security_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_network_security_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_private_ip(private_ip_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_private_ip API.
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, unassigning it from the VNIC causes that route rule to blackhole and the traffic will be dropped.
5711 5712 5713 5714 5715 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 5711 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
Click here to see an example of how to use delete_public_ip API.
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.
Note: You cannot update, unassign, or delete the public IP that Oracle automatically assigned to an entity for you (such as a load balancer or NAT gateway). The public IP is automatically deleted if the assigned entity is terminated.
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.
5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 |
# File 'lib/oci/core/virtual_network_client.rb', line 5782 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_public_ip_pool(public_ip_pool_id, opts = {}) ⇒ Response
5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 |
# File 'lib/oci/core/virtual_network_client.rb', line 5844 def delete_public_ip_pool(public_ip_pool_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_public_ip_pool.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling delete_public_ip_pool." if public_ip_pool_id.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_pool') 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
Click here to see an example of how to use delete_remote_peering_connection API.
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.
5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 |
# File 'lib/oci/core/virtual_network_client.rb', line 5905 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
Click here to see an example of how to use delete_route_table API.
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.
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 |
# File 'lib/oci/core/virtual_network_client.rb', line 5966 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
Click here to see an example of how to use delete_security_list API.
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.
6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 |
# File 'lib/oci/core/virtual_network_client.rb', line 6027 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
Click here to see an example of how to use delete_service_gateway API.
Deletes the specified service gateway. There must not be a route table that lists the service gateway as a target.
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 6114 6115 6116 6117 6118 6119 6120 |
# File 'lib/oci/core/virtual_network_client.rb', line 6085 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
Click here to see an example of how to use delete_subnet API.
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.
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 6174 6175 6176 6177 6178 6179 |
# File 'lib/oci/core/virtual_network_client.rb', line 6144 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
Click here to see an example of how to use delete_vcn API.
Deletes the specified VCN. The VCN must be completely empty and have no attached gateways. This is an asynchronous operation.
A deleted VCN's lifecycleState
changes to TERMINATING and then TERMINATED temporarily until the VCN is completely removed. A completely removed VCN does not appear in the results of a ListVcns
operation and can't be used in a GetVcn
operation.
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 6235 6236 6237 6238 6239 6240 6241 |
# File 'lib/oci/core/virtual_network_client.rb', line 6206 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
Click here to see an example of how to use delete_virtual_circuit API.
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.
6267 6268 6269 6270 6271 6272 6273 6274 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 6267 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 |
#delete_vlan(vlan_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_vlan API.
Deletes the specified VLAN, but only if there are no VNICs in the VLAN.
6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 |
# File 'lib/oci/core/virtual_network_client.rb', line 6327 def delete_vlan(vlan_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_vlan.' if logger raise "Missing the required parameter 'vlan_id' when calling delete_vlan." if vlan_id.nil? raise "Parameter value for 'vlan_id' must not be blank" if OCI::Internal::Util.blank_string?(vlan_id) path = '/vlans/{vlanId}'.sub('{vlanId}', vlan_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_vlan') 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_vtap(vtap_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_vtap API.
Deletes the specified VTAP. This is an asynchronous operation. The VTAP's lifecycleState
will change to TERMINATING temporarily until the VTAP is completely removed.
6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 |
# File 'lib/oci/core/virtual_network_client.rb', line 6389 def delete_vtap(vtap_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#delete_vtap.' if logger raise "Missing the required parameter 'vtap_id' when calling delete_vtap." if vtap_id.nil? raise "Parameter value for 'vtap_id' must not be blank" if OCI::Internal::Util.blank_string?(vtap_id) path = '/vtaps/{vtapId}'.sub('{vtapId}', vtap_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#delete_vtap') 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
Click here to see an example of how to use detach_service_id API.
Removes the specified Service from the list of enabled Service
objects for the specified gateway. You do not need to remove any route rules that specify this Service
object'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 remove an individual Service
from the service gateway. Compare it with update_service_gateway, which replaces the entire existing list of enabled Service
objects with the list that you provide in the Update
call. UpdateServiceGateway
also lets you block all traffic through the service gateway without having to remove each of the individual Service
objects.
6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 6459 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_all_drg_attachments(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_all_drg_attachments API.
Returns a complete list of DRG attachments that belong to a particular DRG.
6530 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 6569 6570 6571 6572 6573 6574 |
# File 'lib/oci/core/virtual_network_client.rb', line 6530 def (drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_all_drg_attachments.' if logger raise "Missing the required parameter 'drg_id' when calling get_all_drg_attachments." if drg_id.nil? if opts[:attachment_type] && !%w[VCN VIRTUAL_CIRCUIT REMOTE_PEERING_CONNECTION IPSEC_TUNNEL ALL].include?(opts[:attachment_type]) raise 'Invalid value for "attachment_type", must be one of VCN, VIRTUAL_CIRCUIT, REMOTE_PEERING_CONNECTION, IPSEC_TUNNEL, ALL.' end raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_id) path = '/drgs/{drgId}/actions/getAllDrgAttachments'.sub('{drgId}', drg_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] query_params[:attachmentType] = opts[:attachment_type] if opts[:attachment_type] query_params[:isCrossTenancy] = opts[:is_cross_tenancy] if !opts[:is_cross_tenancy].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_all_drg_attachments') 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: 'Array<OCI::Core::Models::DrgAttachmentInfo>' ) end # rubocop:enable Metrics/BlockLength end |
#get_allowed_ike_ip_sec_parameters(opts = {}) ⇒ Response
Click here to see an example of how to use get_allowed_ike_ip_sec_parameters API.
The parameters allowed for IKE IPSec tunnels.
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 6628 |
# File 'lib/oci/core/virtual_network_client.rb', line 6594 def get_allowed_ike_ip_sec_parameters(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_allowed_ike_ip_sec_parameters.' if logger path = '/ipsecAlgorithms' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_allowed_ike_ip_sec_parameters') 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::AllowedIkeIPSecParameters' ) end # rubocop:enable Metrics/BlockLength end |
#get_byoasn(byoasn_id, opts = {}) ⇒ Response
6649 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 6649 def get_byoasn(byoasn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_byoasn.' if logger raise "Missing the required parameter 'byoasn_id' when calling get_byoasn." if byoasn_id.nil? raise "Parameter value for 'byoasn_id' must not be blank" if OCI::Internal::Util.blank_string?(byoasn_id) path = '/byoasns/{byoasnId}'.sub('{byoasnId}', byoasn_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_byoasn') 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::Byoasn' ) end # rubocop:enable Metrics/BlockLength end |
#get_byoip_range(byoip_range_id, opts = {}) ⇒ Response
6706 6707 6708 6709 6710 6711 6712 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 6706 def get_byoip_range(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling get_byoip_range." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_byoip_range') 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::ByoipRange' ) end # rubocop:enable Metrics/BlockLength end |
#get_capture_filter(capture_filter_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_capture_filter API.
Gets information about the specified VTAP capture filter.
6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 6762 def get_capture_filter(capture_filter_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_capture_filter.' if logger raise "Missing the required parameter 'capture_filter_id' when calling get_capture_filter." if capture_filter_id.nil? raise "Parameter value for 'capture_filter_id' must not be blank" if OCI::Internal::Util.blank_string?(capture_filter_id) path = '/captureFilters/{captureFilterId}'.sub('{captureFilterId}', capture_filter_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_capture_filter') 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::CaptureFilter' ) end # rubocop:enable Metrics/BlockLength end |
#get_cpe(cpe_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_cpe API.
Gets the specified CPE's information.
6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 |
# File 'lib/oci/core/virtual_network_client.rb', line 6816 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_cpe_device_config_content(cpe_id, opts = {}, &block) ⇒ Response
Click here to see an example of how to use get_cpe_device_config_content API.
Renders a set of CPE configuration content that can help a network engineer configure the actual CPE device (for example, a hardware router) represented by the specified Cpe object.
The rendered content is specific to the type of CPE device (for example, Cisco ASA). Therefore the Cpe must have the CPE's device type specified by the cpeDeviceShapeId
attribute. The content optionally includes answers that the customer provides (see update_tunnel_cpe_device_config), merged with a template of other information specific to the CPE device type.
The operation returns configuration information for all of the IPSecConnection objects that use the specified CPE. Here are similar operations:
-
get_ipsec_cpe_device_config_content returns CPE configuration content for all IPSec tunnels in a single IPSec connection.
-
get_tunnel_cpe_device_config_content returns CPE configuration content for a specific IPSec tunnel in an IPSec connection.
6892 6893 6894 6895 6896 6897 6898 6899 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 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 |
# File 'lib/oci/core/virtual_network_client.rb', line 6892 def get_cpe_device_config_content(cpe_id, opts = {}, &block) logger.debug 'Calling operation VirtualNetworkClient#get_cpe_device_config_content.' if logger raise "Missing the required parameter 'cpe_id' when calling get_cpe_device_config_content." 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}/cpeConfigContent'.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] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'text/plain; charset=utf-8' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cpe_device_config_content') do if !block.nil? @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: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @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: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @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: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @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: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#get_cpe_device_shape(cpe_device_shape_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_cpe_device_shape API.
Gets the detailed information about the specified CPE device type. This might include a set of questions that are specific to the particular CPE device type. The customer must supply answers to those questions (see update_tunnel_cpe_device_config). The service merges the answers with a template of other information for the CPE device type. The following operations return the merged content:
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 7035 7036 7037 |
# File 'lib/oci/core/virtual_network_client.rb', line 7001 def get_cpe_device_shape(cpe_device_shape_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_cpe_device_shape.' if logger raise "Missing the required parameter 'cpe_device_shape_id' when calling get_cpe_device_shape." if cpe_device_shape_id.nil? raise "Parameter value for 'cpe_device_shape_id' must not be blank" if OCI::Internal::Util.blank_string?(cpe_device_shape_id) path = '/cpeDeviceShapes/{cpeDeviceShapeId}'.sub('{cpeDeviceShapeId}', cpe_device_shape_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_cpe_device_shape') 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::CpeDeviceShapeDetail' ) end # rubocop:enable Metrics/BlockLength end |
#get_cross_connect(cross_connect_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_cross_connect API.
Gets the specified cross-connect's information.
7055 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 7055 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
Click here to see an example of how to use get_cross_connect_group API.
Gets the specified cross-connect group's information.
7109 7110 7111 7112 7113 7114 7115 7116 7117 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 7109 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
Click here to see an example of how to use get_cross_connect_letter_of_authority API.
Gets the Letter of Authority for the specified cross-connect.
7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 |
# File 'lib/oci/core/virtual_network_client.rb', line 7163 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
Click here to see an example of how to use get_cross_connect_status API.
Gets the status of the specified cross-connect.
7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 |
# File 'lib/oci/core/virtual_network_client.rb', line 7218 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
Click here to see an example of how to use get_dhcp_options API.
Gets the specified set of DHCP options.
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 |
# File 'lib/oci/core/virtual_network_client.rb', line 7272 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
Click here to see an example of how to use get_drg API.
Gets the specified DRG's information.
7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 |
# File 'lib/oci/core/virtual_network_client.rb', line 7326 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
Click here to see an example of how to use get_drg_attachment API.
Gets the DrgAttachment
resource.
7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 |
# File 'lib/oci/core/virtual_network_client.rb', line 7380 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_drg_redundancy_status(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_drg_redundancy_status API.
Gets the redundancy status for the specified DRG. For more information, see Redundancy Remedies.
7438 7439 7440 7441 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 7438 def get_drg_redundancy_status(drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_drg_redundancy_status.' if logger raise "Missing the required parameter 'drg_id' when calling get_drg_redundancy_status." 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}/redundancyStatus'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_drg_redundancy_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::DrgRedundancyStatus' ) end # rubocop:enable Metrics/BlockLength end |
#get_drg_route_distribution(drg_route_distribution_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_drg_route_distribution API.
Gets the specified route distribution's information.
7492 7493 7494 7495 7496 7497 7498 7499 7500 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 |
# File 'lib/oci/core/virtual_network_client.rb', line 7492 def get_drg_route_distribution(drg_route_distribution_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_drg_route_distribution.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling get_drg_route_distribution." if drg_route_distribution_id.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}'.sub('{drgRouteDistributionId}', drg_route_distribution_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_route_distribution') 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::DrgRouteDistribution' ) end # rubocop:enable Metrics/BlockLength end |
#get_drg_route_table(drg_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_drg_route_table API.
Gets the specified DRG route table's information.
7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 |
# File 'lib/oci/core/virtual_network_client.rb', line 7546 def get_drg_route_table(drg_route_table_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_drg_route_table.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling get_drg_route_table." if drg_route_table_id.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}'.sub('{drgRouteTableId}', drg_route_table_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_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::DrgRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#get_fast_connect_provider_service(provider_service_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_fast_connect_provider_service API.
Gets the specified provider service. For more information, see FastConnect Overview.
7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 |
# File 'lib/oci/core/virtual_network_client.rb', line 7602 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_fast_connect_provider_service_key(provider_service_id, provider_service_key_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_fast_connect_provider_service_key API.
Gets the specified provider service key's information. Use this operation to validate a provider service key. An invalid key returns a 404 error.
7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 |
# File 'lib/oci/core/virtual_network_client.rb', line 7663 def get_fast_connect_provider_service_key(provider_service_id, provider_service_key_name, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_fast_connect_provider_service_key.' if logger raise "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service_key." if provider_service_id.nil? raise "Missing the required parameter 'provider_service_key_name' when calling get_fast_connect_provider_service_key." if provider_service_key_name.nil? raise "Parameter value for 'provider_service_id' must not be blank" if OCI::Internal::Util.blank_string?(provider_service_id) raise "Parameter value for 'provider_service_key_name' must not be blank" if OCI::Internal::Util.blank_string?(provider_service_key_name) path = '/fastConnectProviderServices/{providerServiceId}/providerServiceKeys/{providerServiceKeyName}'.sub('{providerServiceId}', provider_service_id.to_s).sub('{providerServiceKeyName}', provider_service_key_name.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_key') 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::FastConnectProviderServiceKey' ) end # rubocop:enable Metrics/BlockLength end |
#get_internet_gateway(ig_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_internet_gateway API.
Gets the specified internet gateway's information.
7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 |
# File 'lib/oci/core/virtual_network_client.rb', line 7719 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
Click here to see an example of how to use get_ip_sec_connection API.
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_tunnel.
7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 |
# File 'lib/oci/core/virtual_network_client.rb', line 7776 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
Click here to see an example of how to use get_ip_sec_connection_device_config API.
Deprecated. To get tunnel information, instead use:
7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 |
# File 'lib/oci/core/virtual_network_client.rb', line 7834 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
Click here to see an example of how to use get_ip_sec_connection_device_status API.
Deprecated. To get the tunnel status, instead use get_ip_sec_connection_tunnel.
7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 |
# File 'lib/oci/core/virtual_network_client.rb', line 7890 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_ip_sec_connection_tunnel(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ip_sec_connection_tunnel API.
Gets the specified tunnel's information. The resulting object does not include the tunnel's shared secret (pre-shared key). To retrieve that, use get_ip_sec_connection_tunnel_shared_secret.
7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 |
# File 'lib/oci/core/virtual_network_client.rb', line 7948 def get_ip_sec_connection_tunnel(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_ip_sec_connection_tunnel.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_tunnel." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling get_ip_sec_connection_tunnel." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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_tunnel') 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::IPSecConnectionTunnel' ) end # rubocop:enable Metrics/BlockLength end |
#get_ip_sec_connection_tunnel_error(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ip_sec_connection_tunnel_error API.
Gets the identified error for the specified IPSec tunnel ID.
8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 |
# File 'lib/oci/core/virtual_network_client.rb', line 8006 def get_ip_sec_connection_tunnel_error(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_ip_sec_connection_tunnel_error.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_tunnel_error." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling get_ip_sec_connection_tunnel_error." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/error'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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_tunnel_error') 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::IPSecConnectionTunnelErrorDetails' ) end # rubocop:enable Metrics/BlockLength end |
#get_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ip_sec_connection_tunnel_shared_secret API.
Gets the specified tunnel's shared secret (pre-shared key). To get other information about the tunnel, use get_ip_sec_connection_tunnel.
8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 |
# File 'lib/oci/core/virtual_network_client.rb', line 8065 def get_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_ip_sec_connection_tunnel_shared_secret.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_tunnel_shared_secret." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling get_ip_sec_connection_tunnel_shared_secret." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/sharedSecret'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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_tunnel_shared_secret') 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::IPSecConnectionTunnelSharedSecret' ) end # rubocop:enable Metrics/BlockLength end |
#get_ipsec_cpe_device_config_content(ipsc_id, opts = {}, &block) ⇒ Response
Click here to see an example of how to use get_ipsec_cpe_device_config_content API.
Renders a set of CPE configuration content for the specified IPSec connection (for all the tunnels in the connection). The content helps a network engineer configure the actual CPE device (for example, a hardware router) that the specified IPSec connection terminates on.
The rendered content is specific to the type of CPE device (for example, Cisco ASA). Therefore the Cpe used by the specified IPSecConnection must have the CPE's device type specified by the cpeDeviceShapeId
attribute. The content optionally includes answers that the customer provides (see update_tunnel_cpe_device_config), merged with a template of other information specific to the CPE device type.
The operation returns configuration information for all tunnels in the single specified IPSecConnection object. Here are other similar operations:
-
get_tunnel_cpe_device_config_content returns CPE configuration content for a specific tunnel within an IPSec connection.
-
get_cpe_device_config_content returns CPE configuration content for all IPSec connections that use a specific CPE.
8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 |
# File 'lib/oci/core/virtual_network_client.rb', line 8144 def get_ipsec_cpe_device_config_content(ipsc_id, opts = {}, &block) logger.debug 'Calling operation VirtualNetworkClient#get_ipsec_cpe_device_config_content.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_ipsec_cpe_device_config_content." 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}/cpeConfigContent'.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] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'text/plain; charset=utf-8' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ipsec_cpe_device_config_content') do if !block.nil? @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: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @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: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @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: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @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: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#get_ipv6(ipv6_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ipv6 API.
Gets the specified IPv6. You must specify the object's OCID. Alternatively, you can get the object by using #list_ipv6s list_ipv6s} with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet {OCID.
8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 |
# File 'lib/oci/core/virtual_network_client.rb', line 8248 def get_ipv6(ipv6_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_ipv6.' if logger raise "Missing the required parameter 'ipv6_id' when calling get_ipv6." if ipv6_id.nil? raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id) path = '/ipv6/{ipv6Id}'.sub('{ipv6Id}', ipv6_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ipv6') 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::Ipv6' ) end # rubocop:enable Metrics/BlockLength end |
#get_local_peering_gateway(local_peering_gateway_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_local_peering_gateway API.
Gets the specified local peering gateway's information.
8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 |
# File 'lib/oci/core/virtual_network_client.rb', line 8302 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_nat_gateway(nat_gateway_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_nat_gateway API.
Gets the specified NAT gateway's information.
8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 |
# File 'lib/oci/core/virtual_network_client.rb', line 8356 def get_nat_gateway(nat_gateway_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_nat_gateway.' if logger raise "Missing the required parameter 'nat_gateway_id' when calling get_nat_gateway." if nat_gateway_id.nil? raise "Parameter value for 'nat_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(nat_gateway_id) path = '/natGateways/{natGatewayId}'.sub('{natGatewayId}', nat_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_nat_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::NatGateway' ) end # rubocop:enable Metrics/BlockLength end |
#get_network_security_group(network_security_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_network_security_group API.
Gets the specified network security group's information.
To list the VNICs in an NSG, see list_network_security_group_vnics.
To list the security rules in an NSG, see list_network_security_group_security_rules.
8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 |
# File 'lib/oci/core/virtual_network_client.rb', line 8417 def get_network_security_group(network_security_group_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_network_security_group.' if logger raise "Missing the required parameter 'network_security_group_id' when calling get_network_security_group." if network_security_group_id.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}'.sub('{networkSecurityGroupId}', network_security_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_network_security_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::NetworkSecurityGroup' ) end # rubocop:enable Metrics/BlockLength end |
#get_networking_topology(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_networking_topology API.
Gets a virtual networking topology for the current region.
8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 |
# File 'lib/oci/core/virtual_network_client.rb', line 8496 def get_networking_topology(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_networking_topology.' if logger raise "Missing the required parameter 'compartment_id' when calling get_networking_topology." if compartment_id.nil? if opts[:access_level] && !%w[ANY ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of ANY, ACCESSIBLE.' end path = '/networkingTopology' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:queryCompartmentSubtree] = opts[:query_compartment_subtree] if !opts[:query_compartment_subtree].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match] header_params[:'cache-control'] = opts[:cache_control] if opts[:cache_control] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_networking_topology') 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::NetworkingTopology' ) end # rubocop:enable Metrics/BlockLength end |
#get_private_ip(private_ip_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_private_ip API.
Gets the specified private IP. You must specify the object's OCID. Alternatively, you can get the object by using #list_private_ips list_private_ips} with the private IP address (for example, 10.0.3.3) and subnet {OCID.
8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 |
# File 'lib/oci/core/virtual_network_client.rb', line 8562 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
Click here to see an example of how to use get_public_ip API.
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, 203.0.113.2).
Or you can use #get_public_ip_by_private_ip_id 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 assignedEntityId
= OCID of the target private IP.
8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 |
# File 'lib/oci/core/virtual_network_client.rb', line 8627 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
Click here to see an example of how to use get_public_ip_by_ip_address API.
Gets the public IP based on the public IP address (for example, 203.0.113.2).
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 assignedEntityId
= OCID of the target private IP.
8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 |
# File 'lib/oci/core/virtual_network_client.rb', line 8686 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
Click here to see an example of how to use get_public_ip_by_private_ip_id API.
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 get_public_ip} or get_public_ip_by_ip_address, the service returns the public IP object with lifecycleState = ASSIGNING and assignedEntityId = {OCID of the target private IP.
8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 |
# File 'lib/oci/core/virtual_network_client.rb', line 8750 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_public_ip_pool(public_ip_pool_id, opts = {}) ⇒ Response
8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 |
# File 'lib/oci/core/virtual_network_client.rb', line 8806 def get_public_ip_pool(public_ip_pool_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_public_ip_pool.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling get_public_ip_pool." if public_ip_pool_id.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_public_ip_pool') 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::PublicIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#get_remote_peering_connection(remote_peering_connection_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_remote_peering_connection API.
Get the specified remote peering connection's information.
8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 |
# File 'lib/oci/core/virtual_network_client.rb', line 8861 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_resource_ip_inventory(data_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_resource_ip_inventory API.
Gets the IpInventory
resource.
8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 |
# File 'lib/oci/core/virtual_network_client.rb', line 8918 def get_resource_ip_inventory(data_request_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_resource_ip_inventory.' if logger raise "Missing the required parameter 'data_request_id' when calling get_resource_ip_inventory." if data_request_id.nil? raise "Parameter value for 'data_request_id' must not be blank" if OCI::Internal::Util.blank_string?(data_request_id) path = '/ipinventory/DataRequestId/{dataRequestId}'.sub('{dataRequestId}', data_request_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_resource_ip_inventory') 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::IpInventoryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_route_table(rt_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_route_table API.
Gets the specified route table's information.
8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 |
# File 'lib/oci/core/virtual_network_client.rb', line 8972 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
Click here to see an example of how to use get_security_list API.
Gets the specified security list's information.
9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 |
# File 'lib/oci/core/virtual_network_client.rb', line 9026 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
Click here to see an example of how to use get_service API.
Gets the specified Service object.
9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 |
# File 'lib/oci/core/virtual_network_client.rb', line 9081 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
Click here to see an example of how to use get_service_gateway API.
Gets the specified service gateway's information.
9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 |
# File 'lib/oci/core/virtual_network_client.rb', line 9135 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
Click here to see an example of how to use get_subnet API.
Gets the specified subnet's information.
9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 |
# File 'lib/oci/core/virtual_network_client.rb', line 9189 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_subnet_cidr_utilization(subnet_id, opts = {}) ⇒ Response
9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 |
# File 'lib/oci/core/virtual_network_client.rb', line 9246 def get_subnet_cidr_utilization(subnet_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_subnet_cidr_utilization.' if logger raise "Missing the required parameter 'subnet_id' when calling get_subnet_cidr_utilization." if subnet_id.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util.blank_string?(subnet_id) path = '/ipInventory/subnets/{subnetId}/cidrs'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_subnet_cidr_utilization') 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::IpInventoryCidrUtilizationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_subnet_ip_inventory(subnet_id, opts = {}) ⇒ Response
9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 |
# File 'lib/oci/core/virtual_network_client.rb', line 9303 def get_subnet_ip_inventory(subnet_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_subnet_ip_inventory.' if logger raise "Missing the required parameter 'subnet_id' when calling get_subnet_ip_inventory." if subnet_id.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util.blank_string?(subnet_id) path = '/ipInventory/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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_subnet_ip_inventory') 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::IpInventorySubnetResourceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_subnet_topology(compartment_id, subnet_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_subnet_topology API.
Gets a topology for a given subnet.
9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 |
# File 'lib/oci/core/virtual_network_client.rb', line 9383 def get_subnet_topology(compartment_id, subnet_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_subnet_topology.' if logger raise "Missing the required parameter 'compartment_id' when calling get_subnet_topology." if compartment_id.nil? raise "Missing the required parameter 'subnet_id' when calling get_subnet_topology." if subnet_id.nil? if opts[:access_level] && !%w[ANY ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of ANY, ACCESSIBLE.' end path = '/subnetTopology' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:subnetId] = subnet_id query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:queryCompartmentSubtree] = opts[:query_compartment_subtree] if !opts[:query_compartment_subtree].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match] header_params[:'cache-control'] = opts[:cache_control] if opts[:cache_control] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_subnet_topology') 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::SubnetTopology' ) end # rubocop:enable Metrics/BlockLength end |
#get_tunnel_cpe_device_config(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_tunnel_cpe_device_config API.
Gets the set of CPE configuration answers for the tunnel, which the customer provided in update_tunnel_cpe_device_config. To get the full set of content for the tunnel (any answers merged with the template of other information specific to the CPE device type), use get_tunnel_cpe_device_config_content.
9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 |
# File 'lib/oci/core/virtual_network_client.rb', line 9455 def get_tunnel_cpe_device_config(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_tunnel_cpe_device_config.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_tunnel_cpe_device_config." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling get_tunnel_cpe_device_config." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/tunnelDeviceConfig'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_tunnel_cpe_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::TunnelCpeDeviceConfig' ) end # rubocop:enable Metrics/BlockLength end |
#get_tunnel_cpe_device_config_content(ipsc_id, tunnel_id, opts = {}, &block) ⇒ Response
Click here to see an example of how to use get_tunnel_cpe_device_config_content API.
Renders a set of CPE configuration content for the specified IPSec tunnel. The content helps a network engineer configure the actual CPE device (for example, a hardware router) that the specified IPSec tunnel terminates on.
The rendered content is specific to the type of CPE device (for example, Cisco ASA). Therefore the Cpe used by the specified IPSecConnection must have the CPE's device type specified by the cpeDeviceShapeId
attribute. The content optionally includes answers that the customer provides (see update_tunnel_cpe_device_config), merged with a template of other information specific to the CPE device type.
The operation returns configuration information for only the specified IPSec tunnel. Here are other similar operations:
-
get_ipsec_cpe_device_config_content returns CPE configuration content for all tunnels in a single IPSec connection.
-
get_cpe_device_config_content returns CPE configuration content for all IPSec connections that use a specific CPE.
9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 |
# File 'lib/oci/core/virtual_network_client.rb', line 9534 def get_tunnel_cpe_device_config_content(ipsc_id, tunnel_id, opts = {}, &block) logger.debug 'Calling operation VirtualNetworkClient#get_tunnel_cpe_device_config_content.' if logger raise "Missing the required parameter 'ipsc_id' when calling get_tunnel_cpe_device_config_content." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling get_tunnel_cpe_device_config_content." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/tunnelDeviceConfig/content'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'text/plain; charset=utf-8' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_tunnel_cpe_device_config_content') do if !block.nil? @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: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @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: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @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: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @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: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#get_upgrade_status(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_upgrade_status API.
Returns the DRG upgrade status. The status can be not updated, in progress, or updated. Also indicates how much of the upgrade is completed.
9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 |
# File 'lib/oci/core/virtual_network_client.rb', line 9637 def get_upgrade_status(drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_upgrade_status.' if logger raise "Missing the required parameter 'drg_id' when calling get_upgrade_status." 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}/actions/upgradeStatus'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_upgrade_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::UpgradeStatus' ) end # rubocop:enable Metrics/BlockLength end |
#get_vcn(vcn_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vcn API.
Gets the specified VCN's information.
9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 |
# File 'lib/oci/core/virtual_network_client.rb', line 9691 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_vcn_dns_resolver_association(vcn_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vcn_dns_resolver_association API.
Get the associated DNS resolver information with a vcn
9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 |
# File 'lib/oci/core/virtual_network_client.rb', line 9747 def get_vcn_dns_resolver_association(vcn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_vcn_dns_resolver_association.' if logger raise "Missing the required parameter 'vcn_id' when calling get_vcn_dns_resolver_association." 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}/dnsResolverAssociation'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vcn_dns_resolver_association') 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::VcnDnsResolverAssociation' ) end # rubocop:enable Metrics/BlockLength end |
#get_vcn_overlap(vcn_id, get_vcn_overlap_details, opts = {}) ⇒ Response
9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 |
# File 'lib/oci/core/virtual_network_client.rb', line 9811 def get_vcn_overlap(vcn_id, get_vcn_overlap_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_vcn_overlap.' if logger raise "Missing the required parameter 'vcn_id' when calling get_vcn_overlap." if vcn_id.nil? raise "Missing the required parameter 'get_vcn_overlap_details' when calling get_vcn_overlap." if get_vcn_overlap_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util.blank_string?(vcn_id) path = '/ipInventory/vcns/{vcnId}/overlaps'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(get_vcn_overlap_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vcn_overlap') 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::IpInventoryVcnOverlapCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_vcn_topology(compartment_id, vcn_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vcn_topology API.
Gets a virtual network topology for a given VCN.
9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 |
# File 'lib/oci/core/virtual_network_client.rb', line 9894 def get_vcn_topology(compartment_id, vcn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_vcn_topology.' if logger raise "Missing the required parameter 'compartment_id' when calling get_vcn_topology." if compartment_id.nil? raise "Missing the required parameter 'vcn_id' when calling get_vcn_topology." if vcn_id.nil? if opts[:access_level] && !%w[ANY ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of ANY, ACCESSIBLE.' end path = '/vcnTopology' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:vcnId] = vcn_id query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:queryCompartmentSubtree] = opts[:query_compartment_subtree] if !opts[:query_compartment_subtree].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match] header_params[:'cache-control'] = opts[:cache_control] if opts[:cache_control] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vcn_topology') 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::VcnTopology' ) end # rubocop:enable Metrics/BlockLength end |
#get_virtual_circuit(virtual_circuit_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_virtual_circuit API.
Gets the specified virtual circuit's information.
9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 |
# File 'lib/oci/core/virtual_network_client.rb', line 9958 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_vlan(vlan_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vlan API.
Gets the specified VLAN's information.
10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 |
# File 'lib/oci/core/virtual_network_client.rb', line 10014 def get_vlan(vlan_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_vlan.' if logger raise "Missing the required parameter 'vlan_id' when calling get_vlan." if vlan_id.nil? raise "Parameter value for 'vlan_id' must not be blank" if OCI::Internal::Util.blank_string?(vlan_id) path = '/vlans/{vlanId}'.sub('{vlanId}', vlan_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vlan') 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::Vlan' ) end # rubocop:enable Metrics/BlockLength end |
#get_vnic(vnic_id, opts = {}) ⇒ Response
10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 |
# File 'lib/oci/core/virtual_network_client.rb', line 10072 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 |
#get_vtap(vtap_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vtap API.
Gets the specified Vtap
resource.
10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 |
# File 'lib/oci/core/virtual_network_client.rb', line 10128 def get_vtap(vtap_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#get_vtap.' if logger raise "Missing the required parameter 'vtap_id' when calling get_vtap." if vtap_id.nil? raise "Parameter value for 'vtap_id' must not be blank" if OCI::Internal::Util.blank_string?(vtap_id) path = '/vtaps/{vtapId}'.sub('{vtapId}', vtap_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_vtap') 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::Vtap' ) end # rubocop:enable Metrics/BlockLength end |
#ipv6_vnic_detach(ipv6_id, opts = {}) ⇒ Response
10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 |
# File 'lib/oci/core/virtual_network_client.rb', line 10195 def ipv6_vnic_detach(ipv6_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#ipv6_vnic_detach.' if logger raise "Missing the required parameter 'ipv6_id' when calling ipv6_vnic_detach." if ipv6_id.nil? raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id) path = '/ipv6/{ipv6Id}/actions/detach'.sub('{ipv6Id}', ipv6_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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 = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#ipv6_vnic_detach') 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::Ipv6' ) end # rubocop:enable Metrics/BlockLength end |
#list_allowed_peer_regions_for_remote_peering(opts = {}) ⇒ Response
Click here to see an example of how to use list_allowed_peer_regions_for_remote_peering API.
Lists the regions that support remote VCN peering (which is peering across regions). For more information, see VCN Peering.
10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 |
# File 'lib/oci/core/virtual_network_client.rb', line 10253 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_byoasns(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_byoasns API.
Lists the Byoasn
resources in the specified compartment. You can filter the list using query parameters.
Allowed values are: TIMECREATED, DISPLAYNAME
10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 |
# File 'lib/oci/core/virtual_network_client.rb', line 10330 def list_byoasns(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_byoasns.' if logger raise "Missing the required parameter 'compartment_id' when calling list_byoasns." 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 path = '/byoasns' 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[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_byoasns') 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::ByoasnCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_byoip_allocated_ranges(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_byoip_allocated_ranges API.
Lists the subranges of a BYOIP CIDR block currently allocated to an IP pool. Each ByoipAllocatedRange
object also lists the IP pool where it is allocated.
10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 |
# File 'lib/oci/core/virtual_network_client.rb', line 10412 def list_byoip_allocated_ranges(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_byoip_allocated_ranges.' if logger raise "Missing the required parameter 'byoip_range_id' when calling list_byoip_allocated_ranges." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/byoipAllocatedRanges'.sub('{byoipRangeId}', byoip_range_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' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_byoip_allocated_ranges') 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::ByoipAllocatedRangeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_byoip_ranges(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_byoip_ranges API.
Lists the ByoipRange
resources in the specified compartment. You can filter the list using query parameters.
10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 |
# File 'lib/oci/core/virtual_network_client.rb', line 10500 def list_byoip_ranges(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_byoip_ranges.' if logger raise "Missing the required parameter 'compartment_id' when calling list_byoip_ranges." 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 path = '/byoipRanges' 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[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_byoip_ranges') 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::ByoipRangeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_capture_filters(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_capture_filters API.
Lists the capture filters in the specified compartment.
10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 |
# File 'lib/oci/core/virtual_network_client.rb', line 10601 def list_capture_filters(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_capture_filters.' if logger raise "Missing the required parameter 'compartment_id' when calling list_capture_filters." 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::CaptureFilter::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CaptureFilter::LIFECYCLE_STATE_ENUM.' end if opts[:filter_type] && !OCI::Core::Models::CaptureFilter::FILTER_TYPE_ENUM.include?(opts[:filter_type]) raise 'Invalid value for "filter_type", must be one of the values in OCI::Core::Models::CaptureFilter::FILTER_TYPE_ENUM.' end path = '/captureFilters' 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[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:filterType] = opts[:filter_type] if opts[:filter_type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_capture_filters') 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::CaptureFilter>' ) end # rubocop:enable Metrics/BlockLength end |
#list_cpe_device_shapes(opts = {}) ⇒ Response
Click here to see an example of how to use list_cpe_device_shapes API.
Lists the CPE device types that the Networking service provides CPE configuration content for (example: Cisco ASA). The content helps a network engineer configure the actual CPE device represented by a Cpe object.
If you want to generate CPE configuration content for one of the returned CPE device types, ensure that the Cpe} object’s cpeDeviceShapeId attribute is set to the CPE device type’s (returned by this operation).
For information about generating CPE configuration content, see these operations:
-
{#get_cpe_device_config_content get_cpe_device_config_content
10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 |
# File 'lib/oci/core/virtual_network_client.rb', line 10702 def list_cpe_device_shapes(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_cpe_device_shapes.' if logger path = '/cpeDeviceShapes' 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' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cpe_device_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::CpeDeviceShapeSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_cpes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_cpes API.
Lists the customer-premises equipment objects (CPEs) in the specified compartment.
10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 |
# File 'lib/oci/core/virtual_network_client.rb', line 10766 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
Click here to see an example of how to use list_cross_connect_groups API.
Lists the cross-connect groups in the specified compartment.
10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 |
# File 'lib/oci/core/virtual_network_client.rb', line 10850 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
Click here to see an example of how to use list_cross_connect_locations API.
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.
10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 |
# File 'lib/oci/core/virtual_network_client.rb', line 10932 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_connect_mappings(virtual_circuit_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_cross_connect_mappings API.
Lists the Cross Connect mapping Details for the specified virtual circuit.
10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 |
# File 'lib/oci/core/virtual_network_client.rb', line 10991 def list_cross_connect_mappings(virtual_circuit_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_cross_connect_mappings.' if logger raise "Missing the required parameter 'virtual_circuit_id' when calling list_cross_connect_mappings." 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}/crossConnectMappings'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_cross_connect_mappings') 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::CrossConnectMappingDetailsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_cross_connects(compartment_id, opts = {}) ⇒ Response
11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 |
# File 'lib/oci/core/virtual_network_client.rb', line 11076 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
Click here to see an example of how to use list_crossconnect_port_speed_shapes API.
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.
11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 |
# File 'lib/oci/core/virtual_network_client.rb', line 11160 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, opts = {}) ⇒ Response
Click here to see an example of how to use list_dhcp_options API.
Lists the sets of DHCP options in the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the sets of DHCP options from all VCNs in the specified compartment. The response includes the default set of options that automatically comes with each VCN, plus any other sets you've created.
11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 |
# File 'lib/oci/core/virtual_network_client.rb', line 11248 def (compartment_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? 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] = 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[: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
Click here to see an example of how to use list_drg_attachments API.
Lists the DrgAttachment
resource for the specified compartment. You can filter the results by DRG, attached network, attachment type, DRG route table or VCN route table.
The LIST API lists DRG attachments by attachment type. It will default to list VCN attachments, but you may request to list ALL attachments of ALL types.
11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 |
# File 'lib/oci/core/virtual_network_client.rb', line 11360 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? if opts[:attachment_type] && !%w[VCN VIRTUAL_CIRCUIT REMOTE_PEERING_CONNECTION IPSEC_TUNNEL ALL].include?(opts[:attachment_type]) raise 'Invalid value for "attachment_type", must be one of VCN, VIRTUAL_CIRCUIT, REMOTE_PEERING_CONNECTION, IPSEC_TUNNEL, ALL.' end 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::DrgAttachment::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DrgAttachment::LIFECYCLE_STATE_ENUM.' end 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] query_params[:networkId] = opts[:network_id] if opts[:network_id] query_params[:attachmentType] = opts[:attachment_type] if opts[:attachment_type] query_params[:drgRouteTableId] = opts[:drg_route_table_id] if opts[:drg_route_table_id] 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_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_drg_route_distribution_statements(drg_route_distribution_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_drg_route_distribution_statements API.
Lists the statements for the specified route distribution.
11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 |
# File 'lib/oci/core/virtual_network_client.rb', line 11455 def list_drg_route_distribution_statements(drg_route_distribution_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_drg_route_distribution_statements.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling list_drg_route_distribution_statements." if drg_route_distribution_id.nil? if opts[:sort_by] && !%w[TIMECREATED].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED.' 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 raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}/drgRouteDistributionStatements'.sub('{drgRouteDistributionId}', drg_route_distribution_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] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # 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_route_distribution_statements') 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::DrgRouteDistributionStatement>' ) end # rubocop:enable Metrics/BlockLength end |
#list_drg_route_distributions(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_drg_route_distributions API.
Lists the route distributions in the specified DRG.
To retrieve the statements in a distribution, use the ListDrgRouteDistributionStatements operation.
11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 |
# File 'lib/oci/core/virtual_network_client.rb', line 11552 def list_drg_route_distributions(drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_drg_route_distributions.' if logger raise "Missing the required parameter 'drg_id' when calling list_drg_route_distributions." if drg_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::DrgRouteDistribution::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DrgRouteDistribution::LIFECYCLE_STATE_ENUM.' end path = '/drgRouteDistributions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:drgId] = drg_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_drg_route_distributions') 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::DrgRouteDistribution>' ) end # rubocop:enable Metrics/BlockLength end |
#list_drg_route_rules(drg_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_drg_route_rules API.
Lists the route rules in the specified DRG route table.
11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 |
# File 'lib/oci/core/virtual_network_client.rb', line 11636 def list_drg_route_rules(drg_route_table_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_drg_route_rules.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling list_drg_route_rules." if drg_route_table_id.nil? if opts[:route_type] && !%w[STATIC DYNAMIC].include?(opts[:route_type]) raise 'Invalid value for "route_type", must be one of STATIC, DYNAMIC.' end raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}/drgRouteRules'.sub('{drgRouteTableId}', drg_route_table_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] query_params[:routeType] = opts[:route_type] if opts[:route_type] # 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_route_rules') 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::DrgRouteRule>' ) end # rubocop:enable Metrics/BlockLength end |
#list_drg_route_tables(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_drg_route_tables API.
Lists the DRG route tables for the specified DRG.
Use the ListDrgRouteRules
operation to retrieve the route rules in a table.
11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 |
# File 'lib/oci/core/virtual_network_client.rb', line 11729 def list_drg_route_tables(drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_drg_route_tables.' if logger raise "Missing the required parameter 'drg_id' when calling list_drg_route_tables." if drg_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::DrgRouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DrgRouteTable::LIFECYCLE_STATE_ENUM.' end path = '/drgRouteTables' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:drgId] = drg_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[:importDrgRouteDistributionId] = opts[:import_drg_route_distribution_id] if opts[:import_drg_route_distribution_id] 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_drg_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::DrgRouteTable>' ) end # rubocop:enable Metrics/BlockLength end |
#list_drgs(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_drgs API.
Lists the DRGs in the specified compartment.
11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 |
# File 'lib/oci/core/virtual_network_client.rb', line 11811 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
Click here to see an example of how to use list_fast_connect_provider_services API.
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.
11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 |
# File 'lib/oci/core/virtual_network_client.rb', line 11882 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
Click here to see an example of how to use list_fast_connect_provider_virtual_circuit_bandwidth_shapes API.
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.
11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 |
# File 'lib/oci/core/virtual_network_client.rb', line 11950 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, opts = {}) ⇒ Response
Click here to see an example of how to use list_internet_gateways API.
Lists the internet gateways in the specified VCN and the specified compartment. If the VCN ID is not provided, then the list includes the internet gateways from all VCNs in the specified compartment.
12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 |
# File 'lib/oci/core/virtual_network_client.rb', line 12036 def list_internet_gateways(compartment_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? 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] = 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[: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_inventory(list_ip_inventory_details, opts = {}) ⇒ Response
Click here to see an example of how to use list_ip_inventory API.
Lists the IP Inventory information in the selected compartments.
12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 |
# File 'lib/oci/core/virtual_network_client.rb', line 12111 def list_ip_inventory(list_ip_inventory_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_ip_inventory.' if logger raise "Missing the required parameter 'list_ip_inventory_details' when calling list_ip_inventory." if list_ip_inventory_details.nil? path = '/ipInventory' 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-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(list_ip_inventory_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_ip_inventory') 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::IpInventoryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_ip_sec_connection_tunnel_routes(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ip_sec_connection_tunnel_routes API.
The routes advertised to the on-premises network and the routes received from the on-premises network.
12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 |
# File 'lib/oci/core/virtual_network_client.rb', line 12179 def list_ip_sec_connection_tunnel_routes(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_ip_sec_connection_tunnel_routes.' if logger raise "Missing the required parameter 'ipsc_id' when calling list_ip_sec_connection_tunnel_routes." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling list_ip_sec_connection_tunnel_routes." if tunnel_id.nil? if opts[:advertiser] && !OCI::Core::Models::TunnelRouteSummary::ADVERTISER_ENUM.include?(opts[:advertiser]) raise 'Invalid value for "advertiser", must be one of the values in OCI::Core::Models::TunnelRouteSummary::ADVERTISER_ENUM.' end raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/routes'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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] query_params[:advertiser] = opts[:advertiser] if opts[:advertiser] # 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_connection_tunnel_routes') 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::TunnelRouteSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_ip_sec_connection_tunnel_security_associations(ipsc_id, tunnel_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ip_sec_connection_tunnel_security_associations API.
Lists the tunnel security associations information for the specified IPSec tunnel ID.
12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 |
# File 'lib/oci/core/virtual_network_client.rb', line 12252 def list_ip_sec_connection_tunnel_security_associations(ipsc_id, tunnel_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_ip_sec_connection_tunnel_security_associations.' if logger raise "Missing the required parameter 'ipsc_id' when calling list_ip_sec_connection_tunnel_security_associations." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling list_ip_sec_connection_tunnel_security_associations." if tunnel_id.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/tunnelSecurityAssociations'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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_ip_sec_connection_tunnel_security_associations') 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::TunnelSecurityAssociationSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_ip_sec_connection_tunnels(ipsc_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ip_sec_connection_tunnels API.
Lists the tunnel information for the specified IPSec connection.
12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 |
# File 'lib/oci/core/virtual_network_client.rb', line 12319 def list_ip_sec_connection_tunnels(ipsc_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_ip_sec_connection_tunnels.' if logger raise "Missing the required parameter 'ipsc_id' when calling list_ip_sec_connection_tunnels." 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}/tunnels'.sub('{ipscId}', ipsc_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_ip_sec_connection_tunnels') 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::IPSecConnectionTunnel>' ) end # rubocop:enable Metrics/BlockLength end |
#list_ip_sec_connections(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ip_sec_connections API.
Lists the IPSec connections for the specified compartment. You can filter the results by DRG or CPE.
12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 |
# File 'lib/oci/core/virtual_network_client.rb', line 12387 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_ipv6s(opts = {}) ⇒ Response
Click here to see an example of how to use list_ipv6s API.
Lists the Ipv6 objects based on one of these filters:
-
Subnet OCID.
-
VNIC OCID.
-
Both IPv6 address and subnet OCID: This lets you get an
Ipv6
object based on its private IPv6 address (for example, 2001:0db8:0123:1111:abcd:ef01:2345:6789) and not its OCID. For comparison, #get_ipv6 get_ipv6} requires the {OCID.
12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 |
# File 'lib/oci/core/virtual_network_client.rb', line 12474 def list_ipv6s(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_ipv6s.' if logger path = '/ipv6' 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] query_params[:ipState] = opts[:ip_state] if opts[:ip_state] query_params[:lifetime] = opts[:lifetime] if opts[:lifetime] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_ipv6s') 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::Ipv6>' ) end # rubocop:enable Metrics/BlockLength end |
#list_local_peering_gateways(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_local_peering_gateways API.
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 |
# File 'lib/oci/core/virtual_network_client.rb', line 12545 def list_local_peering_gateways(compartment_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? path = '/localPeeringGateways' 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[:vcnId] = opts[:vcn_id] if opts[:vcn_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_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_nat_gateways(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_nat_gateways API.
Lists the NAT gateways in the specified compartment. You may optionally specify a VCN OCID to filter the results by VCN.
12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 |
# File 'lib/oci/core/virtual_network_client.rb', line 12632 def list_nat_gateways(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_nat_gateways.' if logger raise "Missing the required parameter 'compartment_id' when calling list_nat_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::NatGateway::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::NatGateway::LIFECYCLE_STATE_ENUM.' end path = '/natGateways' 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[: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_nat_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::NatGateway>' ) end # rubocop:enable Metrics/BlockLength end |
#list_network_security_group_security_rules(network_security_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_network_security_group_security_rules API.
Lists the security rules in the specified network security group.
12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 |
# File 'lib/oci/core/virtual_network_client.rb', line 12724 def list_network_security_group_security_rules(network_security_group_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_network_security_group_security_rules.' if logger raise "Missing the required parameter 'network_security_group_id' when calling list_network_security_group_security_rules." if network_security_group_id.nil? if opts[:direction] && !%w[EGRESS INGRESS].include?(opts[:direction]) raise 'Invalid value for "direction", must be one of EGRESS, INGRESS.' end if opts[:sort_by] && !%w[TIMECREATED].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED.' 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 raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/securityRules'.sub('{networkSecurityGroupId}', network_security_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:direction] = opts[:direction] if opts[:direction] 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] # 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_network_security_group_security_rules') 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::SecurityRule>' ) end # rubocop:enable Metrics/BlockLength end |
#list_network_security_group_vnics(network_security_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_network_security_group_vnics API.
Lists the VNICs in the specified network security group.
12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 |
# File 'lib/oci/core/virtual_network_client.rb', line 12810 def list_network_security_group_vnics(network_security_group_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_network_security_group_vnics.' if logger raise "Missing the required parameter 'network_security_group_id' when calling list_network_security_group_vnics." if network_security_group_id.nil? if opts[:sort_by] && !%w[TIMEASSOCIATED].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMEASSOCIATED.' 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 raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/vnics'.sub('{networkSecurityGroupId}', network_security_group_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] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # 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_network_security_group_vnics') 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::NetworkSecurityGroupVnic>' ) end # rubocop:enable Metrics/BlockLength end |
#list_network_security_groups(opts = {}) ⇒ Response
Click here to see an example of how to use list_network_security_groups API.
Lists either the network security groups in the specified compartment, or those associated with the specified VLAN. You must specify either a vlanId
or a compartmentId
, but not both. If you specify a vlanId
, all other parameters are ignored.
12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 |
# File 'lib/oci/core/virtual_network_client.rb', line 12907 def list_network_security_groups(opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_network_security_groups.' if logger 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::NetworkSecurityGroup::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::NetworkSecurityGroup::LIFECYCLE_STATE_ENUM.' end path = '/networkSecurityGroups' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:vlanId] = opts[:vlan_id] if opts[:vlan_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[: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_network_security_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::NetworkSecurityGroup>' ) end # rubocop:enable Metrics/BlockLength end |
#list_private_ips(opts = {}) ⇒ Response
Click here to see an example of how to use list_private_ips API.
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
If you're listing all the private IPs associated with a given subnet or VNIC, the response includes both primary and secondary private IPs.
If you are an Oracle Cloud VMware Solution customer and have VLANs in your VCN, you can filter the list by VLAN OCID. See {Vlan.
13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 |
# File 'lib/oci/core/virtual_network_client.rb', line 13015 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] query_params[:ipState] = opts[:ip_state] if opts[:ip_state] query_params[:lifetime] = opts[:lifetime] if opts[:lifetime] query_params[:vlanId] = opts[:vlan_id] if opts[:vlan_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_ip_pools(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_public_ip_pools API.
Lists the public IP pools in the specified compartment. You can filter the list using query parameters.
13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 |
# File 'lib/oci/core/virtual_network_client.rb', line 13106 def list_public_ip_pools(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_public_ip_pools.' if logger raise "Missing the required parameter 'compartment_id' when calling list_public_ip_pools." 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 path = '/publicIpPools' 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[:byoipRangeId] = opts[:byoip_range_id] if opts[:byoip_range_id] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_public_ip_pools') 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::PublicIpPoolCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_public_ips(scope, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_public_ips API.
Lists the PublicIp objects in the specified compartment. You can filter the list by using query parameters.
To list your reserved public IPs: * Set scope
= REGION
(required) * Leave the availabilityDomain
parameter empty * Set lifetime
= RESERVED
To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway: * Set scope
= REGION
(required) * Leave the availabilityDomain
parameter empty * Set lifetime
= EPHEMERAL
To list the ephemeral public IPs assigned to private IPs: * Set scope
= AVAILABILITY_DOMAIN
(required) * Set the availabilityDomain
parameter to the desired availability domain (required) * Set lifetime
= EPHEMERAL
Note: An ephemeral public IP assigned to a private IP is always in the same availability domain and compartment as the private IP.
13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 |
# File 'lib/oci/core/virtual_network_client.rb', line 13224 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? if opts[:lifetime] && !%w[EPHEMERAL RESERVED].include?(opts[:lifetime]) raise 'Invalid value for "lifetime", must be one of EPHEMERAL, RESERVED.' end 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] query_params[:lifetime] = opts[:lifetime] if opts[:lifetime] query_params[:publicIpPoolId] = opts[:public_ip_pool_id] if opts[:public_ip_pool_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_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
Click here to see an example of how to use list_remote_peering_connections API.
Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC's compartment).
13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 |
# File 'lib/oci/core/virtual_network_client.rb', line 13303 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, opts = {}) ⇒ Response
Click here to see an example of how to use list_route_tables API.
Lists the route tables in the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the route tables from all VCNs in the specified compartment. The response includes the default route table that automatically comes with each VCN in the specified compartment, plus any route tables you've created.
13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 |
# File 'lib/oci/core/virtual_network_client.rb', line 13392 def list_route_tables(compartment_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? 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[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id] 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, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_lists API.
Lists the security lists in the specified VCN and compartment. If the VCN ID is not provided, then the list includes the security lists from all VCNs in the specified compartment.
13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 |
# File 'lib/oci/core/virtual_network_client.rb', line 13495 def list_security_lists(compartment_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? 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[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id] 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
Click here to see an example of how to use list_service_gateways API.
Lists the service gateways in the specified compartment. You may optionally specify a VCN OCID to filter the results by VCN.
13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 |
# File 'lib/oci/core/virtual_network_client.rb', line 13596 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
Click here to see an example of how to use list_services API.
Lists the available Service objects that you can enable for a service gateway in this region.
13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 |
# File 'lib/oci/core/virtual_network_client.rb', line 13677 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, opts = {}) ⇒ Response
Click here to see an example of how to use list_subnets API.
Lists the subnets in the specified VCN and the specified compartment. If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment.
13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 |
# File 'lib/oci/core/virtual_network_client.rb', line 13761 def list_subnets(compartment_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? 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[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id] 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
Click here to see an example of how to use list_vcns API.
Lists the virtual cloud networks (VCNs) in the specified compartment.
13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 |
# File 'lib/oci/core/virtual_network_client.rb', line 13862 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_associated_tunnels(virtual_circuit_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_virtual_circuit_associated_tunnels API.
Gets the specified virtual circuit's associatedTunnelsInfo.
13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 |
# File 'lib/oci/core/virtual_network_client.rb', line 13942 def list_virtual_circuit_associated_tunnels(virtual_circuit_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_virtual_circuit_associated_tunnels.' if logger raise "Missing the required parameter 'virtual_circuit_id' when calling list_virtual_circuit_associated_tunnels." 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}/associatedTunnels'.sub('{virtualCircuitId}', virtual_circuit_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_virtual_circuit_associated_tunnels') 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::VirtualCircuitAssociatedTunnelDetails>' ) end # rubocop:enable Metrics/BlockLength end |
#list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {}) ⇒ Response
14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 |
# File 'lib/oci/core/virtual_network_client.rb', line 14007 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
Click here to see an example of how to use list_virtual_circuit_public_prefixes API.
Lists the public IP prefixes and their details for the specified public virtual circuit.
14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 |
# File 'lib/oci/core/virtual_network_client.rb', line 14068 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
Click here to see an example of how to use list_virtual_circuits API.
Lists the virtual circuits in the specified compartment.
14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 |
# File 'lib/oci/core/virtual_network_client.rb', line 14155 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 |
#list_vlans(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_vlans API.
Lists the VLANs in the specified VCN and the specified compartment.
14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 |
# File 'lib/oci/core/virtual_network_client.rb', line 14259 def list_vlans(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_vlans.' if logger raise "Missing the required parameter 'compartment_id' when calling list_vlans." 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::Vlan::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vlan::LIFECYCLE_STATE_ENUM.' end path = '/vlans' 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[:vcnId] = opts[:vcn_id] if opts[:vcn_id] 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' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_vlans') 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::Vlan>' ) end # rubocop:enable Metrics/BlockLength end |
#list_vtaps(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_vtaps API.
Lists the virtual test access points (VTAPs) in the specified compartment.
14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 |
# File 'lib/oci/core/virtual_network_client.rb', line 14373 def list_vtaps(compartment_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#list_vtaps.' if logger raise "Missing the required parameter 'compartment_id' when calling list_vtaps." 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::Vtap::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vtap::LIFECYCLE_STATE_ENUM.' end path = '/vtaps' 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[:source] = opts[:source] if opts[:source] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:targetIp] = opts[:target_ip] if opts[:target_ip] query_params[:isVtapEnabled] = opts[:is_vtap_enabled] if !opts[:is_vtap_enabled].nil? 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[:displayName] = opts[:display_name] if opts[:display_name] 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' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_vtaps') 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::Vtap>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
100 101 102 |
# File 'lib/oci/core/virtual_network_client.rb', line 100 def logger @api_client.config.logger end |
#modify_vcn_cidr(vcn_id, modify_vcn_cidr_details, opts = {}) ⇒ Response
Click here to see an example of how to use modify_vcn_cidr API.
Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
-
Must be valid.
-
Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block.
-
Must not exceed the limit of CIDR blocks allowed per VCN.
-
Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules.
-
No IP address in an existing subnet should be outside of the new CIDR block range.
Note: Modifying a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can vary depending on the size of your network. Updating a small network could take about a minute, and updating a large network could take up to an hour. You can use the GetWorkRequest
operation to check the status of the update.
14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 |
# File 'lib/oci/core/virtual_network_client.rb', line 14472 def modify_vcn_cidr(vcn_id, modify_vcn_cidr_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#modify_vcn_cidr.' if logger raise "Missing the required parameter 'vcn_id' when calling modify_vcn_cidr." if vcn_id.nil? raise "Missing the required parameter 'modify_vcn_cidr_details' when calling modify_vcn_cidr." if modify_vcn_cidr_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util.blank_string?(vcn_id) path = '/vcns/{vcnId}/actions/modifyCidr'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(modify_vcn_cidr_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#modify_vcn_cidr') 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 |
#private_ip_vnic_detach(private_ip_id, opts = {}) ⇒ Response
14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 |
# File 'lib/oci/core/virtual_network_client.rb', line 14542 def private_ip_vnic_detach(private_ip_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#private_ip_vnic_detach.' if logger raise "Missing the required parameter 'private_ip_id' when calling private_ip_vnic_detach." 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}/actions/detach'.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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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 = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#private_ip_vnic_detach') 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 |
#remove_drg_route_distribution_statements(drg_route_distribution_id, remove_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_drg_route_distribution_statements API.
Removes one or more route distribution statements from the specified route distribution's map.
14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 |
# File 'lib/oci/core/virtual_network_client.rb', line 14602 def remove_drg_route_distribution_statements(drg_route_distribution_id, remove_drg_route_distribution_statements_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_drg_route_distribution_statements.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling remove_drg_route_distribution_statements." if drg_route_distribution_id.nil? raise "Missing the required parameter 'remove_drg_route_distribution_statements_details' when calling remove_drg_route_distribution_statements." if remove_drg_route_distribution_statements_details.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}/actions/removeDrgRouteDistributionStatements'.sub('{drgRouteDistributionId}', drg_route_distribution_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(remove_drg_route_distribution_statements_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_drg_route_distribution_statements') 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 |
#remove_drg_route_rules(drg_route_table_id, remove_drg_route_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_drg_route_rules API.
Removes one or more route rules from the specified DRG route table.
14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 |
# File 'lib/oci/core/virtual_network_client.rb', line 14659 def remove_drg_route_rules(drg_route_table_id, remove_drg_route_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_drg_route_rules.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling remove_drg_route_rules." if drg_route_table_id.nil? raise "Missing the required parameter 'remove_drg_route_rules_details' when calling remove_drg_route_rules." if remove_drg_route_rules_details.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}/actions/removeDrgRouteRules'.sub('{drgRouteTableId}', drg_route_table_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(remove_drg_route_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_drg_route_rules') 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 |
#remove_export_drg_route_distribution(drg_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use remove_export_drg_route_distribution API.
Removes the export route distribution from the DRG attachment so no routes are advertised to it.
14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 |
# File 'lib/oci/core/virtual_network_client.rb', line 14720 def remove_export_drg_route_distribution(, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_export_drg_route_distribution.' if logger raise "Missing the required parameter 'drg_attachment_id' when calling remove_export_drg_route_distribution." if .nil? raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/drgAttachments/{drgAttachmentId}/actions/removeExportDrgRouteDistribution'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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#remove_export_drg_route_distribution') 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 |
#remove_import_drg_route_distribution(drg_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use remove_import_drg_route_distribution API.
Removes the import route distribution from the DRG route table so no routes are imported into it.
14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 |
# File 'lib/oci/core/virtual_network_client.rb', line 14783 def remove_import_drg_route_distribution(drg_route_table_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_import_drg_route_distribution.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling remove_import_drg_route_distribution." if drg_route_table_id.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}/actions/removeImportDrgRouteDistribution'.sub('{drgRouteTableId}', drg_route_table_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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#remove_import_drg_route_distribution') 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::DrgRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#remove_ipv6_subnet_cidr(subnet_id, remove_subnet_ipv6_cidr_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_ipv6_subnet_cidr API.
Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain.
14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 |
# File 'lib/oci/core/virtual_network_client.rb', line 14852 def remove_ipv6_subnet_cidr(subnet_id, remove_subnet_ipv6_cidr_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_ipv6_subnet_cidr.' if logger raise "Missing the required parameter 'subnet_id' when calling remove_ipv6_subnet_cidr." if subnet_id.nil? raise "Missing the required parameter 'remove_subnet_ipv6_cidr_details' when calling remove_ipv6_subnet_cidr." if remove_subnet_ipv6_cidr_details.nil? raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util.blank_string?(subnet_id) path = '/subnets/{subnetId}/actions/removeIpv6Cidr'.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[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_subnet_ipv6_cidr_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_ipv6_subnet_cidr') 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 |
#remove_ipv6_vcn_cidr(vcn_id, opts = {}) ⇒ Response
Click here to see an example of how to use remove_ipv6_vcn_cidr API.
Removing an existing IPv6 prefix from a VCN.
14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 |
# File 'lib/oci/core/virtual_network_client.rb', line 14923 def remove_ipv6_vcn_cidr(vcn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_ipv6_vcn_cidr.' if logger raise "Missing the required parameter 'vcn_id' when calling remove_ipv6_vcn_cidr." 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}/actions/removeIpv6Cidr'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:remove_vcn_ipv6_cidr_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_ipv6_vcn_cidr') 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 |
#remove_network_security_group_security_rules(network_security_group_id, remove_network_security_group_security_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_network_security_group_security_rules API.
Removes one or more security rules from the specified network security group.
14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 |
# File 'lib/oci/core/virtual_network_client.rb', line 14983 def remove_network_security_group_security_rules(network_security_group_id, remove_network_security_group_security_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_network_security_group_security_rules.' if logger raise "Missing the required parameter 'network_security_group_id' when calling remove_network_security_group_security_rules." if network_security_group_id.nil? raise "Missing the required parameter 'remove_network_security_group_security_rules_details' when calling remove_network_security_group_security_rules." if remove_network_security_group_security_rules_details.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/actions/removeSecurityRules'.sub('{networkSecurityGroupId}', network_security_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 = @api_client.object_to_http_body(remove_network_security_group_security_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_network_security_group_security_rules') 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 |
#remove_public_ip_pool_capacity(public_ip_pool_id, remove_public_ip_pool_capacity_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_public_ip_pool_capacity API.
Removes a CIDR block from the referenced public IP pool.
15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 |
# File 'lib/oci/core/virtual_network_client.rb', line 15047 def remove_public_ip_pool_capacity(public_ip_pool_id, remove_public_ip_pool_capacity_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_public_ip_pool_capacity.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling remove_public_ip_pool_capacity." if public_ip_pool_id.nil? raise "Missing the required parameter 'remove_public_ip_pool_capacity_details' when calling remove_public_ip_pool_capacity." if remove_public_ip_pool_capacity_details.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}/actions/removeCapacity'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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(remove_public_ip_pool_capacity_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_public_ip_pool_capacity') 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::PublicIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#remove_vcn_cidr(vcn_id, remove_vcn_cidr_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_vcn_cidr API.
Removes a specified CIDR block from a VCN.
Notes: - You cannot remove a CIDR block if an IP address in its range is in use. - Removing a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can take a few minutes. You can use the GetWorkRequest
operation to check the status of the update.
15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 |
# File 'lib/oci/core/virtual_network_client.rb', line 15122 def remove_vcn_cidr(vcn_id, remove_vcn_cidr_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#remove_vcn_cidr.' if logger raise "Missing the required parameter 'vcn_id' when calling remove_vcn_cidr." if vcn_id.nil? raise "Missing the required parameter 'remove_vcn_cidr_details' when calling remove_vcn_cidr." if remove_vcn_cidr_details.nil? raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util.blank_string?(vcn_id) path = '/vcns/{vcnId}/actions/removeCidr'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(remove_vcn_cidr_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#remove_vcn_cidr') 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 |
#set_origin_asn(byoip_range_id, set_origin_asn_details, opts = {}) ⇒ Response
Click here to see an example of how to use set_origin_asn API.
Update BYOIP's origin ASN to byoasn.
15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 |
# File 'lib/oci/core/virtual_network_client.rb', line 15193 def set_origin_asn(byoip_range_id, set_origin_asn_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#set_origin_asn.' if logger raise "Missing the required parameter 'byoip_range_id' when calling set_origin_asn." if byoip_range_id.nil? raise "Missing the required parameter 'set_origin_asn_details' when calling set_origin_asn." if set_origin_asn_details.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/setOrigin/byoasn'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(set_origin_asn_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#set_origin_asn') 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 |
#set_origin_asn_to_oracle(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use set_origin_asn_to_oracle API.
Update prefix's origin ASN to OCI
15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 |
# File 'lib/oci/core/virtual_network_client.rb', line 15257 def set_origin_asn_to_oracle(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#set_origin_asn_to_oracle.' if logger raise "Missing the required parameter 'byoip_range_id' when calling set_origin_asn_to_oracle." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/setOrigin/oracleAsn'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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#set_origin_asn_to_oracle') 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 |
#update_byoasn(byoasn_id, update_byoasn_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_byoasn API.
Updates the tags or display name associated with the specified BYOASN Resource.
15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 |
# File 'lib/oci/core/virtual_network_client.rb', line 15319 def update_byoasn(byoasn_id, update_byoasn_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_byoasn.' if logger raise "Missing the required parameter 'byoasn_id' when calling update_byoasn." if byoasn_id.nil? raise "Missing the required parameter 'update_byoasn_details' when calling update_byoasn." if update_byoasn_details.nil? raise "Parameter value for 'byoasn_id' must not be blank" if OCI::Internal::Util.blank_string?(byoasn_id) path = '/byoasns/{byoasnId}'.sub('{byoasnId}', byoasn_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_byoasn_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_byoasn') 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::Byoasn' ) end # rubocop:enable Metrics/BlockLength end |
#update_byoip_range(byoip_range_id, update_byoip_range_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_byoip_range API.
Updates the tags or display name associated to the specified BYOIP CIDR block.
15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 |
# File 'lib/oci/core/virtual_network_client.rb', line 15383 def update_byoip_range(byoip_range_id, update_byoip_range_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling update_byoip_range." if byoip_range_id.nil? raise "Missing the required parameter 'update_byoip_range_details' when calling update_byoip_range." if update_byoip_range_details.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_byoip_range_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_byoip_range') 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::ByoipRange' ) end # rubocop:enable Metrics/BlockLength end |
#update_capture_filter(capture_filter_id, update_capture_filter_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_capture_filter API.
Updates the specified VTAP capture filter's display name or tags.
15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 |
# File 'lib/oci/core/virtual_network_client.rb', line 15447 def update_capture_filter(capture_filter_id, update_capture_filter_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_capture_filter.' if logger raise "Missing the required parameter 'capture_filter_id' when calling update_capture_filter." if capture_filter_id.nil? raise "Missing the required parameter 'update_capture_filter_details' when calling update_capture_filter." if update_capture_filter_details.nil? raise "Parameter value for 'capture_filter_id' must not be blank" if OCI::Internal::Util.blank_string?(capture_filter_id) path = '/captureFilters/{captureFilterId}'.sub('{captureFilterId}', capture_filter_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_capture_filter_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_capture_filter') 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::CaptureFilter' ) end # rubocop:enable Metrics/BlockLength end |
#update_cpe(cpe_id, update_cpe_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_cpe API.
Updates the specified CPE's display name or tags. Avoid entering confidential information.
15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 |
# File 'lib/oci/core/virtual_network_client.rb', line 15509 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
Click here to see an example of how to use update_cross_connect API.
Updates the specified cross-connect.
15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 |
# File 'lib/oci/core/virtual_network_client.rb', line 15568 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
Click here to see an example of how to use update_cross_connect_group API.
Updates the specified cross-connect group's display name. Avoid entering confidential information.
15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 |
# File 'lib/oci/core/virtual_network_client.rb', line 15629 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
Click here to see an example of how to use update_dhcp_options API.
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.
15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 |
# File 'lib/oci/core/virtual_network_client.rb', line 15692 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
Click here to see an example of how to use update_drg API.
Updates the specified DRG's display name or tags. Avoid entering confidential information.
15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 |
# File 'lib/oci/core/virtual_network_client.rb', line 15752 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
Click here to see an example of how to use update_drg_attachment API.
Updates the display name and routing information for the specified DrgAttachment
. Avoid entering confidential information.
15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 |
# File 'lib/oci/core/virtual_network_client.rb', line 15813 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_drg_route_distribution(drg_route_distribution_id, update_drg_route_distribution_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_drg_route_distribution API.
Updates the specified route distribution
15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 |
# File 'lib/oci/core/virtual_network_client.rb', line 15873 def update_drg_route_distribution(drg_route_distribution_id, update_drg_route_distribution_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_drg_route_distribution.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling update_drg_route_distribution." if drg_route_distribution_id.nil? raise "Missing the required parameter 'update_drg_route_distribution_details' when calling update_drg_route_distribution." if update_drg_route_distribution_details.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}'.sub('{drgRouteDistributionId}', drg_route_distribution_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_route_distribution_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg_route_distribution') 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::DrgRouteDistribution' ) end # rubocop:enable Metrics/BlockLength end |
#update_drg_route_distribution_statements(drg_route_distribution_id, update_drg_route_distribution_statements_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_drg_route_distribution_statements API.
Updates one or more route distribution statements in the specified route distribution.
15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 |
# File 'lib/oci/core/virtual_network_client.rb', line 15931 def update_drg_route_distribution_statements(drg_route_distribution_id, update_drg_route_distribution_statements_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_drg_route_distribution_statements.' if logger raise "Missing the required parameter 'drg_route_distribution_id' when calling update_drg_route_distribution_statements." if drg_route_distribution_id.nil? raise "Missing the required parameter 'update_drg_route_distribution_statements_details' when calling update_drg_route_distribution_statements." if update_drg_route_distribution_statements_details.nil? raise "Parameter value for 'drg_route_distribution_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_distribution_id) path = '/drgRouteDistributions/{drgRouteDistributionId}/actions/updateDrgRouteDistributionStatements'.sub('{drgRouteDistributionId}', drg_route_distribution_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(update_drg_route_distribution_statements_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg_route_distribution_statements') 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: 'Array<OCI::Core::Models::DrgRouteDistributionStatement>' ) end # rubocop:enable Metrics/BlockLength end |
#update_drg_route_rules(drg_route_table_id, update_drg_route_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_drg_route_rules API.
Updates one or more route rules in the specified DRG route table.
15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 |
# File 'lib/oci/core/virtual_network_client.rb', line 15989 def update_drg_route_rules(drg_route_table_id, update_drg_route_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_drg_route_rules.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling update_drg_route_rules." if drg_route_table_id.nil? raise "Missing the required parameter 'update_drg_route_rules_details' when calling update_drg_route_rules." if update_drg_route_rules_details.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}/actions/updateDrgRouteRules'.sub('{drgRouteTableId}', drg_route_table_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(update_drg_route_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg_route_rules') 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: 'Array<OCI::Core::Models::DrgRouteRule>' ) end # rubocop:enable Metrics/BlockLength end |
#update_drg_route_table(drg_route_table_id, update_drg_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_drg_route_table API.
Updates the specified DRG route table.
16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 |
# File 'lib/oci/core/virtual_network_client.rb', line 16049 def update_drg_route_table(drg_route_table_id, update_drg_route_table_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_drg_route_table.' if logger raise "Missing the required parameter 'drg_route_table_id' when calling update_drg_route_table." if drg_route_table_id.nil? raise "Missing the required parameter 'update_drg_route_table_details' when calling update_drg_route_table." if update_drg_route_table_details.nil? raise "Parameter value for 'drg_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(drg_route_table_id) path = '/drgRouteTables/{drgRouteTableId}'.sub('{drgRouteTableId}', drg_route_table_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_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_drg_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::DrgRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#update_internet_gateway(ig_id, update_internet_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_internet_gateway API.
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.
16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 |
# File 'lib/oci/core/virtual_network_client.rb', line 16113 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
Click here to see an example of how to use update_ip_sec_connection API.
Updates the specified IPSec connection.
To update an individual IPSec tunnel's attributes, use update_ip_sec_connection_tunnel.
16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 |
# File 'lib/oci/core/virtual_network_client.rb', line 16176 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_ip_sec_connection_tunnel(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ip_sec_connection_tunnel API.
Updates the specified tunnel. This operation lets you change tunnel attributes such as the routing type (BGP dynamic routing or static routing). Here are some important notes:
-
If you change the tunnel's routing type or BGP session configuration, the tunnel will go down while it's reprovisioned.
-
If you want to switch the tunnel's
routing
fromSTATIC
toBGP
, make sure the tunnel's BGP session configuration attributes have been set (bgp_session_info). -
If you want to switch the tunnel's
routing
fromBGP
toSTATIC
, make sure the IPSecConnection already has at least one valid CIDR static route.
16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 |
# File 'lib/oci/core/virtual_network_client.rb', line 16251 def update_ip_sec_connection_tunnel(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_ip_sec_connection_tunnel.' if logger raise "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection_tunnel." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling update_ip_sec_connection_tunnel." if tunnel_id.nil? raise "Missing the required parameter 'update_ip_sec_connection_tunnel_details' when calling update_ip_sec_connection_tunnel." if update_ip_sec_connection_tunnel_details.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_ip_sec_connection_tunnel_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_ip_sec_connection_tunnel') 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::IPSecConnectionTunnel' ) end # rubocop:enable Metrics/BlockLength end |
#update_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_shared_secret_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ip_sec_connection_tunnel_shared_secret API.
Updates the shared secret (pre-shared key) for the specified tunnel.
Important: If you change the shared secret, the tunnel will go down while it's reprovisioned.
16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 |
# File 'lib/oci/core/virtual_network_client.rb', line 16317 def update_ip_sec_connection_tunnel_shared_secret(ipsc_id, tunnel_id, update_ip_sec_connection_tunnel_shared_secret_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_ip_sec_connection_tunnel_shared_secret.' if logger raise "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection_tunnel_shared_secret." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling update_ip_sec_connection_tunnel_shared_secret." if tunnel_id.nil? raise "Missing the required parameter 'update_ip_sec_connection_tunnel_shared_secret_details' when calling update_ip_sec_connection_tunnel_shared_secret." if update_ip_sec_connection_tunnel_shared_secret_details.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/sharedSecret'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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_tunnel_shared_secret_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_ip_sec_connection_tunnel_shared_secret') 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::IPSecConnectionTunnelSharedSecret' ) end # rubocop:enable Metrics/BlockLength end |
#update_ipv6(ipv6_id, update_ipv6_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ipv6 API.
Updates the specified IPv6. You must specify the object's OCID. Use this operation if you want to:
-
Move an IPv6 to a different VNIC in the same subnet.
-
Enable/disable internet access for an IPv6.
-
Change the display name for an IPv6.
-
Update resource tags for an IPv6.
16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 |
# File 'lib/oci/core/virtual_network_client.rb', line 16388 def update_ipv6(ipv6_id, update_ipv6_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_ipv6.' if logger raise "Missing the required parameter 'ipv6_id' when calling update_ipv6." if ipv6_id.nil? raise "Missing the required parameter 'update_ipv6_details' when calling update_ipv6." if update_ipv6_details.nil? raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id) path = '/ipv6/{ipv6Id}'.sub('{ipv6Id}', ipv6_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_ipv6_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_ipv6') 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::Ipv6' ) end # rubocop:enable Metrics/BlockLength end |
#update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_local_peering_gateway API.
Updates the specified local peering gateway (LPG).
16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 |
# File 'lib/oci/core/virtual_network_client.rb', line 16449 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_nat_gateway(nat_gateway_id, update_nat_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_nat_gateway API.
Updates the specified NAT gateway.
16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 |
# File 'lib/oci/core/virtual_network_client.rb', line 16509 def update_nat_gateway(nat_gateway_id, update_nat_gateway_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_nat_gateway.' if logger raise "Missing the required parameter 'nat_gateway_id' when calling update_nat_gateway." if nat_gateway_id.nil? raise "Missing the required parameter 'update_nat_gateway_details' when calling update_nat_gateway." if update_nat_gateway_details.nil? raise "Parameter value for 'nat_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(nat_gateway_id) path = '/natGateways/{natGatewayId}'.sub('{natGatewayId}', nat_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_nat_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_nat_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::NatGateway' ) end # rubocop:enable Metrics/BlockLength end |
#update_network_security_group(network_security_group_id, update_network_security_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_network_security_group API.
Updates the specified network security group.
To add or remove an existing VNIC from the group, use update_vnic.
To add a VNIC to the group when you create the VNIC, specify the NSG's OCID during creation. For example, see the nsgIds
attribute in create_vnic_details.
To add or remove security rules from the group, use add_network_security_group_security_rules or remove_network_security_group_security_rules.
To edit the contents of existing security rules in the group, use update_network_security_group_security_rules.
16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 |
# File 'lib/oci/core/virtual_network_client.rb', line 16583 def update_network_security_group(network_security_group_id, update_network_security_group_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_network_security_group.' if logger raise "Missing the required parameter 'network_security_group_id' when calling update_network_security_group." if network_security_group_id.nil? raise "Missing the required parameter 'update_network_security_group_details' when calling update_network_security_group." if update_network_security_group_details.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}'.sub('{networkSecurityGroupId}', network_security_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_network_security_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_network_security_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::NetworkSecurityGroup' ) end # rubocop:enable Metrics/BlockLength end |
#update_network_security_group_security_rules(network_security_group_id, update_network_security_group_security_rules_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_network_security_group_security_rules API.
Updates one or more security rules in the specified network security group.
16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 |
# File 'lib/oci/core/virtual_network_client.rb', line 16642 def update_network_security_group_security_rules(network_security_group_id, update_network_security_group_security_rules_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_network_security_group_security_rules.' if logger raise "Missing the required parameter 'network_security_group_id' when calling update_network_security_group_security_rules." if network_security_group_id.nil? raise "Missing the required parameter 'update_network_security_group_security_rules_details' when calling update_network_security_group_security_rules." if update_network_security_group_security_rules_details.nil? raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id) path = '/networkSecurityGroups/{networkSecurityGroupId}/actions/updateSecurityRules'.sub('{networkSecurityGroupId}', network_security_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 = @api_client.object_to_http_body(update_network_security_group_security_rules_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_network_security_group_security_rules') 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::UpdatedNetworkSecurityGroupSecurityRules' ) end # rubocop:enable Metrics/BlockLength end |
#update_private_ip(private_ip_id, update_private_ip_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_private_ip API.
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.
16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 |
# File 'lib/oci/core/virtual_network_client.rb', line 16711 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
Click here to see an example of how to use update_public_ip API.
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 create_public_ip.
-
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 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.
16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 |
# File 'lib/oci/core/virtual_network_client.rb', line 16809 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_public_ip_pool(public_ip_pool_id, update_public_ip_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_public_ip_pool API.
Updates the specified public IP pool.
16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 |
# File 'lib/oci/core/virtual_network_client.rb', line 16872 def update_public_ip_pool(public_ip_pool_id, update_public_ip_pool_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_public_ip_pool.' if logger raise "Missing the required parameter 'public_ip_pool_id' when calling update_public_ip_pool." if public_ip_pool_id.nil? raise "Missing the required parameter 'update_public_ip_pool_details' when calling update_public_ip_pool." if update_public_ip_pool_details.nil? raise "Parameter value for 'public_ip_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_pool_id) path = '/publicIpPools/{publicIpPoolId}'.sub('{publicIpPoolId}', public_ip_pool_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_public_ip_pool') 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::PublicIpPool' ) end # rubocop:enable Metrics/BlockLength end |
#update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_remote_peering_connection API.
Updates the specified remote peering connection (RPC).
16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 |
# File 'lib/oci/core/virtual_network_client.rb', line 16933 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
Click here to see an example of how to use update_route_table API.
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.
16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 |
# File 'lib/oci/core/virtual_network_client.rb', line 16996 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
Click here to see an example of how to use update_security_list API.
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.
17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 |
# File 'lib/oci/core/virtual_network_client.rb', line 17060 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
Click here to see an example of how to use update_service_gateway API.
Updates the specified service gateway. The information you provide overwrites the existing attributes of the gateway.
17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 |
# File 'lib/oci/core/virtual_network_client.rb', line 17121 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
Click here to see an example of how to use update_subnet API.
Updates the specified subnet.
17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 |
# File 'lib/oci/core/virtual_network_client.rb', line 17181 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_tunnel_cpe_device_config(ipsc_id, tunnel_id, update_tunnel_cpe_device_config_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_tunnel_cpe_device_config API.
Creates or updates the set of CPE configuration answers for the specified tunnel. The answers correlate to the questions that are specific to the CPE device type (see the parameters
attribute of CpeDeviceShapeDetail).
17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 |
# File 'lib/oci/core/virtual_network_client.rb', line 17253 def update_tunnel_cpe_device_config(ipsc_id, tunnel_id, update_tunnel_cpe_device_config_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_tunnel_cpe_device_config.' if logger raise "Missing the required parameter 'ipsc_id' when calling update_tunnel_cpe_device_config." if ipsc_id.nil? raise "Missing the required parameter 'tunnel_id' when calling update_tunnel_cpe_device_config." if tunnel_id.nil? raise "Missing the required parameter 'update_tunnel_cpe_device_config_details' when calling update_tunnel_cpe_device_config." if update_tunnel_cpe_device_config_details.nil? raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util.blank_string?(ipsc_id) raise "Parameter value for 'tunnel_id' must not be blank" if OCI::Internal::Util.blank_string?(tunnel_id) path = '/ipsecConnections/{ipscId}/tunnels/{tunnelId}/tunnelDeviceConfig'.sub('{ipscId}', ipsc_id.to_s).sub('{tunnelId}', tunnel_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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_tunnel_cpe_device_config_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_tunnel_cpe_device_config') 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::TunnelCpeDeviceConfig' ) end # rubocop:enable Metrics/BlockLength end |
#update_vcn(vcn_id, update_vcn_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_vcn API.
Updates the specified VCN.
17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 |
# File 'lib/oci/core/virtual_network_client.rb', line 17318 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
Click here to see an example of how to use update_virtual_circuit API.
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.
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.
17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 |
# File 'lib/oci/core/virtual_network_client.rb', line 17401 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_vlan(vlan_id, update_vlan_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_vlan API.
Updates the specified VLAN. Note that this operation might require changes to all the VNICs in the VLAN, which can take a while. The VLAN will be in the UPDATING state until the changes are complete.
17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 |
# File 'lib/oci/core/virtual_network_client.rb', line 17465 def update_vlan(vlan_id, update_vlan_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_vlan.' if logger raise "Missing the required parameter 'vlan_id' when calling update_vlan." if vlan_id.nil? raise "Missing the required parameter 'update_vlan_details' when calling update_vlan." if update_vlan_details.nil? raise "Parameter value for 'vlan_id' must not be blank" if OCI::Internal::Util.blank_string?(vlan_id) path = '/vlans/{vlanId}'.sub('{vlanId}', vlan_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_vlan_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_vlan') 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::Vlan' ) end # rubocop:enable Metrics/BlockLength end |
#update_vnic(vnic_id, update_vnic_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_vnic API.
Updates the specified VNIC.
17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 |
# File 'lib/oci/core/virtual_network_client.rb', line 17526 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 |
#update_vtap(vtap_id, update_vtap_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_vtap API.
Updates the specified VTAP's display name or tags.
17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 |
# File 'lib/oci/core/virtual_network_client.rb', line 17589 def update_vtap(vtap_id, update_vtap_details, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#update_vtap.' if logger raise "Missing the required parameter 'vtap_id' when calling update_vtap." if vtap_id.nil? raise "Missing the required parameter 'update_vtap_details' when calling update_vtap." if update_vtap_details.nil? raise "Parameter value for 'vtap_id' must not be blank" if OCI::Internal::Util.blank_string?(vtap_id) path = '/vtaps/{vtapId}'.sub('{vtapId}', vtap_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] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_vtap_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_vtap') 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::Vtap' ) end # rubocop:enable Metrics/BlockLength end |
#upgrade_drg(drg_id, opts = {}) ⇒ Response
Click here to see an example of how to use upgrade_drg API.
Upgrades the DRG. After upgrade, you can control routing inside your DRG via DRG attachments, route distributions, and DRG route tables.
17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 |
# File 'lib/oci/core/virtual_network_client.rb', line 17655 def upgrade_drg(drg_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#upgrade_drg.' if logger raise "Missing the required parameter 'drg_id' when calling upgrade_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}/actions/upgrade'.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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] 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 = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#upgrade_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 ) end # rubocop:enable Metrics/BlockLength end |
#validate_byoasn(byoasn_id, opts = {}) ⇒ Response
Click here to see an example of how to use validate_byoasn API.
Submits the BYOASN for validation. Please do not submit to Oracle for validation if the information for the BYOASN is not already modified in the Regional Internet Registry. See To import a BYOASN for details.
17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 |
# File 'lib/oci/core/virtual_network_client.rb', line 17724 def validate_byoasn(byoasn_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#validate_byoasn.' if logger raise "Missing the required parameter 'byoasn_id' when calling validate_byoasn." if byoasn_id.nil? raise "Parameter value for 'byoasn_id' must not be blank" if OCI::Internal::Util.blank_string?(byoasn_id) path = '/byoasns/{byoasnId}/actions/validate'.sub('{byoasnId}', byoasn_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] 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 = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#validate_byoasn') 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 |
#validate_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use validate_byoip_range API.
Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already modified the information for the BYOIP CIDR block with your Regional Internet Registry. See To import a CIDR block for details.
17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 |
# File 'lib/oci/core/virtual_network_client.rb', line 17784 def validate_byoip_range(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#validate_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling validate_byoip_range." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/validate'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#validate_byoip_range') 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 |
#withdraw_byoip_range(byoip_range_id, opts = {}) ⇒ Response
Click here to see an example of how to use withdraw_byoip_range API.
Withdraws BGP route advertisement for the BYOIP CIDR block.
17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 |
# File 'lib/oci/core/virtual_network_client.rb', line 17840 def withdraw_byoip_range(byoip_range_id, opts = {}) logger.debug 'Calling operation VirtualNetworkClient#withdraw_byoip_range.' if logger raise "Missing the required parameter 'byoip_range_id' when calling withdraw_byoip_range." if byoip_range_id.nil? raise "Parameter value for 'byoip_range_id' must not be blank" if OCI::Internal::Util.blank_string?(byoip_range_id) path = '/byoipRanges/{byoipRangeId}/actions/withdraw'.sub('{byoipRangeId}', byoip_range_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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#withdraw_byoip_range') 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 |