Class: OCI::Core::ComputeClient
- Inherits:
-
Object
- Object
- OCI::Core::ComputeClient
- Defined in:
- lib/oci/core/compute_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
-
#accept_shielded_integrity_policy(instance_id, opts = {}) ⇒ Response
Accept the changes to the PCR values in the measured boot report.
-
#add_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Adds a shape to the compatible shapes list for the image.
-
#attach_boot_volume(attach_boot_volume_details, opts = {}) ⇒ Response
Attaches the specified boot volume to the specified instance.
-
#attach_compute_host_group_host(compute_host_id, attach_compute_host_group_host_details, opts = {}) ⇒ Response
Attaches the Compute BM Host to a Host group.
-
#attach_vnic(attach_vnic_details, opts = {}) ⇒ Response
Creates a secondary VNIC and attaches it to the specified instance.
-
#attach_volume(attach_volume_details, opts = {}) ⇒ Response
Attaches the specified storage volume to the specified instance.
-
#capture_console_history(capture_console_history_details, opts = {}) ⇒ Response
Captures the most recent serial console data (up to a megabyte) for the specified instance.
-
#change_compute_capacity_reservation_compartment(capacity_reservation_id, change_compute_capacity_reservation_compartment_details, opts = {}) ⇒ Response
Moves a compute capacity reservation into a different compartment.
-
#change_compute_capacity_topology_compartment(compute_capacity_topology_id, change_compute_capacity_topology_compartment_details, opts = {}) ⇒ Response
Moves a compute capacity topology into a different compartment.
-
#change_compute_cluster_compartment(compute_cluster_id, change_compute_cluster_compartment_details, opts = {}) ⇒ Response
Moves a compute cluster into a different compartment within the same tenancy.
-
#change_compute_gpu_memory_cluster_compartment(compute_gpu_memory_cluster_id, change_compute_gpu_memory_cluster_compartment_details, opts = {}) ⇒ Response
Moves a compute GPU memory cluster into a different compartment.
-
#change_compute_gpu_memory_fabric_compartment(compute_gpu_memory_fabric_id, change_compute_gpu_memory_fabric_compartment_details, opts = {}) ⇒ Response
Moves a compute GPU memory fabric into a different compartment.
-
#change_compute_host_compartment(compute_host_id, change_compute_host_compartment_details, opts = {}) ⇒ Response
Moves a compute host into a different compartment.
-
#change_compute_host_group_compartment(compute_host_group_id, change_compute_host_group_compartment_details, opts = {}) ⇒ Response
Moves a compute host group into a different compartment.
-
#change_compute_image_capability_schema_compartment(compute_image_capability_schema_id, change_compute_image_capability_schema_compartment_details, opts = {}) ⇒ Response
Moves a compute image capability schema into a different compartment within the same tenancy.
-
#change_dedicated_vm_host_compartment(dedicated_vm_host_id, change_dedicated_vm_host_compartment_details, opts = {}) ⇒ Response
Moves a dedicated virtual machine host from one compartment to another.
-
#change_image_compartment(image_id, change_image_compartment_details, opts = {}) ⇒ Response
Moves an image into a different compartment within the same tenancy.
-
#change_instance_compartment(instance_id, change_instance_compartment_details, opts = {}) ⇒ Response
Moves an instance into a different compartment within the same tenancy.
-
#create_app_catalog_subscription(create_app_catalog_subscription_details, opts = {}) ⇒ Response
Create a subscription for listing resource version for a compartment.
-
#create_compute_capacity_report(create_compute_capacity_report_details, opts = {}) ⇒ Response
Generates a report of the host capacity within an availability domain that is available for you to create compute instances.
-
#create_compute_capacity_reservation(create_compute_capacity_reservation_details, opts = {}) ⇒ Response
Creates a new compute capacity reservation in the specified compartment and availability domain.
-
#create_compute_capacity_topology(create_compute_capacity_topology_details, opts = {}) ⇒ Response
Creates a new compute capacity topology in the specified compartment and availability domain.
-
#create_compute_cluster(create_compute_cluster_details, opts = {}) ⇒ Response
Creates an empty compute cluster.
-
#create_compute_gpu_memory_cluster(create_compute_gpu_memory_cluster_details, opts = {}) ⇒ Response
Create a compute GPU memory cluster instance on a specific compute GPU memory fabric.
-
#create_compute_host_group(create_compute_host_group_details, opts = {}) ⇒ Response
Creates a new compute host group in the specified compartment and availability domain.
-
#create_compute_image_capability_schema(create_compute_image_capability_schema_details, opts = {}) ⇒ Response
Creates compute image capability schema.
-
#create_dedicated_vm_host(create_dedicated_vm_host_details, opts = {}) ⇒ Response
Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain.
-
#create_image(create_image_details, opts = {}) ⇒ Response
Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service.
-
#create_instance_console_connection(create_instance_console_connection_details, opts = {}) ⇒ Response
Creates a new console connection to the specified instance.
-
#delete_app_catalog_subscription(listing_id, compartment_id, resource_version, opts = {}) ⇒ Response
Delete a subscription for a listing resource version for a compartment.
-
#delete_compute_capacity_reservation(capacity_reservation_id, opts = {}) ⇒ Response
Deletes the specified compute capacity reservation.
-
#delete_compute_capacity_topology(compute_capacity_topology_id, opts = {}) ⇒ Response
Deletes the specified compute capacity topology.
-
#delete_compute_cluster(compute_cluster_id, opts = {}) ⇒ Response
Deletes a compute cluster.
-
#delete_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
Terminates and deletes the specified compute GPU memory cluster and underlying instances.
-
#delete_compute_host_group(compute_host_group_id, opts = {}) ⇒ Response
Deletes the specified compute host group.
-
#delete_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) ⇒ Response
Deletes the specified Compute Image Capability Schema.
-
#delete_console_history(instance_console_history_id, opts = {}) ⇒ Response
Deletes the specified console history metadata and the console history data.
-
#delete_dedicated_vm_host(dedicated_vm_host_id, opts = {}) ⇒ Response
Deletes the specified dedicated virtual machine host.
-
#delete_image(image_id, opts = {}) ⇒ Response
Deletes an image.
-
#delete_instance_console_connection(instance_console_connection_id, opts = {}) ⇒ Response
Deletes the specified instance console connection.
-
#detach_boot_volume(boot_volume_attachment_id, opts = {}) ⇒ Response
Detaches a boot volume from an instance.
-
#detach_compute_host_group_host(compute_host_id, detach_compute_host_group_host_details, opts = {}) ⇒ Response
Detaches the specified bare metal host from the compute host group.
-
#detach_vnic(vnic_attachment_id, opts = {}) ⇒ Response
Detaches and deletes the specified secondary VNIC.
-
#detach_volume(volume_attachment_id, opts = {}) ⇒ Response
Detaches a storage volume from an instance.
-
#export_image(image_id, export_image_details, opts = {}) ⇒ Response
Exports the specified image to the Oracle Cloud Infrastructure Object Storage service.
-
#get_app_catalog_listing(listing_id, opts = {}) ⇒ Response
Gets the specified listing.
-
#get_app_catalog_listing_agreements(listing_id, resource_version, opts = {}) ⇒ Response
Retrieves the agreements for a particular resource version of a listing.
-
#get_app_catalog_listing_resource_version(listing_id, resource_version, opts = {}) ⇒ Response
Gets the specified listing resource version.
-
#get_boot_volume_attachment(boot_volume_attachment_id, opts = {}) ⇒ Response
Gets information about the specified boot volume attachment.
-
#get_compute_capacity_reservation(capacity_reservation_id, opts = {}) ⇒ Response
Gets information about the specified compute capacity reservation.
-
#get_compute_capacity_topology(compute_capacity_topology_id, opts = {}) ⇒ Response
Gets information about the specified compute capacity topology.
-
#get_compute_cluster(compute_cluster_id, opts = {}) ⇒ Response
Gets information about a compute cluster.
-
#get_compute_global_image_capability_schema(compute_global_image_capability_schema_id, opts = {}) ⇒ Response
Gets the specified Compute Global Image Capability Schema.
-
#get_compute_global_image_capability_schema_version(compute_global_image_capability_schema_id, compute_global_image_capability_schema_version_name, opts = {}) ⇒ Response
Gets the specified Compute Global Image Capability Schema Version.
-
#get_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
Gets information about the specified compute GPU memory cluster.
-
#get_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, opts = {}) ⇒ Response
Gets information about the specified compute GPU memory fabric.
-
#get_compute_host(compute_host_id, opts = {}) ⇒ Response
Gets information about the specified compute host.
-
#get_compute_host_group(compute_host_group_id, opts = {}) ⇒ Response
Gets information about the specified compute host group.
-
#get_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) ⇒ Response
Gets the specified Compute Image Capability Schema.
-
#get_console_history(instance_console_history_id, opts = {}) ⇒ Response
Shows the metadata for the specified console history.
-
#get_console_history_content(instance_console_history_id, opts = {}) ⇒ Response
Gets the actual console history data (not the metadata).
-
#get_dedicated_vm_host(dedicated_vm_host_id, opts = {}) ⇒ Response
Gets information about the specified dedicated virtual machine host.
-
#get_image(image_id, opts = {}) ⇒ Response
Gets the specified image.
-
#get_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Retrieves an image shape compatibility entry.
-
#get_instance(instance_id, opts = {}) ⇒ Response
Gets information about the specified instance.
-
#get_instance_console_connection(instance_console_connection_id, opts = {}) ⇒ Response
Gets the specified instance console connection's information.
-
#get_instance_maintenance_event(instance_maintenance_event_id, opts = {}) ⇒ Response
Gets the maintenance event for the given instance.
-
#get_instance_maintenance_reboot(instance_id, opts = {}) ⇒ Response
Gets the maximum possible date that a maintenance reboot can be extended.
-
#get_measured_boot_report(instance_id, opts = {}) ⇒ Response
Gets the measured boot report for this shielded instance.
-
#get_vnic_attachment(vnic_attachment_id, opts = {}) ⇒ Response
Gets the information for the specified VNIC attachment.
-
#get_volume_attachment(volume_attachment_id, opts = {}) ⇒ Response
Gets information about the specified volume attachment.
-
#get_windows_instance_initial_credentials(instance_id, opts = {}) ⇒ Response
Gets the generated credentials for the instance.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ ComputeClient
constructor
Creates a new ComputeClient.
-
#instance_action(instance_id, action, opts = {}) ⇒ Response
Performs one of the following power actions on the specified instance:.
-
#launch_instance(launch_instance_details, opts = {}) ⇒ Response
Creates a new instance in the specified compartment and the specified availability domain.
-
#list_app_catalog_listing_resource_versions(listing_id, opts = {}) ⇒ Response
Gets all resource versions for a particular listing.
-
#list_app_catalog_listings(opts = {}) ⇒ Response
Lists the published listings.
-
#list_app_catalog_subscriptions(compartment_id, opts = {}) ⇒ Response
Lists subscriptions for a compartment.
-
#list_boot_volume_attachments(availability_domain, compartment_id, opts = {}) ⇒ Response
Lists the boot volume attachments in the specified compartment.
-
#list_compute_capacity_reservation_instance_shapes(compartment_id, opts = {}) ⇒ Response
Lists the shapes that can be reserved within the specified compartment.
-
#list_compute_capacity_reservation_instances(capacity_reservation_id, opts = {}) ⇒ Response
Lists the instances launched under a capacity reservation.
-
#list_compute_capacity_reservations(compartment_id, opts = {}) ⇒ Response
Lists the compute capacity reservations that match the specified criteria and compartment.
-
#list_compute_capacity_topologies(compartment_id, opts = {}) ⇒ Response
Lists the compute capacity topologies in the specified compartment.
-
#list_compute_capacity_topology_compute_bare_metal_hosts(compute_capacity_topology_id, opts = {}) ⇒ Response
Lists compute bare metal hosts in the specified compute capacity topology.
-
#list_compute_capacity_topology_compute_hpc_islands(compute_capacity_topology_id, opts = {}) ⇒ Response
Lists compute HPC islands in the specified compute capacity topology.
-
#list_compute_capacity_topology_compute_network_blocks(compute_capacity_topology_id, opts = {}) ⇒ Response
Lists compute network blocks in the specified compute capacity topology.
-
#list_compute_clusters(compartment_id, opts = {}) ⇒ Response
Lists the compute clusters in the specified compartment.
-
#list_compute_global_image_capability_schema_versions(compute_global_image_capability_schema_id, opts = {}) ⇒ Response
Lists Compute Global Image Capability Schema versions in the specified compartment.
-
#list_compute_global_image_capability_schemas(opts = {}) ⇒ Response
Lists Compute Global Image Capability Schema in the specified compartment.
-
#list_compute_gpu_memory_cluster_instances(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
List all of the GPU memory cluster instances.
-
#list_compute_gpu_memory_clusters(compartment_id, opts = {}) ⇒ Response
List all of the compute GPU memory clusters.
-
#list_compute_gpu_memory_fabrics(compartment_id, opts = {}) ⇒ Response
Lists the compute GPU memory fabrics that match the specified criteria and compartmentId.
-
#list_compute_host_groups(compartment_id, opts = {}) ⇒ Response
Lists the compute host groups that match the specified criteria and compartment.
-
#list_compute_hosts(compartment_id, opts = {}) ⇒ Response
Generates a list of summary host details.
-
#list_compute_image_capability_schemas(opts = {}) ⇒ Response
Lists Compute Image Capability Schema in the specified compartment.
-
#list_console_histories(compartment_id, opts = {}) ⇒ Response
Lists the console history metadata for the specified compartment or instance.
-
#list_dedicated_vm_host_instance_shapes(compartment_id, opts = {}) ⇒ Response
Lists the shapes that can be used to launch a virtual machine instance on a dedicated virtual machine host within the specified compartment.
-
#list_dedicated_vm_host_instances(compartment_id, dedicated_vm_host_id, opts = {}) ⇒ Response
Returns the list of instances on the dedicated virtual machine hosts that match the specified criteria.
-
#list_dedicated_vm_host_shapes(compartment_id, opts = {}) ⇒ Response
Lists the shapes that can be used to launch a dedicated virtual machine host within the specified compartment.
-
#list_dedicated_vm_hosts(compartment_id, opts = {}) ⇒ Response
Returns the list of dedicated virtual machine hosts that match the specified criteria in the specified compartment.
-
#list_image_shape_compatibility_entries(image_id, opts = {}) ⇒ Response
Lists the compatible shapes for the specified image.
-
#list_images(compartment_id, opts = {}) ⇒ Response
Lists a subset of images available in the specified compartment, including platform images and custom images.
-
#list_instance_console_connections(compartment_id, opts = {}) ⇒ Response
Lists the console connections for the specified compartment or instance.
-
#list_instance_devices(instance_id, opts = {}) ⇒ Response
Gets a list of all the devices for given instance.
-
#list_instance_maintenance_events(compartment_id, opts = {}) ⇒ Response
Gets a list of all the maintenance events for the given compartment.
-
#list_instances(compartment_id, opts = {}) ⇒ Response
Lists the instances in the specified compartment and the specified availability domain.
-
#list_shapes(compartment_id, opts = {}) ⇒ Response
Lists the shapes that can be used to launch an instance within the specified compartment.
-
#list_vnic_attachments(compartment_id, opts = {}) ⇒ Response
Lists the VNIC attachments in the specified compartment.
-
#list_volume_attachments(compartment_id, opts = {}) ⇒ Response
Lists the volume attachments in the specified compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#remove_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Removes a shape from the compatible shapes list for the image.
-
#terminate_instance(instance_id, opts = {}) ⇒ Response
Permanently terminates (deletes) the specified instance.
-
#update_compute_capacity_reservation(capacity_reservation_id, update_compute_capacity_reservation_details, opts = {}) ⇒ Response
Updates the specified capacity reservation and its associated capacity configurations.
-
#update_compute_capacity_topology(compute_capacity_topology_id, update_compute_capacity_topology_details, opts = {}) ⇒ Response
Updates the specified compute capacity topology.
-
#update_compute_cluster(compute_cluster_id, update_compute_cluster_details, opts = {}) ⇒ Response
Updates a compute cluster.
-
#update_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, update_compute_gpu_memory_cluster_details, opts = {}) ⇒ Response
Updates a compute gpu memory cluster resource.
-
#update_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, update_compute_gpu_memory_fabric_details, opts = {}) ⇒ Response
Customer can update displayName and tags for compute GPU memory fabric record.
-
#update_compute_host(compute_host_id, update_compute_host_details, opts = {}) ⇒ Response
Customer can update the some fields for ComputeHost record.
-
#update_compute_host_group(compute_host_group_id, update_compute_host_group_details, opts = {}) ⇒ Response
Updates the specified compute host group details.
-
#update_compute_image_capability_schema(compute_image_capability_schema_id, update_compute_image_capability_schema_details, opts = {}) ⇒ Response
Updates the specified Compute Image Capability Schema.
-
#update_console_history(instance_console_history_id, update_console_history_details, opts = {}) ⇒ Response
Updates the specified console history metadata.
-
#update_dedicated_vm_host(dedicated_vm_host_id, update_dedicated_vm_host_details, opts = {}) ⇒ Response
Updates the displayName, freeformTags, and definedTags attributes for the specified dedicated virtual machine host.
-
#update_image(image_id, update_image_details, opts = {}) ⇒ Response
Updates the display name of the image.
-
#update_instance(instance_id, update_instance_details, opts = {}) ⇒ Response
Updates certain fields on the specified instance.
-
#update_instance_console_connection(instance_console_connection_id, update_instance_console_connection_details, opts = {}) ⇒ Response
Updates the defined tags and free-form tags for the specified instance console connection.
-
#update_instance_maintenance_event(instance_maintenance_event_id, update_instance_maintenance_event_details, opts = {}) ⇒ Response
Updates the maintenance event for the given instance.
-
#update_volume_attachment(volume_attachment_id, update_volume_attachment_details, opts = {}) ⇒ Response
Updates information about the specified volume attachment.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ ComputeClient
Creates a new ComputeClient. 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/compute_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 "ComputeClient 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/compute_client.rb', line 21 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
25 26 27 |
# File 'lib/oci/core/compute_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/compute_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/compute_client.rb', line 31 def retry_config @retry_config end |
Instance Method Details
#accept_shielded_integrity_policy(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use accept_shielded_integrity_policy API.
Accept the changes to the PCR values in the measured boot report.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/oci/core/compute_client.rb', line 129 def accept_shielded_integrity_policy(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#accept_shielded_integrity_policy.' if logger raise "Missing the required parameter 'instance_id' when calling accept_shielded_integrity_policy." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/actions/acceptShieldedIntegrityPolicy'.sub('{instanceId}', instance_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: 'ComputeClient#accept_shielded_integrity_policy') 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_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Click here to see an example of how to use add_image_shape_compatibility_entry API.
Adds a shape to the compatible shapes list for the image.
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 220 221 222 223 |
# File 'lib/oci/core/compute_client.rb', line 186 def add_image_shape_compatibility_entry(image_id, shape_name, opts = {}) logger.debug 'Calling operation ComputeClient#add_image_shape_compatibility_entry.' if logger raise "Missing the required parameter 'image_id' when calling add_image_shape_compatibility_entry." if image_id.nil? raise "Missing the required parameter 'shape_name' when calling add_image_shape_compatibility_entry." if shape_name.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) raise "Parameter value for 'shape_name' must not be blank" if OCI::Internal::Util.blank_string?(shape_name) path = '/images/{imageId}/shapes/{shapeName}'.sub('{imageId}', image_id.to_s).sub('{shapeName}', shape_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 = @api_client.object_to_http_body(opts[:add_image_shape_compatibility_entry_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#add_image_shape_compatibility_entry') 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::ImageShapeCompatibilityEntry' ) end # rubocop:enable Metrics/BlockLength end |
#attach_boot_volume(attach_boot_volume_details, opts = {}) ⇒ Response
Click here to see an example of how to use attach_boot_volume API.
Attaches the specified boot volume to the specified instance.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/oci/core/compute_client.rb', line 247 def attach_boot_volume(attach_boot_volume_details, opts = {}) logger.debug 'Calling operation ComputeClient#attach_boot_volume.' if logger raise "Missing the required parameter 'attach_boot_volume_details' when calling attach_boot_volume." if attach_boot_volume_details.nil? path = '/bootVolumeAttachments/' operation_signing_strategy = :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(attach_boot_volume_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#attach_boot_volume') 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::BootVolumeAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#attach_compute_host_group_host(compute_host_id, attach_compute_host_group_host_details, opts = {}) ⇒ Response
Click here to see an example of how to use attach_compute_host_group_host API.
Attaches the Compute BM Host to a Host group
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/oci/core/compute_client.rb', line 315 def attach_compute_host_group_host(compute_host_id, attach_compute_host_group_host_details, opts = {}) logger.debug 'Calling operation ComputeClient#attach_compute_host_group_host.' if logger raise "Missing the required parameter 'compute_host_id' when calling attach_compute_host_group_host." if compute_host_id.nil? raise "Missing the required parameter 'attach_compute_host_group_host_details' when calling attach_compute_host_group_host." if attach_compute_host_group_host_details.nil? raise "Parameter value for 'compute_host_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_id) path = '/computeHosts/{computeHostId}/actions/attachToHostGroup'.sub('{computeHostId}', compute_host_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(attach_compute_host_group_host_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#attach_compute_host_group_host') 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::ComputeHost' ) end # rubocop:enable Metrics/BlockLength end |
#attach_vnic(attach_vnic_details, opts = {}) ⇒ Response
Click here to see an example of how to use attach_vnic API.
Creates a secondary VNIC and attaches it to the specified instance. For more information about secondary VNICs, see Virtual Network Interface Cards (VNICs).
381 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 |
# File 'lib/oci/core/compute_client.rb', line 381 def attach_vnic(attach_vnic_details, opts = {}) logger.debug 'Calling operation ComputeClient#attach_vnic.' if logger raise "Missing the required parameter 'attach_vnic_details' when calling attach_vnic." if attach_vnic_details.nil? path = '/vnicAttachments/' operation_signing_strategy = :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(attach_vnic_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#attach_vnic') 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::VnicAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#attach_volume(attach_volume_details, opts = {}) ⇒ Response
Click here to see an example of how to use attach_volume API.
Attaches the specified storage volume to the specified instance.
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/oci/core/compute_client.rb', line 441 def attach_volume(attach_volume_details, opts = {}) logger.debug 'Calling operation ComputeClient#attach_volume.' if logger raise "Missing the required parameter 'attach_volume_details' when calling attach_volume." if attach_volume_details.nil? path = '/volumeAttachments/' operation_signing_strategy = :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(attach_volume_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#attach_volume') 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::VolumeAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#capture_console_history(capture_console_history_details, opts = {}) ⇒ Response
Click here to see an example of how to use capture_console_history API.
Captures the most recent serial console data (up to a megabyte) for the specified instance.
The CaptureConsoleHistory
operation works with the other console history operations as described below.
-
Use
CaptureConsoleHistory
to request the capture of up to a megabyte of the most recent console history. This call returns aConsoleHistory
object. The object will have a state of REQUESTED. -
Wait for the capture operation to succeed by polling
GetConsoleHistory
with the identifier of the console history metadata. The state of theConsoleHistory
object will go from REQUESTED to GETTING-HISTORY and then SUCCEEDED (or FAILED). -
Use
GetConsoleHistoryContent
to get the actual console history data (not the metadata). -
Optionally, use
DeleteConsoleHistory
to delete the console history metadata and the console history data.
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/oci/core/compute_client.rb', line 517 def capture_console_history(capture_console_history_details, opts = {}) logger.debug 'Calling operation ComputeClient#capture_console_history.' if logger raise "Missing the required parameter 'capture_console_history_details' when calling capture_console_history." if capture_console_history_details.nil? path = '/instanceConsoleHistories/' operation_signing_strategy = :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(capture_console_history_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#capture_console_history') 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::ConsoleHistory' ) end # rubocop:enable Metrics/BlockLength end |
#change_compute_capacity_reservation_compartment(capacity_reservation_id, change_compute_capacity_reservation_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_capacity_reservation_compartment API.
Moves a compute capacity reservation into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/oci/core/compute_client.rb', line 587 def change_compute_capacity_reservation_compartment(capacity_reservation_id, change_compute_capacity_reservation_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_capacity_reservation_compartment.' if logger raise "Missing the required parameter 'capacity_reservation_id' when calling change_compute_capacity_reservation_compartment." if capacity_reservation_id.nil? raise "Missing the required parameter 'change_compute_capacity_reservation_compartment_details' when calling change_compute_capacity_reservation_compartment." if change_compute_capacity_reservation_compartment_details.nil? raise "Parameter value for 'capacity_reservation_id' must not be blank" if OCI::Internal::Util.blank_string?(capacity_reservation_id) path = '/computeCapacityReservations/{capacityReservationId}/actions/changeCompartment'.sub('{capacityReservationId}', capacity_reservation_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_compute_capacity_reservation_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_capacity_reservation_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_compute_capacity_topology_compartment(compute_capacity_topology_id, change_compute_capacity_topology_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_capacity_topology_compartment API.
Moves a compute capacity topology into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/oci/core/compute_client.rb', line 659 def change_compute_capacity_topology_compartment(compute_capacity_topology_id, change_compute_capacity_topology_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_capacity_topology_compartment.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling change_compute_capacity_topology_compartment." if compute_capacity_topology_id.nil? raise "Missing the required parameter 'change_compute_capacity_topology_compartment_details' when calling change_compute_capacity_topology_compartment." if change_compute_capacity_topology_compartment_details.nil? raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}/actions/changeCompartment'.sub('{computeCapacityTopologyId}', compute_capacity_topology_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_compute_capacity_topology_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_capacity_topology_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_compute_cluster_compartment(compute_cluster_id, change_compute_cluster_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_cluster_compartment API.
Moves a compute cluster into a different compartment within the same tenancy. A compute cluster is a remote direct memory access (RDMA) network group.
For information about moving resources between compartments, see Moving Resources to a Different Compartment.
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/oci/core/compute_client.rb', line 737 def change_compute_cluster_compartment(compute_cluster_id, change_compute_cluster_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_cluster_compartment.' if logger raise "Missing the required parameter 'compute_cluster_id' when calling change_compute_cluster_compartment." if compute_cluster_id.nil? raise "Missing the required parameter 'change_compute_cluster_compartment_details' when calling change_compute_cluster_compartment." if change_compute_cluster_compartment_details.nil? raise "Parameter value for 'compute_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_cluster_id) path = '/computeClusters/{computeClusterId}/actions/changeCompartment'.sub('{computeClusterId}', compute_cluster_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_compute_cluster_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_cluster_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_compute_gpu_memory_cluster_compartment(compute_gpu_memory_cluster_id, change_compute_gpu_memory_cluster_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_gpu_memory_cluster_compartment API.
Moves a compute GPU memory cluster into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/oci/core/compute_client.rb', line 809 def change_compute_gpu_memory_cluster_compartment(compute_gpu_memory_cluster_id, change_compute_gpu_memory_cluster_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_gpu_memory_cluster_compartment.' if logger raise "Missing the required parameter 'compute_gpu_memory_cluster_id' when calling change_compute_gpu_memory_cluster_compartment." if compute_gpu_memory_cluster_id.nil? raise "Missing the required parameter 'change_compute_gpu_memory_cluster_compartment_details' when calling change_compute_gpu_memory_cluster_compartment." if change_compute_gpu_memory_cluster_compartment_details.nil? raise "Parameter value for 'compute_gpu_memory_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_cluster_id) path = '/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/actions/changeCompartment'.sub('{computeGpuMemoryClusterId}', compute_gpu_memory_cluster_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_compute_gpu_memory_cluster_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_gpu_memory_cluster_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_compute_gpu_memory_fabric_compartment(compute_gpu_memory_fabric_id, change_compute_gpu_memory_fabric_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_gpu_memory_fabric_compartment API.
Moves a compute GPU memory fabric into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'lib/oci/core/compute_client.rb', line 881 def change_compute_gpu_memory_fabric_compartment(compute_gpu_memory_fabric_id, change_compute_gpu_memory_fabric_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_gpu_memory_fabric_compartment.' if logger raise "Missing the required parameter 'compute_gpu_memory_fabric_id' when calling change_compute_gpu_memory_fabric_compartment." if compute_gpu_memory_fabric_id.nil? raise "Missing the required parameter 'change_compute_gpu_memory_fabric_compartment_details' when calling change_compute_gpu_memory_fabric_compartment." if change_compute_gpu_memory_fabric_compartment_details.nil? raise "Parameter value for 'compute_gpu_memory_fabric_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_fabric_id) path = '/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}/actions/changeCompartment'.sub('{computeGpuMemoryFabricId}', compute_gpu_memory_fabric_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_compute_gpu_memory_fabric_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_gpu_memory_fabric_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_compute_host_compartment(compute_host_id, change_compute_host_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_host_compartment API.
Moves a compute host into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/oci/core/compute_client.rb', line 954 def change_compute_host_compartment(compute_host_id, change_compute_host_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_host_compartment.' if logger raise "Missing the required parameter 'compute_host_id' when calling change_compute_host_compartment." if compute_host_id.nil? raise "Missing the required parameter 'change_compute_host_compartment_details' when calling change_compute_host_compartment." if change_compute_host_compartment_details.nil? raise "Parameter value for 'compute_host_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_id) path = '/computeHosts/{computeHostId}/actions/changeCompartment'.sub('{computeHostId}', compute_host_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_compute_host_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_host_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_compute_host_group_compartment(compute_host_group_id, change_compute_host_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_host_group_compartment API.
Moves a compute host group into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'lib/oci/core/compute_client.rb', line 1027 def change_compute_host_group_compartment(compute_host_group_id, change_compute_host_group_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_host_group_compartment.' if logger raise "Missing the required parameter 'compute_host_group_id' when calling change_compute_host_group_compartment." if compute_host_group_id.nil? raise "Missing the required parameter 'change_compute_host_group_compartment_details' when calling change_compute_host_group_compartment." if change_compute_host_group_compartment_details.nil? raise "Parameter value for 'compute_host_group_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_group_id) path = '/computeHostGroups/{computeHostGroupId}/actions/changeCompartment'.sub('{computeHostGroupId}', compute_host_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] 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_compute_host_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_host_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_compute_image_capability_schema_compartment(compute_image_capability_schema_id, change_compute_image_capability_schema_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_compute_image_capability_schema_compartment API.
Moves a compute image capability schema into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 |
# File 'lib/oci/core/compute_client.rb', line 1100 def change_compute_image_capability_schema_compartment(compute_image_capability_schema_id, change_compute_image_capability_schema_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_compute_image_capability_schema_compartment.' if logger raise "Missing the required parameter 'compute_image_capability_schema_id' when calling change_compute_image_capability_schema_compartment." if compute_image_capability_schema_id.nil? raise "Missing the required parameter 'change_compute_image_capability_schema_compartment_details' when calling change_compute_image_capability_schema_compartment." if change_compute_image_capability_schema_compartment_details.nil? raise "Parameter value for 'compute_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_image_capability_schema_id) path = '/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}/actions/changeCompartment'.sub('{computeImageCapabilitySchemaId}', compute_image_capability_schema_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_compute_image_capability_schema_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_compute_image_capability_schema_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_dedicated_vm_host_compartment(dedicated_vm_host_id, change_dedicated_vm_host_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_dedicated_vm_host_compartment API.
Moves a dedicated virtual machine host from one compartment to another.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 |
# File 'lib/oci/core/compute_client.rb', line 1170 def change_dedicated_vm_host_compartment(dedicated_vm_host_id, change_dedicated_vm_host_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_dedicated_vm_host_compartment.' if logger raise "Missing the required parameter 'dedicated_vm_host_id' when calling change_dedicated_vm_host_compartment." if dedicated_vm_host_id.nil? raise "Missing the required parameter 'change_dedicated_vm_host_compartment_details' when calling change_dedicated_vm_host_compartment." if change_dedicated_vm_host_compartment_details.nil? raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id) path = '/dedicatedVmHosts/{dedicatedVmHostId}/actions/changeCompartment'.sub('{dedicatedVmHostId}', dedicated_vm_host_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_dedicated_vm_host_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_dedicated_vm_host_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_image_compartment(image_id, change_image_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_image_compartment API.
Moves an image into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 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 |
# File 'lib/oci/core/compute_client.rb', line 1243 def change_image_compartment(image_id, change_image_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_image_compartment.' if logger raise "Missing the required parameter 'image_id' when calling change_image_compartment." if image_id.nil? raise "Missing the required parameter 'change_image_compartment_details' when calling change_image_compartment." if change_image_compartment_details.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}/actions/changeCompartment'.sub('{imageId}', image_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_image_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_image_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_instance_compartment(instance_id, change_instance_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_instance_compartment API.
Moves an instance into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
When you move an instance to a different compartment, associated resources such as boot volumes and VNICs are not moved.
1319 1320 1321 1322 1323 1324 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 |
# File 'lib/oci/core/compute_client.rb', line 1319 def change_instance_compartment(instance_id, change_instance_compartment_details, opts = {}) logger.debug 'Calling operation ComputeClient#change_instance_compartment.' if logger raise "Missing the required parameter 'instance_id' when calling change_instance_compartment." if instance_id.nil? raise "Missing the required parameter 'change_instance_compartment_details' when calling change_instance_compartment." if change_instance_compartment_details.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/actions/changeCompartment'.sub('{instanceId}', instance_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_instance_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#change_instance_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 |
#create_app_catalog_subscription(create_app_catalog_subscription_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_app_catalog_subscription API.
Create a subscription for listing resource version for a compartment. It will take some time to propagate to all regions.
1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 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 |
# File 'lib/oci/core/compute_client.rb', line 1382 def create_app_catalog_subscription(create_app_catalog_subscription_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_app_catalog_subscription.' if logger raise "Missing the required parameter 'create_app_catalog_subscription_details' when calling create_app_catalog_subscription." if create_app_catalog_subscription_details.nil? path = '/appCatalogSubscriptions' operation_signing_strategy = :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_app_catalog_subscription_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_app_catalog_subscription') 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::AppCatalogSubscription' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_capacity_report(create_compute_capacity_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_capacity_report API.
Generates a report of the host capacity within an availability domain that is available for you to create compute instances. Host capacity is the physical infrastructure that resources such as compute instances run on.
Use the capacity report to determine whether sufficient capacity is available for a shape before you create an instance or change the shape of an instance.
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 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 |
# File 'lib/oci/core/compute_client.rb', line 1451 def create_compute_capacity_report(create_compute_capacity_report_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_capacity_report.' if logger raise "Missing the required parameter 'create_compute_capacity_report_details' when calling create_compute_capacity_report." if create_compute_capacity_report_details.nil? path = '/computeCapacityReports' operation_signing_strategy = :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_compute_capacity_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_capacity_report') 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::ComputeCapacityReport' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_capacity_reservation(create_compute_capacity_reservation_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_capacity_reservation API.
Creates a new compute capacity reservation in the specified compartment and availability domain. Compute capacity reservations let you reserve instances in a compartment. When you launch an instance using this reservation, you are assured that you have enough space for your instance, and you won't get out of capacity errors. For more information, see Reserved Capacity.
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/oci/core/compute_client.rb', line 1522 def create_compute_capacity_reservation(create_compute_capacity_reservation_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_capacity_reservation.' if logger raise "Missing the required parameter 'create_compute_capacity_reservation_details' when calling create_compute_capacity_reservation." if create_compute_capacity_reservation_details.nil? path = '/computeCapacityReservations' operation_signing_strategy = :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_compute_capacity_reservation_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_capacity_reservation') 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::ComputeCapacityReservation' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_capacity_topology(create_compute_capacity_topology_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_capacity_topology API.
Creates a new compute capacity topology in the specified compartment and availability domain.
Compute capacity topologies provide the RDMA network topology of your bare metal hosts so that you can launch instances on your bare metal hosts with targeted network locations.
Compute capacity topologies report the health status of your bare metal hosts.
1592 1593 1594 1595 1596 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 |
# File 'lib/oci/core/compute_client.rb', line 1592 def create_compute_capacity_topology(create_compute_capacity_topology_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_capacity_topology.' if logger raise "Missing the required parameter 'create_compute_capacity_topology_details' when calling create_compute_capacity_topology." if create_compute_capacity_topology_details.nil? path = '/computeCapacityTopologies' operation_signing_strategy = :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_compute_capacity_topology_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_capacity_topology') 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::ComputeCapacityTopology' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_cluster(create_compute_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_cluster API.
Creates an empty compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
After the compute cluster is created, you can use the compute cluster's OCID with the launch_instance operation to create instances in the compute cluster. The instances must be created in the same compartment and availability domain as the cluster.
Use compute clusters when you want to manage instances in the cluster individually in the RDMA network group.
If you want predictable capacity for a specific number of identical instances that are managed as a group, create a cluster network that uses instance pools by using the create_cluster_network operation.
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 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 |
# File 'lib/oci/core/compute_client.rb', line 1678 def create_compute_cluster(create_compute_cluster_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_cluster.' if logger raise "Missing the required parameter 'create_compute_cluster_details' when calling create_compute_cluster." if create_compute_cluster_details.nil? path = '/computeClusters' operation_signing_strategy = :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_compute_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_cluster') 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::ComputeCluster' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_gpu_memory_cluster(create_compute_gpu_memory_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_gpu_memory_cluster API.
Create a compute GPU memory cluster instance on a specific compute GPU memory fabric
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 |
# File 'lib/oci/core/compute_client.rb', line 1742 def create_compute_gpu_memory_cluster(create_compute_gpu_memory_cluster_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_gpu_memory_cluster.' if logger raise "Missing the required parameter 'create_compute_gpu_memory_cluster_details' when calling create_compute_gpu_memory_cluster." if create_compute_gpu_memory_cluster_details.nil? path = '/computeGpuMemoryClusters' operation_signing_strategy = :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_compute_gpu_memory_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_gpu_memory_cluster') 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::ComputeGpuMemoryCluster' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_host_group(create_compute_host_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_host_group API.
Creates a new compute host group in the specified compartment and availability domain.
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 1842 |
# File 'lib/oci/core/compute_client.rb', line 1805 def create_compute_host_group(create_compute_host_group_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_host_group.' if logger raise "Missing the required parameter 'create_compute_host_group_details' when calling create_compute_host_group." if create_compute_host_group_details.nil? path = '/computeHostGroups' operation_signing_strategy = :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_compute_host_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_host_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::ComputeHostGroup' ) end # rubocop:enable Metrics/BlockLength end |
#create_compute_image_capability_schema(create_compute_image_capability_schema_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_compute_image_capability_schema API.
Creates compute image capability schema.
1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 |
# File 'lib/oci/core/compute_client.rb', line 1866 def create_compute_image_capability_schema(create_compute_image_capability_schema_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_compute_image_capability_schema.' if logger raise "Missing the required parameter 'create_compute_image_capability_schema_details' when calling create_compute_image_capability_schema." if create_compute_image_capability_schema_details.nil? path = '/computeImageCapabilitySchemas' operation_signing_strategy = :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_compute_image_capability_schema_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_compute_image_capability_schema') 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::ComputeImageCapabilitySchema' ) end # rubocop:enable Metrics/BlockLength end |
#create_dedicated_vm_host(create_dedicated_vm_host_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_dedicated_vm_host API.
Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain. Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers that are a single tenant and not shared with other customers. For more information, see Dedicated Virtual Machine Hosts.
1932 1933 1934 1935 1936 1937 1938 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 |
# File 'lib/oci/core/compute_client.rb', line 1932 def create_dedicated_vm_host(create_dedicated_vm_host_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_dedicated_vm_host.' if logger raise "Missing the required parameter 'create_dedicated_vm_host_details' when calling create_dedicated_vm_host." if create_dedicated_vm_host_details.nil? path = '/dedicatedVmHosts' operation_signing_strategy = :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_dedicated_vm_host_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_dedicated_vm_host') 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::DedicatedVmHost' ) end # rubocop:enable Metrics/BlockLength end |
#create_image(create_image_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_image API.
Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service.
When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and the OCID of the compartment containing that instance. For more information about images, see Managing Custom Images.
When importing an exported image from Object Storage, you specify the source information in image_source_details.
When importing an image based on the namespace, bucket name, and object name, use image_source_via_object_storage_tuple_details.
When importing an image based on the Object Storage URL, use image_source_via_object_storage_uri_details. See Object Storage URLs and Using Pre-Authenticated Requests for constructing URLs for image import/export.
For more information about importing exported images, see Image Import/Export.
You may optionally specify a display name for the image, which is simply a friendly name or description. It does not have to be unique, and you can change it. See update_image. Avoid entering confidential information.
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 2046 2047 2048 2049 2050 2051 |
# File 'lib/oci/core/compute_client.rb', line 2015 def create_image(create_image_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_image.' if logger raise "Missing the required parameter 'create_image_details' when calling create_image." if create_image_details.nil? path = '/images' operation_signing_strategy = :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_image_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_image') 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::Image' ) end # rubocop:enable Metrics/BlockLength end |
#create_instance_console_connection(create_instance_console_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_instance_console_connection API.
Creates a new console connection to the specified instance. After the console connection has been created and is available, you connect to the console using SSH.
For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections.
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 2114 2115 |
# File 'lib/oci/core/compute_client.rb', line 2079 def create_instance_console_connection(create_instance_console_connection_details, opts = {}) logger.debug 'Calling operation ComputeClient#create_instance_console_connection.' if logger raise "Missing the required parameter 'create_instance_console_connection_details' when calling create_instance_console_connection." if create_instance_console_connection_details.nil? path = '/instanceConsoleConnections' operation_signing_strategy = :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_instance_console_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#create_instance_console_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::InstanceConsoleConnection' ) end # rubocop:enable Metrics/BlockLength end |
#delete_app_catalog_subscription(listing_id, compartment_id, resource_version, opts = {}) ⇒ Response
Click here to see an example of how to use delete_app_catalog_subscription API.
Delete a subscription for a listing resource version for a compartment.
2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 |
# File 'lib/oci/core/compute_client.rb', line 2135 def delete_app_catalog_subscription(listing_id, compartment_id, resource_version, opts = {}) logger.debug 'Calling operation ComputeClient#delete_app_catalog_subscription.' if logger raise "Missing the required parameter 'listing_id' when calling delete_app_catalog_subscription." if listing_id.nil? raise "Missing the required parameter 'compartment_id' when calling delete_app_catalog_subscription." if compartment_id.nil? raise "Missing the required parameter 'resource_version' when calling delete_app_catalog_subscription." if resource_version.nil? path = '/appCatalogSubscriptions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:listingId] = listing_id query_params[:compartmentId] = compartment_id query_params[:resourceVersion] = resource_version # 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: 'ComputeClient#delete_app_catalog_subscription') 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_compute_capacity_reservation(capacity_reservation_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_capacity_reservation API.
Deletes the specified compute capacity reservation.
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/oci/core/compute_client.rb', line 2198 def delete_compute_capacity_reservation(capacity_reservation_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_capacity_reservation.' if logger raise "Missing the required parameter 'capacity_reservation_id' when calling delete_compute_capacity_reservation." if capacity_reservation_id.nil? raise "Parameter value for 'capacity_reservation_id' must not be blank" if OCI::Internal::Util.blank_string?(capacity_reservation_id) path = '/computeCapacityReservations/{capacityReservationId}'.sub('{capacityReservationId}', capacity_reservation_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: 'ComputeClient#delete_compute_capacity_reservation') 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_compute_capacity_topology(compute_capacity_topology_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_capacity_topology API.
Deletes the specified compute capacity topology.
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 |
# File 'lib/oci/core/compute_client.rb', line 2258 def delete_compute_capacity_topology(compute_capacity_topology_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_capacity_topology.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling delete_compute_capacity_topology." if compute_capacity_topology_id.nil? raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}'.sub('{computeCapacityTopologyId}', compute_capacity_topology_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: 'ComputeClient#delete_compute_capacity_topology') 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_compute_cluster(compute_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_cluster API.
Deletes a compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
Before you delete a compute cluster, first delete all instances in the cluster by using the terminate_instance operation.
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 |
# File 'lib/oci/core/compute_client.rb', line 2326 def delete_compute_cluster(compute_cluster_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_cluster.' if logger raise "Missing the required parameter 'compute_cluster_id' when calling delete_compute_cluster." if compute_cluster_id.nil? raise "Parameter value for 'compute_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_cluster_id) path = '/computeClusters/{computeClusterId}'.sub('{computeClusterId}', compute_cluster_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: 'ComputeClient#delete_compute_cluster') 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_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_gpu_memory_cluster API.
Terminates and deletes the specified compute GPU memory cluster and underlying instances.
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 |
# File 'lib/oci/core/compute_client.rb', line 2386 def delete_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_gpu_memory_cluster.' if logger raise "Missing the required parameter 'compute_gpu_memory_cluster_id' when calling delete_compute_gpu_memory_cluster." if compute_gpu_memory_cluster_id.nil? raise "Parameter value for 'compute_gpu_memory_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_cluster_id) path = '/computeGpuMemoryClusters/{computeGpuMemoryClusterId}'.sub('{computeGpuMemoryClusterId}', compute_gpu_memory_cluster_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: 'ComputeClient#delete_compute_gpu_memory_cluster') 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_compute_host_group(compute_host_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_host_group API.
Deletes the specified compute host group
2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 |
# File 'lib/oci/core/compute_client.rb', line 2447 def delete_compute_host_group(compute_host_group_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_host_group.' if logger raise "Missing the required parameter 'compute_host_group_id' when calling delete_compute_host_group." if compute_host_group_id.nil? raise "Parameter value for 'compute_host_group_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_group_id) path = '/computeHostGroups/{computeHostGroupId}'.sub('{computeHostGroupId}', compute_host_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[:'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: 'ComputeClient#delete_compute_host_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_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_compute_image_capability_schema API.
Deletes the specified Compute Image Capability Schema
2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 |
# File 'lib/oci/core/compute_client.rb', line 2505 def delete_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_compute_image_capability_schema.' if logger raise "Missing the required parameter 'compute_image_capability_schema_id' when calling delete_compute_image_capability_schema." if compute_image_capability_schema_id.nil? raise "Parameter value for 'compute_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_image_capability_schema_id) path = '/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}'.sub('{computeImageCapabilitySchemaId}', compute_image_capability_schema_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: 'ComputeClient#delete_compute_image_capability_schema') 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_console_history(instance_console_history_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_console_history API.
Deletes the specified console history metadata and the console history data.
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 2590 2591 2592 2593 2594 2595 2596 2597 |
# File 'lib/oci/core/compute_client.rb', line 2562 def delete_console_history(instance_console_history_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_console_history.' if logger raise "Missing the required parameter 'instance_console_history_id' when calling delete_console_history." if instance_console_history_id.nil? raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id) path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_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: 'ComputeClient#delete_console_history') 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_dedicated_vm_host(dedicated_vm_host_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_dedicated_vm_host API.
Deletes the specified dedicated virtual machine host.
If any VM instances are assigned to the dedicated virtual machine host, the delete operation will fail and the service will return a 409 response code.
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 2655 2656 |
# File 'lib/oci/core/compute_client.rb', line 2621 def delete_dedicated_vm_host(dedicated_vm_host_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_dedicated_vm_host.' if logger raise "Missing the required parameter 'dedicated_vm_host_id' when calling delete_dedicated_vm_host." if dedicated_vm_host_id.nil? raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id) path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_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: 'ComputeClient#delete_dedicated_vm_host') 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_image(image_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_image API.
Deletes an image.
2677 2678 2679 2680 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 |
# File 'lib/oci/core/compute_client.rb', line 2677 def delete_image(image_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_image.' if logger raise "Missing the required parameter 'image_id' when calling delete_image." if image_id.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}'.sub('{imageId}', image_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: 'ComputeClient#delete_image') 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_instance_console_connection(instance_console_connection_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_instance_console_connection API.
Deletes the specified instance console connection.
2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 |
# File 'lib/oci/core/compute_client.rb', line 2733 def delete_instance_console_connection(instance_console_connection_id, opts = {}) logger.debug 'Calling operation ComputeClient#delete_instance_console_connection.' if logger raise "Missing the required parameter 'instance_console_connection_id' when calling delete_instance_console_connection." if instance_console_connection_id.nil? raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_connection_id) path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_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: 'ComputeClient#delete_instance_console_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 |
#detach_boot_volume(boot_volume_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use detach_boot_volume API.
Detaches a boot volume from an instance. You must specify the OCID of the boot volume attachment.
This is an asynchronous operation. The attachment's lifecycleState
will change to DETACHING temporarily until the attachment is completely removed.
2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 |
# File 'lib/oci/core/compute_client.rb', line 2793 def detach_boot_volume(, opts = {}) logger.debug 'Calling operation ComputeClient#detach_boot_volume.' if logger raise "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if .nil? raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', .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: 'ComputeClient#detach_boot_volume') 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_compute_host_group_host(compute_host_id, detach_compute_host_group_host_details, opts = {}) ⇒ Response
Click here to see an example of how to use detach_compute_host_group_host API.
Detaches the specified bare metal host from the compute host group
2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 |
# File 'lib/oci/core/compute_client.rb', line 2860 def detach_compute_host_group_host(compute_host_id, detach_compute_host_group_host_details, opts = {}) logger.debug 'Calling operation ComputeClient#detach_compute_host_group_host.' if logger raise "Missing the required parameter 'compute_host_id' when calling detach_compute_host_group_host." if compute_host_id.nil? raise "Missing the required parameter 'detach_compute_host_group_host_details' when calling detach_compute_host_group_host." if detach_compute_host_group_host_details.nil? raise "Parameter value for 'compute_host_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_id) path = '/computeHosts/{computeHostId}/actions/detachFromHostGroup'.sub('{computeHostId}', compute_host_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(detach_compute_host_group_host_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#detach_compute_host_group_host') 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 |
#detach_vnic(vnic_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use detach_vnic API.
Detaches and deletes the specified secondary VNIC. This operation cannot be used on the instance's primary VNIC. When you terminate an instance, all attached VNICs (primary and secondary) are automatically detached and deleted.
Important: If the VNIC has a PrivateIp} that is the {target of a route rule, deleting the VNIC causes that route rule to blackhole and the traffic will be dropped.
2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 |
# File 'lib/oci/core/compute_client.rb', line 2930 def detach_vnic(, opts = {}) logger.debug 'Calling operation ComputeClient#detach_vnic.' if logger raise "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if .nil? raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', .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: 'ComputeClient#detach_vnic') 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_volume(volume_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use detach_volume API.
Detaches a storage volume from an instance. You must specify the OCID of the volume attachment.
This is an asynchronous operation. The attachment's lifecycleState
will change to DETACHING temporarily until the attachment is completely removed.
2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 |
# File 'lib/oci/core/compute_client.rb', line 2990 def detach_volume(, opts = {}) logger.debug 'Calling operation ComputeClient#detach_volume.' if logger raise "Missing the required parameter 'volume_attachment_id' when calling detach_volume." if .nil? raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', .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: 'ComputeClient#detach_volume') 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 |
#export_image(image_id, export_image_details, opts = {}) ⇒ Response
Click here to see an example of how to use export_image API.
Exports the specified image to the Oracle Cloud Infrastructure Object Storage service. You can use the Object Storage URL, or the namespace, bucket name, and object name when specifying the location to export to.
For more information about exporting images, see Image Import/Export.
To perform an image export, you need write access to the Object Storage bucket for the image, see Let Users Write Objects to Object Storage Buckets.
See Object Storage URLs and Using Pre-Authenticated Requests for constructing URLs for image import/export.
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 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 |
# File 'lib/oci/core/compute_client.rb', line 3063 def export_image(image_id, export_image_details, opts = {}) logger.debug 'Calling operation ComputeClient#export_image.' if logger raise "Missing the required parameter 'image_id' when calling export_image." if image_id.nil? raise "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}/actions/export'.sub('{imageId}', image_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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(export_image_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#export_image') 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::Image' ) end # rubocop:enable Metrics/BlockLength end |
#get_app_catalog_listing(listing_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_app_catalog_listing API.
Gets the specified listing.
3120 3121 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 |
# File 'lib/oci/core/compute_client.rb', line 3120 def get_app_catalog_listing(listing_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_app_catalog_listing.' if logger raise "Missing the required parameter 'listing_id' when calling get_app_catalog_listing." if listing_id.nil? raise "Parameter value for 'listing_id' must not be blank" if OCI::Internal::Util.blank_string?(listing_id) path = '/appCatalogListings/{listingId}'.sub('{listingId}', listing_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: 'ComputeClient#get_app_catalog_listing') 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::AppCatalogListing' ) end # rubocop:enable Metrics/BlockLength end |
#get_app_catalog_listing_agreements(listing_id, resource_version, opts = {}) ⇒ Response
Click here to see an example of how to use get_app_catalog_listing_agreements API.
Retrieves the agreements for a particular resource version of a listing.
3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 |
# File 'lib/oci/core/compute_client.rb', line 3175 def get_app_catalog_listing_agreements(listing_id, resource_version, opts = {}) logger.debug 'Calling operation ComputeClient#get_app_catalog_listing_agreements.' if logger raise "Missing the required parameter 'listing_id' when calling get_app_catalog_listing_agreements." if listing_id.nil? raise "Missing the required parameter 'resource_version' when calling get_app_catalog_listing_agreements." if resource_version.nil? raise "Parameter value for 'listing_id' must not be blank" if OCI::Internal::Util.blank_string?(listing_id) raise "Parameter value for 'resource_version' must not be blank" if OCI::Internal::Util.blank_string?(resource_version) path = '/appCatalogListings/{listingId}/resourceVersions/{resourceVersion}/agreements'.sub('{listingId}', listing_id.to_s).sub('{resourceVersion}', resource_version.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: 'ComputeClient#get_app_catalog_listing_agreements') 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::AppCatalogListingResourceVersionAgreements' ) end # rubocop:enable Metrics/BlockLength end |
#get_app_catalog_listing_resource_version(listing_id, resource_version, opts = {}) ⇒ Response
Click here to see an example of how to use get_app_catalog_listing_resource_version API.
Gets the specified listing resource version.
3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 |
# File 'lib/oci/core/compute_client.rb', line 3232 def get_app_catalog_listing_resource_version(listing_id, resource_version, opts = {}) logger.debug 'Calling operation ComputeClient#get_app_catalog_listing_resource_version.' if logger raise "Missing the required parameter 'listing_id' when calling get_app_catalog_listing_resource_version." if listing_id.nil? raise "Missing the required parameter 'resource_version' when calling get_app_catalog_listing_resource_version." if resource_version.nil? raise "Parameter value for 'listing_id' must not be blank" if OCI::Internal::Util.blank_string?(listing_id) raise "Parameter value for 'resource_version' must not be blank" if OCI::Internal::Util.blank_string?(resource_version) path = '/appCatalogListings/{listingId}/resourceVersions/{resourceVersion}'.sub('{listingId}', listing_id.to_s).sub('{resourceVersion}', resource_version.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: 'ComputeClient#get_app_catalog_listing_resource_version') 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::AppCatalogListingResourceVersion' ) end # rubocop:enable Metrics/BlockLength end |
#get_boot_volume_attachment(boot_volume_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_boot_volume_attachment API.
Gets information about the specified boot volume attachment.
3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 |
# File 'lib/oci/core/compute_client.rb', line 3288 def (, opts = {}) logger.debug 'Calling operation ComputeClient#get_boot_volume_attachment.' if logger raise "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if .nil? raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', .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: 'ComputeClient#get_boot_volume_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::BootVolumeAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_capacity_reservation(capacity_reservation_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_capacity_reservation API.
Gets information about the specified compute capacity reservation.
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 |
# File 'lib/oci/core/compute_client.rb', line 3344 def get_compute_capacity_reservation(capacity_reservation_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_capacity_reservation.' if logger raise "Missing the required parameter 'capacity_reservation_id' when calling get_compute_capacity_reservation." if capacity_reservation_id.nil? raise "Parameter value for 'capacity_reservation_id' must not be blank" if OCI::Internal::Util.blank_string?(capacity_reservation_id) path = '/computeCapacityReservations/{capacityReservationId}'.sub('{capacityReservationId}', capacity_reservation_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: 'ComputeClient#get_compute_capacity_reservation') 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::ComputeCapacityReservation' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_capacity_topology(compute_capacity_topology_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_capacity_topology API.
Gets information about the specified compute capacity topology.
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 3432 3433 3434 3435 3436 |
# File 'lib/oci/core/compute_client.rb', line 3400 def get_compute_capacity_topology(compute_capacity_topology_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_capacity_topology.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling get_compute_capacity_topology." if compute_capacity_topology_id.nil? raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}'.sub('{computeCapacityTopologyId}', compute_capacity_topology_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: 'ComputeClient#get_compute_capacity_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::ComputeCapacityTopology' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_cluster(compute_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_cluster API.
Gets information about a compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 |
# File 'lib/oci/core/compute_client.rb', line 3461 def get_compute_cluster(compute_cluster_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_cluster.' if logger raise "Missing the required parameter 'compute_cluster_id' when calling get_compute_cluster." if compute_cluster_id.nil? raise "Parameter value for 'compute_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_cluster_id) path = '/computeClusters/{computeClusterId}'.sub('{computeClusterId}', compute_cluster_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: 'ComputeClient#get_compute_cluster') 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::ComputeCluster' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_global_image_capability_schema(compute_global_image_capability_schema_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_global_image_capability_schema API.
Gets the specified Compute Global Image Capability Schema
3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 |
# File 'lib/oci/core/compute_client.rb', line 3515 def get_compute_global_image_capability_schema(compute_global_image_capability_schema_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_global_image_capability_schema.' if logger raise "Missing the required parameter 'compute_global_image_capability_schema_id' when calling get_compute_global_image_capability_schema." if compute_global_image_capability_schema_id.nil? raise "Parameter value for 'compute_global_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_global_image_capability_schema_id) path = '/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}'.sub('{computeGlobalImageCapabilitySchemaId}', compute_global_image_capability_schema_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: 'ComputeClient#get_compute_global_image_capability_schema') 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::ComputeGlobalImageCapabilitySchema' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_global_image_capability_schema_version(compute_global_image_capability_schema_id, compute_global_image_capability_schema_version_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_global_image_capability_schema_version API.
Gets the specified Compute Global Image Capability Schema Version
3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 |
# File 'lib/oci/core/compute_client.rb', line 3570 def get_compute_global_image_capability_schema_version(compute_global_image_capability_schema_id, compute_global_image_capability_schema_version_name, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_global_image_capability_schema_version.' if logger raise "Missing the required parameter 'compute_global_image_capability_schema_id' when calling get_compute_global_image_capability_schema_version." if compute_global_image_capability_schema_id.nil? raise "Missing the required parameter 'compute_global_image_capability_schema_version_name' when calling get_compute_global_image_capability_schema_version." if compute_global_image_capability_schema_version_name.nil? raise "Parameter value for 'compute_global_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_global_image_capability_schema_id) raise "Parameter value for 'compute_global_image_capability_schema_version_name' must not be blank" if OCI::Internal::Util.blank_string?(compute_global_image_capability_schema_version_name) path = '/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions/{computeGlobalImageCapabilitySchemaVersionName}'.sub('{computeGlobalImageCapabilitySchemaId}', compute_global_image_capability_schema_id.to_s).sub('{computeGlobalImageCapabilitySchemaVersionName}', compute_global_image_capability_schema_version_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: 'ComputeClient#get_compute_global_image_capability_schema_version') 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::ComputeGlobalImageCapabilitySchemaVersion' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_gpu_memory_cluster API.
Gets information about the specified compute GPU memory cluster
3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 |
# File 'lib/oci/core/compute_client.rb', line 3629 def get_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_gpu_memory_cluster.' if logger raise "Missing the required parameter 'compute_gpu_memory_cluster_id' when calling get_compute_gpu_memory_cluster." if compute_gpu_memory_cluster_id.nil? raise "Parameter value for 'compute_gpu_memory_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_cluster_id) path = '/computeGpuMemoryClusters/{computeGpuMemoryClusterId}'.sub('{computeGpuMemoryClusterId}', compute_gpu_memory_cluster_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: 'ComputeClient#get_compute_gpu_memory_cluster') 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::ComputeGpuMemoryCluster' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_gpu_memory_fabric API.
Gets information about the specified compute GPU memory fabric
3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 |
# File 'lib/oci/core/compute_client.rb', line 3686 def get_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_gpu_memory_fabric.' if logger raise "Missing the required parameter 'compute_gpu_memory_fabric_id' when calling get_compute_gpu_memory_fabric." if compute_gpu_memory_fabric_id.nil? raise "Parameter value for 'compute_gpu_memory_fabric_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_fabric_id) path = '/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}'.sub('{computeGpuMemoryFabricId}', compute_gpu_memory_fabric_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: 'ComputeClient#get_compute_gpu_memory_fabric') 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::ComputeGpuMemoryFabric' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_host(compute_host_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_host API.
Gets information about the specified compute host
3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 |
# File 'lib/oci/core/compute_client.rb', line 3744 def get_compute_host(compute_host_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_host.' if logger raise "Missing the required parameter 'compute_host_id' when calling get_compute_host." if compute_host_id.nil? raise "Parameter value for 'compute_host_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_id) path = '/computeHosts/{computeHostId}'.sub('{computeHostId}', compute_host_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: 'ComputeClient#get_compute_host') 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::ComputeHost' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_host_group(compute_host_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_host_group API.
Gets information about the specified compute host group
3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 |
# File 'lib/oci/core/compute_client.rb', line 3801 def get_compute_host_group(compute_host_group_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_host_group.' if logger raise "Missing the required parameter 'compute_host_group_id' when calling get_compute_host_group." if compute_host_group_id.nil? raise "Parameter value for 'compute_host_group_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_group_id) path = '/computeHostGroups/{computeHostGroupId}'.sub('{computeHostGroupId}', compute_host_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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#get_compute_host_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::ComputeHostGroup' ) end # rubocop:enable Metrics/BlockLength end |
#get_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compute_image_capability_schema API.
Gets the specified Compute Image Capability Schema
3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 |
# File 'lib/oci/core/compute_client.rb', line 3857 def get_compute_image_capability_schema(compute_image_capability_schema_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_compute_image_capability_schema.' if logger raise "Missing the required parameter 'compute_image_capability_schema_id' when calling get_compute_image_capability_schema." if compute_image_capability_schema_id.nil? raise "Parameter value for 'compute_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_image_capability_schema_id) path = '/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}'.sub('{computeImageCapabilitySchemaId}', compute_image_capability_schema_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isMergeEnabled] = opts[:is_merge_enabled] if !opts[:is_merge_enabled].nil? # 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: 'ComputeClient#get_compute_image_capability_schema') 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::ComputeImageCapabilitySchema' ) end # rubocop:enable Metrics/BlockLength end |
#get_console_history(instance_console_history_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_console_history API.
Shows the metadata for the specified console history. See capture_console_history for details about using the console history operations.
3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 |
# File 'lib/oci/core/compute_client.rb', line 3914 def get_console_history(instance_console_history_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_console_history.' if logger raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history." if instance_console_history_id.nil? raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id) path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_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: 'ComputeClient#get_console_history') 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::ConsoleHistory' ) end # rubocop:enable Metrics/BlockLength end |
#get_console_history_content(instance_console_history_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_console_history_content API.
Gets the actual console history data (not the metadata). See capture_console_history for details about using the console history operations.
3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 |
# File 'lib/oci/core/compute_client.rb', line 3972 def get_console_history_content(instance_console_history_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_console_history_content.' if logger raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history_content." if instance_console_history_id.nil? raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id) path = '/instanceConsoleHistories/{instanceConsoleHistoryId}/data'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:offset] = opts[:offset] if opts[:offset] query_params[:length] = opts[:length] if opts[:length] # 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: 'ComputeClient#get_console_history_content') 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: 'String' ) end # rubocop:enable Metrics/BlockLength end |
#get_dedicated_vm_host(dedicated_vm_host_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_dedicated_vm_host API.
Gets information about the specified dedicated virtual machine host.
4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 |
# File 'lib/oci/core/compute_client.rb', line 4029 def get_dedicated_vm_host(dedicated_vm_host_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_dedicated_vm_host.' if logger raise "Missing the required parameter 'dedicated_vm_host_id' when calling get_dedicated_vm_host." if dedicated_vm_host_id.nil? raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id) path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_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: 'ComputeClient#get_dedicated_vm_host') 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::DedicatedVmHost' ) end # rubocop:enable Metrics/BlockLength end |
#get_image(image_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_image API.
Gets the specified image.
4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 |
# File 'lib/oci/core/compute_client.rb', line 4083 def get_image(image_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_image.' if logger raise "Missing the required parameter 'image_id' when calling get_image." if image_id.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}'.sub('{imageId}', image_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: 'ComputeClient#get_image') 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::Image' ) end # rubocop:enable Metrics/BlockLength end |
#get_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_image_shape_compatibility_entry API.
Retrieves an image shape compatibility entry.
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 4177 4178 |
# File 'lib/oci/core/compute_client.rb', line 4140 def get_image_shape_compatibility_entry(image_id, shape_name, opts = {}) logger.debug 'Calling operation ComputeClient#get_image_shape_compatibility_entry.' if logger raise "Missing the required parameter 'image_id' when calling get_image_shape_compatibility_entry." if image_id.nil? raise "Missing the required parameter 'shape_name' when calling get_image_shape_compatibility_entry." if shape_name.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) raise "Parameter value for 'shape_name' must not be blank" if OCI::Internal::Util.blank_string?(shape_name) path = '/images/{imageId}/shapes/{shapeName}'.sub('{imageId}', image_id.to_s).sub('{shapeName}', shape_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' 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: 'ComputeClient#get_image_shape_compatibility_entry') 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::ImageShapeCompatibilityEntry' ) end # rubocop:enable Metrics/BlockLength end |
#get_instance(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_instance API.
Gets information about the specified instance.
Note: To retrieve public and private IP addresses for an instance, use the list_vnic_attachments operation to get the VNIC ID for the instance, and then call get_vnic with the VNIC ID.
4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 |
# File 'lib/oci/core/compute_client.rb', line 4200 def get_instance(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_instance.' if logger raise "Missing the required parameter 'instance_id' when calling get_instance." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}'.sub('{instanceId}', instance_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: 'ComputeClient#get_instance') 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::Instance' ) end # rubocop:enable Metrics/BlockLength end |
#get_instance_console_connection(instance_console_connection_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_instance_console_connection API.
Gets the specified instance console connection's information.
4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 |
# File 'lib/oci/core/compute_client.rb', line 4254 def get_instance_console_connection(instance_console_connection_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_instance_console_connection.' if logger raise "Missing the required parameter 'instance_console_connection_id' when calling get_instance_console_connection." if instance_console_connection_id.nil? raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_connection_id) path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_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: 'ComputeClient#get_instance_console_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::InstanceConsoleConnection' ) end # rubocop:enable Metrics/BlockLength end |
#get_instance_maintenance_event(instance_maintenance_event_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_instance_maintenance_event API.
Gets the maintenance event for the given instance.
4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 |
# File 'lib/oci/core/compute_client.rb', line 4311 def get_instance_maintenance_event(instance_maintenance_event_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_instance_maintenance_event.' if logger raise "Missing the required parameter 'instance_maintenance_event_id' when calling get_instance_maintenance_event." if instance_maintenance_event_id.nil? raise "Parameter value for 'instance_maintenance_event_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_maintenance_event_id) path = '/instanceMaintenanceEvents/{instanceMaintenanceEventId}'.sub('{instanceMaintenanceEventId}', instance_maintenance_event_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: 'ComputeClient#get_instance_maintenance_event') 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::InstanceMaintenanceEvent' ) end # rubocop:enable Metrics/BlockLength end |
#get_instance_maintenance_reboot(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_instance_maintenance_reboot API.
Gets the maximum possible date that a maintenance reboot can be extended. For more information, see Infrastructure Maintenance.
4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 |
# File 'lib/oci/core/compute_client.rb', line 4369 def get_instance_maintenance_reboot(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_instance_maintenance_reboot.' if logger raise "Missing the required parameter 'instance_id' when calling get_instance_maintenance_reboot." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/maintenanceReboot'.sub('{instanceId}', instance_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: 'ComputeClient#get_instance_maintenance_reboot') 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::InstanceMaintenanceReboot' ) end # rubocop:enable Metrics/BlockLength end |
#get_measured_boot_report(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_measured_boot_report API.
Gets the measured boot report for this shielded instance.
4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 |
# File 'lib/oci/core/compute_client.rb', line 4425 def get_measured_boot_report(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_measured_boot_report.' if logger raise "Missing the required parameter 'instance_id' when calling get_measured_boot_report." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/measuredBootReport'.sub('{instanceId}', instance_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: 'ComputeClient#get_measured_boot_report') 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::MeasuredBootReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_vnic_attachment(vnic_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_vnic_attachment API.
Gets the information for the specified VNIC attachment.
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 4510 4511 4512 4513 4514 4515 |
# File 'lib/oci/core/compute_client.rb', line 4480 def (, opts = {}) logger.debug 'Calling operation ComputeClient#get_vnic_attachment.' if logger raise "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if .nil? raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', .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: 'ComputeClient#get_vnic_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::VnicAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#get_volume_attachment(volume_attachment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_volume_attachment API.
Gets information about the specified volume attachment.
4534 4535 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 |
# File 'lib/oci/core/compute_client.rb', line 4534 def (, opts = {}) logger.debug 'Calling operation ComputeClient#get_volume_attachment.' if logger raise "Missing the required parameter 'volume_attachment_id' when calling get_volume_attachment." if .nil? raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', .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: 'ComputeClient#get_volume_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::VolumeAttachment' ) end # rubocop:enable Metrics/BlockLength end |
#get_windows_instance_initial_credentials(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_windows_instance_initial_credentials API.
Gets the generated credentials for the instance. Only works for instances that require a password to log in, such as Windows. For certain operating systems, users will be forced to change the initial credentials.
4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 |
# File 'lib/oci/core/compute_client.rb', line 4590 def get_windows_instance_initial_credentials(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#get_windows_instance_initial_credentials.' if logger raise "Missing the required parameter 'instance_id' when calling get_windows_instance_initial_credentials." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/initialCredentials'.sub('{instanceId}', instance_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: 'ComputeClient#get_windows_instance_initial_credentials') 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::InstanceCredentials' ) end # rubocop:enable Metrics/BlockLength end |
#instance_action(instance_id, action, opts = {}) ⇒ Response
Click here to see an example of how to use instance_action API.
Performs one of the following power actions on the specified instance:
-
START - Powers on the instance.
-
STOP - Powers off the instance.
-
RESET - Powers off the instance and then powers it back on.
-
SOFTSTOP - Gracefully shuts down the instance by sending a shutdown command to the operating system. After waiting 15 minutes for the OS to shut down, the instance is powered off. If the applications that run on the instance take more than 15 minutes to shut down, they could be improperly stopped, resulting in data corruption. To avoid this, manually shut down the instance using the commands available in the OS before you softstop the instance.
-
SOFTRESET - Gracefully reboots the instance by sending a shutdown command to the operating system. After waiting 15 minutes for the OS to shut down, the instance is powered off and then powered back on.
-
SENDDIAGNOSTICINTERRUPT - For advanced users. Caution: Sending a diagnostic interrupt to a live system can cause data corruption or system failure. Sends a diagnostic interrupt that causes the instance's OS to crash and then reboot. Before you send a diagnostic interrupt, you must configure the instance to generate a crash dump file when it crashes. The crash dump captures information about the state of the OS at the time of the crash. After the OS restarts, you can analyze the crash dump to diagnose the issue. For more information, see Sending a Diagnostic Interrupt.
-
DIAGNOSTICREBOOT - Powers off the instance, rebuilds it, and then powers it back on. Before you send a diagnostic reboot, restart the instance's OS, confirm that the instance and networking settings are configured correctly, and try other troubleshooting steps. Use diagnostic reboot as a final attempt to troubleshoot an unreachable instance. For virtual machine (VM) instances only. For more information, see Performing a Diagnostic Reboot.
-
REBOOTMIGRATE - Powers off the instance, moves it to new hardware, and then powers it back on. For more information, see Infrastructure Maintenance.
For more information about managing instance lifecycle states, see Stopping and Starting an Instance.
4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 |
# File 'lib/oci/core/compute_client.rb', line 4697 def instance_action(instance_id, action, opts = {}) logger.debug 'Calling operation ComputeClient#instance_action.' if logger raise "Missing the required parameter 'instance_id' when calling instance_action." if instance_id.nil? raise "Missing the required parameter 'action' when calling instance_action." if action.nil? unless %w[STOP START SOFTRESET RESET SOFTSTOP SENDDIAGNOSTICINTERRUPT DIAGNOSTICREBOOT REBOOTMIGRATE].include?(action) raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET, SOFTSTOP, SENDDIAGNOSTICINTERRUPT, DIAGNOSTICREBOOT, REBOOTMIGRATE." end raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:action] = action # 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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:instance_power_action_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#instance_action') 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::Instance' ) end # rubocop:enable Metrics/BlockLength end |
#launch_instance(launch_instance_details, opts = {}) ⇒ Response
Click here to see an example of how to use launch_instance API.
Creates a new instance in the specified compartment and the specified availability domain. For general information about instances, see Overview of the Compute Service.
For information about access control and compartments, see Overview of the IAM Service.
For information about availability domains, see Regions and Availability Domains. To get a list of availability domains, use the ListAvailabilityDomains
operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console.
To launch an instance using an image or a boot volume use the sourceDetails
parameter in LaunchInstanceDetails.
When you launch an instance, it is automatically attached to a virtual network interface card (VNIC), called the primary VNIC. The VNIC has a private IP address from the subnet's CIDR. You can either assign a private IP address of your choice or let Oracle automatically assign one. You can choose whether the instance has a public IP address. To retrieve the addresses, use the list_vnic_attachments operation to get the VNIC ID for the instance, and then call get_vnic with the VNIC ID.
You can later add secondary VNICs to an instance. For more information, see Virtual Network Interface Cards (VNICs).
To launch an instance from a Marketplace image listing, you must provide the image ID of the listing resource version that you want, but you also must subscribe to the listing before you try to launch the instance. To subscribe to the listing, use the get_app_catalog_listing_agreements operation to get the signature for the terms of use agreement for the desired listing resource version. Then, call create_app_catalog_subscription with the signature. To get the image ID for the LaunchInstance operation, call get_app_catalog_listing_resource_version.
When launching an instance, you may provide the securityAttributes
parameter in LaunchInstanceDetails to manage security attributes via the instance, or in the embedded CreateVnicDetails to manage security attributes via the VNIC directly, but not both. Providing securityAttributes
in both locations will return a 400 Bad Request response.
To determine whether capacity is available for a specific shape before you create an instance, use the create_compute_capacity_report operation.
4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 |
# File 'lib/oci/core/compute_client.rb', line 4812 def launch_instance(launch_instance_details, opts = {}) logger.debug 'Calling operation ComputeClient#launch_instance.' if logger raise "Missing the required parameter 'launch_instance_details' when calling launch_instance." if launch_instance_details.nil? path = '/instances/' operation_signing_strategy = :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(launch_instance_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#launch_instance') 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::Instance' ) end # rubocop:enable Metrics/BlockLength end |
#list_app_catalog_listing_resource_versions(listing_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_app_catalog_listing_resource_versions API.
Gets all resource versions for a particular listing.
4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 |
# File 'lib/oci/core/compute_client.rb', line 4879 def list_app_catalog_listing_resource_versions(listing_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_app_catalog_listing_resource_versions.' if logger raise "Missing the required parameter 'listing_id' when calling list_app_catalog_listing_resource_versions." if listing_id.nil? 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 'listing_id' must not be blank" if OCI::Internal::Util.blank_string?(listing_id) path = '/appCatalogListings/{listingId}/resourceVersions'.sub('{listingId}', listing_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[: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: 'ComputeClient#list_app_catalog_listing_resource_versions') 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::AppCatalogListingResourceVersionSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_app_catalog_listings(opts = {}) ⇒ Response
Click here to see an example of how to use list_app_catalog_listings API.
Lists the published listings.
4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 |
# File 'lib/oci/core/compute_client.rb', line 4957 def list_app_catalog_listings(opts = {}) logger.debug 'Calling operation ComputeClient#list_app_catalog_listings.' if logger 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 = '/appCatalogListings' 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[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:publisherName] = opts[:publisher_name] if opts[:publisher_name] query_params[:publisherType] = opts[:publisher_type] if opts[:publisher_type] query_params[:displayName] = opts[:display_name] if opts[:display_name] # 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: 'ComputeClient#list_app_catalog_listings') 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::AppCatalogListingSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_app_catalog_subscriptions(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_app_catalog_subscriptions API.
Lists subscriptions for a compartment.
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 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 |
# File 'lib/oci/core/compute_client.rb', line 5043 def list_app_catalog_subscriptions(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_app_catalog_subscriptions.' if logger raise "Missing the required parameter 'compartment_id' when calling list_app_catalog_subscriptions." 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 = '/appCatalogSubscriptions' 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[:listingId] = opts[:listing_id] if opts[:listing_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: 'ComputeClient#list_app_catalog_subscriptions') 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::AppCatalogSubscriptionSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_boot_volume_attachments(availability_domain, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_boot_volume_attachments API.
Lists the boot volume attachments in the specified compartment. You can filter the list by specifying an instance OCID, boot volume OCID, or both.
5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 |
# File 'lib/oci/core/compute_client.rb', line 5126 def (availability_domain, compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_boot_volume_attachments.' if logger raise "Missing the required parameter 'availability_domain' when calling list_boot_volume_attachments." if availability_domain.nil? raise "Missing the required parameter 'compartment_id' when calling list_boot_volume_attachments." if compartment_id.nil? path = '/bootVolumeAttachments/' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:availabilityDomain] = availability_domain query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:instanceId] = opts[:instance_id] if opts[:instance_id] query_params[:bootVolumeId] = opts[:boot_volume_id] if opts[:boot_volume_id] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_boot_volume_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::BootVolumeAttachment>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_reservation_instance_shapes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_reservation_instance_shapes API.
Lists the shapes that can be reserved within the specified compartment.
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 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 |
# File 'lib/oci/core/compute_client.rb', line 5218 def list_compute_capacity_reservation_instance_shapes(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_reservation_instance_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_capacity_reservation_instance_shapes." 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 = '/computeCapacityReservationInstanceShapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] 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] # 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: 'ComputeClient#list_compute_capacity_reservation_instance_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::ComputeCapacityReservationInstanceShapeSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_reservation_instances(capacity_reservation_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_reservation_instances API.
Lists the instances launched under a capacity reservation. You can filter results by specifying criteria.
5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 |
# File 'lib/oci/core/compute_client.rb', line 5318 def list_compute_capacity_reservation_instances(capacity_reservation_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_reservation_instances.' if logger raise "Missing the required parameter 'capacity_reservation_id' when calling list_compute_capacity_reservation_instances." if capacity_reservation_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 raise "Parameter value for 'capacity_reservation_id' must not be blank" if OCI::Internal::Util.blank_string?(capacity_reservation_id) path = '/computeCapacityReservations/{capacityReservationId}/instances'.sub('{capacityReservationId}', capacity_reservation_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:compartmentId] = opts[:compartment_id] if opts[: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] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_compute_capacity_reservation_instances') 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::CapacityReservationInstanceSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_reservations(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_reservations API.
Lists the compute capacity reservations that match the specified criteria and compartment.
You can limit the list by specifying a compute capacity reservation display name (the list will include all the identically-named compute capacity reservations in the compartment).
5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 |
# File 'lib/oci/core/compute_client.rb', line 5423 def list_compute_capacity_reservations(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_reservations.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_capacity_reservations." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::Core::Models::ComputeCapacityReservation::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ComputeCapacityReservation::LIFECYCLE_STATE_ENUM.' 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 path = '/computeCapacityReservations' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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, application/x-json-stream' 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: 'ComputeClient#list_compute_capacity_reservations') 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::ComputeCapacityReservationSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_topologies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_topologies API.
Lists the compute capacity topologies in the specified compartment. You can filter the list by a compute capacity topology display name.
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 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 |
# File 'lib/oci/core/compute_client.rb', line 5530 def list_compute_capacity_topologies(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_topologies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_capacity_topologies." 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 = '/computeCapacityTopologies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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' 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: 'ComputeClient#list_compute_capacity_topologies') 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::ComputeCapacityTopologyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_topology_compute_bare_metal_hosts(compute_capacity_topology_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_topology_compute_bare_metal_hosts API.
Lists compute bare metal hosts in the specified compute capacity topology.
5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 |
# File 'lib/oci/core/compute_client.rb', line 5632 def (compute_capacity_topology_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_topology_compute_bare_metal_hosts.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling list_compute_capacity_topology_compute_bare_metal_hosts." if compute_capacity_topology_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 raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}/computeBareMetalHosts'.sub('{computeCapacityTopologyId}', compute_capacity_topology_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:computeHpcIslandId] = opts[:compute_hpc_island_id] if opts[:compute_hpc_island_id] query_params[:computeNetworkBlockId] = opts[:compute_network_block_id] if opts[:compute_network_block_id] query_params[:computeLocalBlockId] = opts[:compute_local_block_id] if opts[:compute_local_block_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] # 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: 'ComputeClient#list_compute_capacity_topology_compute_bare_metal_hosts') 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::ComputeBareMetalHostCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_topology_compute_hpc_islands(compute_capacity_topology_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_topology_compute_hpc_islands API.
Lists compute HPC islands in the specified compute capacity topology.
5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 |
# File 'lib/oci/core/compute_client.rb', line 5734 def list_compute_capacity_topology_compute_hpc_islands(compute_capacity_topology_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_topology_compute_hpc_islands.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling list_compute_capacity_topology_compute_hpc_islands." if compute_capacity_topology_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 raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}/computeHpcIslands'.sub('{computeCapacityTopologyId}', compute_capacity_topology_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:compartmentId] = opts[:compartment_id] if opts[: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] # 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: 'ComputeClient#list_compute_capacity_topology_compute_hpc_islands') 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::ComputeHpcIslandCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_capacity_topology_compute_network_blocks(compute_capacity_topology_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_capacity_topology_compute_network_blocks API.
Lists compute network blocks in the specified compute capacity topology.
5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 |
# File 'lib/oci/core/compute_client.rb', line 5834 def list_compute_capacity_topology_compute_network_blocks(compute_capacity_topology_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_capacity_topology_compute_network_blocks.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling list_compute_capacity_topology_compute_network_blocks." if compute_capacity_topology_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 raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}/computeNetworkBlocks'.sub('{computeCapacityTopologyId}', compute_capacity_topology_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:computeHpcIslandId] = opts[:compute_hpc_island_id] if opts[:compute_hpc_island_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] # 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: 'ComputeClient#list_compute_capacity_topology_compute_network_blocks') 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::ComputeNetworkBlockCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_clusters(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_clusters API.
Lists the compute clusters in the specified compartment. A compute cluster is a remote direct memory access (RDMA) network group.
5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 |
# File 'lib/oci/core/compute_client.rb', line 5937 def list_compute_clusters(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_clusters.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_clusters." 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 = '/computeClusters' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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' 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: 'ComputeClient#list_compute_clusters') 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::ComputeClusterCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_global_image_capability_schema_versions(compute_global_image_capability_schema_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_global_image_capability_schema_versions API.
Lists Compute Global Image Capability Schema versions in the specified compartment.
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 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 |
# File 'lib/oci/core/compute_client.rb', line 6031 def list_compute_global_image_capability_schema_versions(compute_global_image_capability_schema_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_global_image_capability_schema_versions.' if logger raise "Missing the required parameter 'compute_global_image_capability_schema_id' when calling list_compute_global_image_capability_schema_versions." if compute_global_image_capability_schema_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 raise "Parameter value for 'compute_global_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_global_image_capability_schema_id) path = '/computeGlobalImageCapabilitySchemas/{computeGlobalImageCapabilitySchemaId}/versions'.sub('{computeGlobalImageCapabilitySchemaId}', compute_global_image_capability_schema_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:displayName] = opts[:display_name] if opts[:display_name] 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: 'ComputeClient#list_compute_global_image_capability_schema_versions') 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::ComputeGlobalImageCapabilitySchemaVersionSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_global_image_capability_schemas(opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_global_image_capability_schemas API.
Lists Compute Global Image Capability Schema in the specified compartment.
6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 |
# File 'lib/oci/core/compute_client.rb', line 6124 def list_compute_global_image_capability_schemas(opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_global_image_capability_schemas.' 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 path = '/computeGlobalImageCapabilitySchemas' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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: 'ComputeClient#list_compute_global_image_capability_schemas') 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::ComputeGlobalImageCapabilitySchemaSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_gpu_memory_cluster_instances(compute_gpu_memory_cluster_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_gpu_memory_cluster_instances API.
List all of the GPU memory cluster instances.
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 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 |
# File 'lib/oci/core/compute_client.rb', line 6216 def list_compute_gpu_memory_cluster_instances(compute_gpu_memory_cluster_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_gpu_memory_cluster_instances.' if logger raise "Missing the required parameter 'compute_gpu_memory_cluster_id' when calling list_compute_gpu_memory_cluster_instances." if compute_gpu_memory_cluster_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 raise "Parameter value for 'compute_gpu_memory_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_cluster_id) path = '/computeGpuMemoryClusters/{computeGpuMemoryClusterId}/instances'.sub('{computeGpuMemoryClusterId}', compute_gpu_memory_cluster_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} 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[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_compute_gpu_memory_cluster_instances') 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::ComputeGpuMemoryClusterInstanceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_gpu_memory_clusters(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_gpu_memory_clusters API.
List all of the compute GPU memory clusters.
6321 6322 6323 6324 6325 6326 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 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 |
# File 'lib/oci/core/compute_client.rb', line 6321 def list_compute_gpu_memory_clusters(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_gpu_memory_clusters.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_gpu_memory_clusters." 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 = '/computeGpuMemoryClusters' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:computeGpuMemoryClusterId] = opts[:compute_gpu_memory_cluster_id] if opts[:compute_gpu_memory_cluster_id] query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:computeClusterId] = opts[:compute_cluster_id] if opts[:compute_cluster_id] 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[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_compute_gpu_memory_clusters') 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::ComputeGpuMemoryClusterCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_gpu_memory_fabrics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_gpu_memory_fabrics API.
Lists the compute GPU memory fabrics that match the specified criteria and compartmentId.
6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 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 |
# File 'lib/oci/core/compute_client.rb', line 6431 def list_compute_gpu_memory_fabrics(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_gpu_memory_fabrics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_gpu_memory_fabrics." if compartment_id.nil? if opts[:compute_gpu_memory_fabric_lifecycle_state] && !OCI::Core::Models::ComputeGpuMemoryFabric::LIFECYCLE_STATE_ENUM.include?(opts[:compute_gpu_memory_fabric_lifecycle_state]) raise 'Invalid value for "compute_gpu_memory_fabric_lifecycle_state", must be one of the values in OCI::Core::Models::ComputeGpuMemoryFabric::LIFECYCLE_STATE_ENUM.' end if opts[:compute_gpu_memory_fabric_health] && !OCI::Core::Models::ComputeGpuMemoryFabric::FABRIC_HEALTH_ENUM.include?(opts[:compute_gpu_memory_fabric_health]) raise 'Invalid value for "compute_gpu_memory_fabric_health", must be one of the values in OCI::Core::Models::ComputeGpuMemoryFabric::FABRIC_HEALTH_ENUM.' 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 path = '/computeGpuMemoryFabrics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:computeGpuMemoryFabricId] = opts[:compute_gpu_memory_fabric_id] if opts[:compute_gpu_memory_fabric_id] query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:computeHpcIslandId] = opts[:compute_hpc_island_id] if opts[:compute_hpc_island_id] query_params[:computeNetworkBlockId] = opts[:compute_network_block_id] if opts[:compute_network_block_id] query_params[:computeGpuMemoryFabricLifecycleState] = opts[:compute_gpu_memory_fabric_lifecycle_state] if opts[:compute_gpu_memory_fabric_lifecycle_state] query_params[:computeGpuMemoryFabricHealth] = opts[:compute_gpu_memory_fabric_health] if opts[:compute_gpu_memory_fabric_health] 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, application/x-json-stream' 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: 'ComputeClient#list_compute_gpu_memory_fabrics') 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::ComputeGpuMemoryFabricCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_host_groups(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_host_groups API.
Lists the compute host groups that match the specified criteria and compartment.
6524 6525 6526 6527 6528 6529 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 |
# File 'lib/oci/core/compute_client.rb', line 6524 def list_compute_host_groups(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_host_groups.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_host_groups." if compartment_id.nil? path = '/computeHostGroups' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_compute_host_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: 'OCI::Core::Models::ComputeHostGroupCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_hosts(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_hosts API.
Generates a list of summary host details
6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 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 |
# File 'lib/oci/core/compute_client.rb', line 6624 def list_compute_hosts(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_hosts.' if logger raise "Missing the required parameter 'compartment_id' when calling list_compute_hosts." 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 = '/computeHosts' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:networkResourceId] = opts[:network_resource_id] if opts[:network_resource_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[:computeHostLifecycleState] = opts[:compute_host_lifecycle_state] if opts[:compute_host_lifecycle_state] query_params[:computeHostHealth] = opts[:compute_host_health] if opts[:compute_host_health] query_params[:computeHostGroupId] = opts[:compute_host_group_id] if opts[:compute_host_group_id] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_compute_hosts') 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::ComputeHostCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_compute_image_capability_schemas(opts = {}) ⇒ Response
Click here to see an example of how to use list_compute_image_capability_schemas API.
Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 |
# File 'lib/oci/core/compute_client.rb', line 6724 def list_compute_image_capability_schemas(opts = {}) logger.debug 'Calling operation ComputeClient#list_compute_image_capability_schemas.' 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 path = '/computeImageCapabilitySchemas' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:imageId] = opts[:image_id] if opts[:image_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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: 'ComputeClient#list_compute_image_capability_schemas') 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::ComputeImageCapabilitySchemaSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_console_histories(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_console_histories API.
Lists the console history metadata for the specified compartment or instance.
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 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 |
# File 'lib/oci/core/compute_client.rb', line 6822 def list_console_histories(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_console_histories.' if logger raise "Missing the required parameter 'compartment_id' when calling list_console_histories." 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::ConsoleHistory::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.' end path = '/instanceConsoleHistories/' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:instanceId] = opts[:instance_id] if opts[:instance_id] 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: 'ComputeClient#list_console_histories') 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::ConsoleHistory>' ) end # rubocop:enable Metrics/BlockLength end |
#list_dedicated_vm_host_instance_shapes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_dedicated_vm_host_instance_shapes API.
Lists the shapes that can be used to launch a virtual machine instance on a dedicated virtual machine host within the specified compartment. You can filter the list by compatibility with a specific dedicated virtual machine host shape.
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 |
# File 'lib/oci/core/compute_client.rb', line 6914 def list_dedicated_vm_host_instance_shapes(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_instance_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_instance_shapes." if compartment_id.nil? path = '/dedicatedVmHostInstanceShapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:dedicatedVmHostShape] = opts[:dedicated_vm_host_shape] if opts[:dedicated_vm_host_shape] 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: 'ComputeClient#list_dedicated_vm_host_instance_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::DedicatedVmHostInstanceShapeSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_dedicated_vm_host_instances(compartment_id, dedicated_vm_host_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_dedicated_vm_host_instances API.
Returns the list of instances on the dedicated virtual machine hosts that match the specified criteria.
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 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 |
# File 'lib/oci/core/compute_client.rb', line 7004 def list_dedicated_vm_host_instances(compartment_id, dedicated_vm_host_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_instances.' if logger raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_instances." if compartment_id.nil? raise "Missing the required parameter 'dedicated_vm_host_id' when calling list_dedicated_vm_host_instances." if dedicated_vm_host_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 raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id) path = '/dedicatedVmHosts/{dedicatedVmHostId}/instances'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] 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, application/x-json-stream' 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: 'ComputeClient#list_dedicated_vm_host_instances') 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::DedicatedVmHostInstanceSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_dedicated_vm_host_shapes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_dedicated_vm_host_shapes API.
Lists the shapes that can be used to launch a dedicated virtual machine host within the specified compartment.
7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 |
# File 'lib/oci/core/compute_client.rb', line 7092 def list_dedicated_vm_host_shapes(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_shapes." if compartment_id.nil? path = '/dedicatedVmHostShapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:instanceShapeName] = opts[:instance_shape_name] if opts[:instance_shape_name] 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: 'ComputeClient#list_dedicated_vm_host_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::DedicatedVmHostShapeSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_dedicated_vm_hosts(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_dedicated_vm_hosts API.
Returns the list of dedicated virtual machine hosts that match the specified criteria in the specified compartment.
You can limit the list by specifying a dedicated virtual machine host display name. The list will include all the identically-named dedicated virtual machine hosts in the compartment.
7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 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 |
# File 'lib/oci/core/compute_client.rb', line 7192 def list_dedicated_vm_hosts(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_dedicated_vm_hosts.' if logger raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_hosts." if compartment_id.nil? if opts[:lifecycle_state] && !%w[CREATING ACTIVE UPDATING DELETING DELETED FAILED].include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED.' 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 path = '/dedicatedVmHosts' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:instanceShapeName] = opts[:instance_shape_name] if opts[:instance_shape_name] 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[:remainingMemoryInGBsGreaterThanOrEqualTo] = opts[:remaining_memory_in_gbs_greater_than_or_equal_to] if opts[:remaining_memory_in_gbs_greater_than_or_equal_to] query_params[:remainingOcpusGreaterThanOrEqualTo] = opts[:remaining_ocpus_greater_than_or_equal_to] if opts[:remaining_ocpus_greater_than_or_equal_to] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_dedicated_vm_hosts') 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::DedicatedVmHostSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_image_shape_compatibility_entries(image_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_image_shape_compatibility_entries API.
Lists the compatible shapes for the specified image.
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 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 |
# File 'lib/oci/core/compute_client.rb', line 7280 def list_image_shape_compatibility_entries(image_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_image_shape_compatibility_entries.' if logger raise "Missing the required parameter 'image_id' when calling list_image_shape_compatibility_entries." if image_id.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}/shapes'.sub('{imageId}', image_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: 'ComputeClient#list_image_shape_compatibility_entries') 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::ImageShapeCompatibilitySummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_images(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_images API.
Lists a subset of images available in the specified compartment, including platform images and custom images. The list of platform images includes the three most recently published versions of each major distribution. The list does not support filtering based on image tags.
The list of images returned is ordered to first show the recent platform images, then all of the custom images.
Caution: Platform images are refreshed regularly. When new images are released, older versions are replaced. The image OCIDs remain available, but when the platform image is replaced, the image OCIDs are no longer returned as part of the platform image list.
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 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 |
# File 'lib/oci/core/compute_client.rb', line 7384 def list_images(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_images.' if logger raise "Missing the required parameter 'compartment_id' when calling list_images." 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::Image::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.' end path = '/images' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:operatingSystem] = opts[:operating_system] if opts[:operating_system] query_params[:operatingSystemVersion] = opts[:operating_system_version] if opts[:operating_system_version] query_params[:shape] = opts[:shape] if opts[:shape] 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: 'ComputeClient#list_images') 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::Image>' ) end # rubocop:enable Metrics/BlockLength end |
#list_instance_console_connections(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_instance_console_connections API.
Lists the console connections for the specified compartment or instance.
For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections.
7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 |
# File 'lib/oci/core/compute_client.rb', line 7471 def list_instance_console_connections(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_instance_console_connections.' if logger raise "Missing the required parameter 'compartment_id' when calling list_instance_console_connections." if compartment_id.nil? path = '/instanceConsoleConnections' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:instanceId] = opts[:instance_id] if opts[:instance_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: 'ComputeClient#list_instance_console_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::InstanceConsoleConnection>' ) end # rubocop:enable Metrics/BlockLength end |
#list_instance_devices(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_instance_devices API.
Gets a list of all the devices for given instance. You can optionally filter results by device availability.
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 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 |
# File 'lib/oci/core/compute_client.rb', line 7557 def list_instance_devices(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_instance_devices.' if logger raise "Missing the required parameter 'instance_id' when calling list_instance_devices." if instance_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 raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}/devices'.sub('{instanceId}', instance_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isAvailable] = opts[:is_available] if !opts[:is_available].nil? query_params[:name] = opts[:name] if opts[:name] 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' 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: 'ComputeClient#list_instance_devices') 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::Device>' ) end # rubocop:enable Metrics/BlockLength end |
#list_instance_maintenance_events(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_instance_maintenance_events API.
Gets a list of all the maintenance events for the given compartment.
7658 7659 7660 7661 7662 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 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 |
# File 'lib/oci/core/compute_client.rb', line 7658 def list_instance_maintenance_events(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_instance_maintenance_events.' if logger raise "Missing the required parameter 'compartment_id' when calling list_instance_maintenance_events." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::Core::Models::InstanceMaintenanceEvent::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InstanceMaintenanceEvent::LIFECYCLE_STATE_ENUM.' 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 path = '/instanceMaintenanceEvents' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:instanceId] = opts[:instance_id] if opts[:instance_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:correlationToken] = opts[:correlation_token] if opts[:correlation_token] query_params[:instanceAction] = opts[:instance_action] if opts[:instance_action] query_params[:timeWindowStartGreaterThanOrEqualTo] = opts[:time_window_start_greater_than_or_equal_to] if opts[:time_window_start_greater_than_or_equal_to] query_params[:timeWindowStartLessThanOrEqualTo] = opts[:time_window_start_less_than_or_equal_to] if opts[:time_window_start_less_than_or_equal_to] 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' 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: 'ComputeClient#list_instance_maintenance_events') 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::InstanceMaintenanceEventSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_instances(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_instances API.
Lists the instances in the specified compartment and the specified availability domain. You can filter the results by specifying an instance name (the list will include all the identically-named instances in the compartment).
Note: To retrieve public and private IP addresses for an instance, use the list_vnic_attachments operation to get the VNIC ID for the instance, and then call get_vnic with the VNIC ID.
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 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 |
# File 'lib/oci/core/compute_client.rb', line 7777 def list_instances(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_instances.' if logger raise "Missing the required parameter 'compartment_id' when calling list_instances." 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::Instance::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.' end path = '/instances/' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:capacityReservationId] = opts[:capacity_reservation_id] if opts[:capacity_reservation_id] query_params[:computeClusterId] = opts[:compute_cluster_id] if opts[:compute_cluster_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] 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, application/x-json-stream' 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: 'ComputeClient#list_instances') 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::Instance>' ) end # rubocop:enable Metrics/BlockLength end |
#list_shapes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_shapes API.
Lists the shapes that can be used to launch an instance within the specified compartment. You can filter the list by compatibility with a specific image.
7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 |
# File 'lib/oci/core/compute_client.rb', line 7867 def list_shapes(compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil? path = '/shapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:imageId] = opts[:image_id] if opts[:image_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: 'ComputeClient#list_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::Shape>' ) end # rubocop:enable Metrics/BlockLength end |
#list_vnic_attachments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_vnic_attachments API.
Lists the VNIC attachments in the specified compartment. A VNIC attachment resides in the same compartment as the attached instance. The list can be filtered by instance, VNIC, or availability domain.
7942 7943 7944 7945 7946 7947 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 |
# File 'lib/oci/core/compute_client.rb', line 7942 def (compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_vnic_attachments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_vnic_attachments." if compartment_id.nil? path = '/vnicAttachments/' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:instanceId] = opts[:instance_id] if opts[:instance_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:vnicId] = opts[:vnic_id] if opts[:vnic_id] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_vnic_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::VnicAttachment>' ) end # rubocop:enable Metrics/BlockLength end |
#list_volume_attachments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_volume_attachments API.
Lists the volume attachments in the specified compartment. You can filter the list by specifying an instance OCID, volume OCID, or both.
Currently, the only supported volume attachment type are IScsiVolumeAttachment and ParavirtualizedVolumeAttachment.
8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 |
# File 'lib/oci/core/compute_client.rb', line 8020 def (compartment_id, opts = {}) logger.debug 'Calling operation ComputeClient#list_volume_attachments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_volume_attachments." if compartment_id.nil? path = '/volumeAttachments/' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:instanceId] = opts[:instance_id] if opts[:instance_id] query_params[:volumeId] = opts[:volume_id] if opts[:volume_id] # Header Params header_params = {} header_params[:accept] = 'application/json, application/x-json-stream' 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: 'ComputeClient#list_volume_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::VolumeAttachment>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
100 101 102 |
# File 'lib/oci/core/compute_client.rb', line 100 def logger @api_client.config.logger end |
#remove_image_shape_compatibility_entry(image_id, shape_name, opts = {}) ⇒ Response
Click here to see an example of how to use remove_image_shape_compatibility_entry API.
Removes a shape from the compatible shapes list for the image.
8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 |
# File 'lib/oci/core/compute_client.rb', line 8079 def remove_image_shape_compatibility_entry(image_id, shape_name, opts = {}) logger.debug 'Calling operation ComputeClient#remove_image_shape_compatibility_entry.' if logger raise "Missing the required parameter 'image_id' when calling remove_image_shape_compatibility_entry." if image_id.nil? raise "Missing the required parameter 'shape_name' when calling remove_image_shape_compatibility_entry." if shape_name.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) raise "Parameter value for 'shape_name' must not be blank" if OCI::Internal::Util.blank_string?(shape_name) path = '/images/{imageId}/shapes/{shapeName}'.sub('{imageId}', image_id.to_s).sub('{shapeName}', shape_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: 'ComputeClient#remove_image_shape_compatibility_entry') 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 |
#terminate_instance(instance_id, opts = {}) ⇒ Response
Click here to see an example of how to use terminate_instance API.
Permanently terminates (deletes) the specified instance. Any attached VNICs and volumes are automatically detached when the instance terminates.
To preserve the boot volume associated with the instance, specify true
for PreserveBootVolumeQueryParam
. To delete the boot volume when the instance is deleted, specify false
or do not specify a value for PreserveBootVolumeQueryParam
.
To preserve data volumes created with the instance, specify true
or do not specify a value for PreserveDataVolumesQueryParam
. To delete the data volumes when the instance itself is deleted, specify false
for PreserveDataVolumesQueryParam
.
This is an asynchronous operation. The instance's lifecycleState
changes to TERMINATING temporarily until the instance is completely deleted. After the instance is deleted, the record remains visible in the list of instances with the state TERMINATED for at least 12 hours, but no further action is needed.
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 |
# File 'lib/oci/core/compute_client.rb', line 8156 def terminate_instance(instance_id, opts = {}) logger.debug 'Calling operation ComputeClient#terminate_instance.' if logger raise "Missing the required parameter 'instance_id' when calling terminate_instance." if instance_id.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:preserveBootVolume] = opts[:preserve_boot_volume] if !opts[:preserve_boot_volume].nil? query_params[:preserveDataVolumesCreatedAtLaunch] = opts[:preserve_data_volumes_created_at_launch] if !opts[:preserve_data_volumes_created_at_launch].nil? # 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: 'ComputeClient#terminate_instance') 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 |
#update_compute_capacity_reservation(capacity_reservation_id, update_compute_capacity_reservation_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_capacity_reservation API.
Updates the specified capacity reservation and its associated capacity configurations. Fields that are not provided in the request will not be updated. Capacity configurations that are not included will be deleted. Avoid entering confidential information.
8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 |
# File 'lib/oci/core/compute_client.rb', line 8221 def update_compute_capacity_reservation(capacity_reservation_id, update_compute_capacity_reservation_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_capacity_reservation.' if logger raise "Missing the required parameter 'capacity_reservation_id' when calling update_compute_capacity_reservation." if capacity_reservation_id.nil? raise "Missing the required parameter 'update_compute_capacity_reservation_details' when calling update_compute_capacity_reservation." if update_compute_capacity_reservation_details.nil? raise "Parameter value for 'capacity_reservation_id' must not be blank" if OCI::Internal::Util.blank_string?(capacity_reservation_id) path = '/computeCapacityReservations/{capacityReservationId}'.sub('{capacityReservationId}', capacity_reservation_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_compute_capacity_reservation_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_capacity_reservation') 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 ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_capacity_topology(compute_capacity_topology_id, update_compute_capacity_topology_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_capacity_topology API.
Updates the specified compute capacity topology. Fields that are not provided in the request will not be updated.
8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 |
# File 'lib/oci/core/compute_client.rb', line 8284 def update_compute_capacity_topology(compute_capacity_topology_id, update_compute_capacity_topology_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_capacity_topology.' if logger raise "Missing the required parameter 'compute_capacity_topology_id' when calling update_compute_capacity_topology." if compute_capacity_topology_id.nil? raise "Missing the required parameter 'update_compute_capacity_topology_details' when calling update_compute_capacity_topology." if update_compute_capacity_topology_details.nil? raise "Parameter value for 'compute_capacity_topology_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_capacity_topology_id) path = '/computeCapacityTopologies/{computeCapacityTopologyId}'.sub('{computeCapacityTopologyId}', compute_capacity_topology_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_compute_capacity_topology_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_capacity_topology') 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 ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_cluster(compute_cluster_id, update_compute_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_cluster API.
Updates a compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
To create instances within a compute cluster, use the launch_instance operation.
To delete instances from a compute cluster, use the terminate_instance operation.
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 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 |
# File 'lib/oci/core/compute_client.rb', line 8363 def update_compute_cluster(compute_cluster_id, update_compute_cluster_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_cluster.' if logger raise "Missing the required parameter 'compute_cluster_id' when calling update_compute_cluster." if compute_cluster_id.nil? raise "Missing the required parameter 'update_compute_cluster_details' when calling update_compute_cluster." if update_compute_cluster_details.nil? raise "Parameter value for 'compute_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_cluster_id) path = '/computeClusters/{computeClusterId}'.sub('{computeClusterId}', compute_cluster_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(update_compute_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_cluster') 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::ComputeCluster' ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, update_compute_gpu_memory_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_gpu_memory_cluster API.
Updates a compute gpu memory cluster resource.
8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 |
# File 'lib/oci/core/compute_client.rb', line 8435 def update_compute_gpu_memory_cluster(compute_gpu_memory_cluster_id, update_compute_gpu_memory_cluster_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_gpu_memory_cluster.' if logger raise "Missing the required parameter 'compute_gpu_memory_cluster_id' when calling update_compute_gpu_memory_cluster." if compute_gpu_memory_cluster_id.nil? raise "Missing the required parameter 'update_compute_gpu_memory_cluster_details' when calling update_compute_gpu_memory_cluster." if update_compute_gpu_memory_cluster_details.nil? raise "Parameter value for 'compute_gpu_memory_cluster_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_cluster_id) path = '/computeGpuMemoryClusters/{computeGpuMemoryClusterId}'.sub('{computeGpuMemoryClusterId}', compute_gpu_memory_cluster_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(update_compute_gpu_memory_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_gpu_memory_cluster') 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::ComputeGpuMemoryCluster' ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, update_compute_gpu_memory_fabric_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_gpu_memory_fabric API.
Customer can update displayName and tags for compute GPU memory fabric record
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 8541 8542 8543 8544 8545 8546 8547 |
# File 'lib/oci/core/compute_client.rb', line 8507 def update_compute_gpu_memory_fabric(compute_gpu_memory_fabric_id, update_compute_gpu_memory_fabric_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_gpu_memory_fabric.' if logger raise "Missing the required parameter 'compute_gpu_memory_fabric_id' when calling update_compute_gpu_memory_fabric." if compute_gpu_memory_fabric_id.nil? raise "Missing the required parameter 'update_compute_gpu_memory_fabric_details' when calling update_compute_gpu_memory_fabric." if update_compute_gpu_memory_fabric_details.nil? raise "Parameter value for 'compute_gpu_memory_fabric_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_gpu_memory_fabric_id) path = '/computeGpuMemoryFabrics/{computeGpuMemoryFabricId}'.sub('{computeGpuMemoryFabricId}', compute_gpu_memory_fabric_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(update_compute_gpu_memory_fabric_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_gpu_memory_fabric') 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::ComputeGpuMemoryFabric' ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_host(compute_host_id, update_compute_host_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_host API.
Customer can update the some fields for ComputeHost record
8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 |
# File 'lib/oci/core/compute_client.rb', line 8580 def update_compute_host(compute_host_id, update_compute_host_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_host.' if logger raise "Missing the required parameter 'compute_host_id' when calling update_compute_host." if compute_host_id.nil? raise "Missing the required parameter 'update_compute_host_details' when calling update_compute_host." if update_compute_host_details.nil? raise "Parameter value for 'compute_host_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_id) path = '/computeHosts/{computeHostId}'.sub('{computeHostId}', compute_host_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(update_compute_host_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_host') 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 ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_host_group(compute_host_group_id, update_compute_host_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_host_group API.
Updates the specified compute host group details.
8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 |
# File 'lib/oci/core/compute_client.rb', line 8651 def update_compute_host_group(compute_host_group_id, update_compute_host_group_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_host_group.' if logger raise "Missing the required parameter 'compute_host_group_id' when calling update_compute_host_group." if compute_host_group_id.nil? raise "Missing the required parameter 'update_compute_host_group_details' when calling update_compute_host_group." if update_compute_host_group_details.nil? raise "Parameter value for 'compute_host_group_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_host_group_id) path = '/computeHostGroups/{computeHostGroupId}'.sub('{computeHostGroupId}', compute_host_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] 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(update_compute_host_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_host_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::ComputeHostGroup' ) end # rubocop:enable Metrics/BlockLength end |
#update_compute_image_capability_schema(compute_image_capability_schema_id, update_compute_image_capability_schema_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_compute_image_capability_schema API.
Updates the specified Compute Image Capability Schema
8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 |
# File 'lib/oci/core/compute_client.rb', line 8714 def update_compute_image_capability_schema(compute_image_capability_schema_id, update_compute_image_capability_schema_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_compute_image_capability_schema.' if logger raise "Missing the required parameter 'compute_image_capability_schema_id' when calling update_compute_image_capability_schema." if compute_image_capability_schema_id.nil? raise "Missing the required parameter 'update_compute_image_capability_schema_details' when calling update_compute_image_capability_schema." if update_compute_image_capability_schema_details.nil? raise "Parameter value for 'compute_image_capability_schema_id' must not be blank" if OCI::Internal::Util.blank_string?(compute_image_capability_schema_id) path = '/computeImageCapabilitySchemas/{computeImageCapabilitySchemaId}'.sub('{computeImageCapabilitySchemaId}', compute_image_capability_schema_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_compute_image_capability_schema_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_compute_image_capability_schema') 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::ComputeImageCapabilitySchema' ) end # rubocop:enable Metrics/BlockLength end |
#update_console_history(instance_console_history_id, update_console_history_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_console_history API.
Updates the specified console history metadata.
8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 |
# File 'lib/oci/core/compute_client.rb', line 8773 def update_console_history(instance_console_history_id, update_console_history_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_console_history.' if logger raise "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil? raise "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil? raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id) path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_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_console_history_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_console_history') 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::ConsoleHistory' ) end # rubocop:enable Metrics/BlockLength end |
#update_dedicated_vm_host(dedicated_vm_host_id, update_dedicated_vm_host_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_dedicated_vm_host API.
Updates the displayName, freeformTags, and definedTags attributes for the specified dedicated virtual machine host. If an attribute value is not included, it will not be updated.
8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 |
# File 'lib/oci/core/compute_client.rb', line 8843 def update_dedicated_vm_host(dedicated_vm_host_id, update_dedicated_vm_host_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_dedicated_vm_host.' if logger raise "Missing the required parameter 'dedicated_vm_host_id' when calling update_dedicated_vm_host." if dedicated_vm_host_id.nil? raise "Missing the required parameter 'update_dedicated_vm_host_details' when calling update_dedicated_vm_host." if update_dedicated_vm_host_details.nil? raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id) path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_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(update_dedicated_vm_host_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_dedicated_vm_host') 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::DedicatedVmHost' ) end # rubocop:enable Metrics/BlockLength end |
#update_image(image_id, update_image_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_image API.
Updates the display name of the image. Avoid entering confidential information.
8913 8914 8915 8916 8917 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 |
# File 'lib/oci/core/compute_client.rb', line 8913 def update_image(image_id, update_image_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_image.' if logger raise "Missing the required parameter 'image_id' when calling update_image." if image_id.nil? raise "Missing the required parameter 'update_image_details' when calling update_image." if update_image_details.nil? raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id) path = '/images/{imageId}'.sub('{imageId}', image_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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_image_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_image') 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::Image' ) end # rubocop:enable Metrics/BlockLength end |
#update_instance(instance_id, update_instance_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_instance API.
Updates certain fields on the specified instance. Fields that are not provided in the request will not be updated. Avoid entering confidential information.
The OCID of the instance remains the same.
If the security attributes are managed via the instance, you may provide the securityAttributes
parameter in UpdateInstanceDetails. If the securityAttributes
parameter is provided and the VNICs have security attributes set directly, a 409 Conflict response will be returned.
8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 |
# File 'lib/oci/core/compute_client.rb', line 8989 def update_instance(instance_id, update_instance_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_instance.' if logger raise "Missing the required parameter 'instance_id' when calling update_instance." if instance_id.nil? raise "Missing the required parameter 'update_instance_details' when calling update_instance." if update_instance_details.nil? raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id) path = '/instances/{instanceId}'.sub('{instanceId}', instance_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] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_instance_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_instance') 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::Instance' ) end # rubocop:enable Metrics/BlockLength end |
#update_instance_console_connection(instance_console_connection_id, update_instance_console_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_instance_console_connection API.
Updates the defined tags and free-form tags for the specified instance console connection.
9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 |
# File 'lib/oci/core/compute_client.rb', line 9053 def update_instance_console_connection(instance_console_connection_id, update_instance_console_connection_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_instance_console_connection.' if logger raise "Missing the required parameter 'instance_console_connection_id' when calling update_instance_console_connection." if instance_console_connection_id.nil? raise "Missing the required parameter 'update_instance_console_connection_details' when calling update_instance_console_connection." if update_instance_console_connection_details.nil? raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_connection_id) path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_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[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_instance_console_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_instance_console_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::InstanceConsoleConnection' ) end # rubocop:enable Metrics/BlockLength end |
#update_instance_maintenance_event(instance_maintenance_event_id, update_instance_maintenance_event_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_instance_maintenance_event API.
Updates the maintenance event for the given instance.
9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 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 |
# File 'lib/oci/core/compute_client.rb', line 9123 def update_instance_maintenance_event(instance_maintenance_event_id, update_instance_maintenance_event_details, opts = {}) logger.debug 'Calling operation ComputeClient#update_instance_maintenance_event.' if logger raise "Missing the required parameter 'instance_maintenance_event_id' when calling update_instance_maintenance_event." if instance_maintenance_event_id.nil? raise "Missing the required parameter 'update_instance_maintenance_event_details' when calling update_instance_maintenance_event." if update_instance_maintenance_event_details.nil? raise "Parameter value for 'instance_maintenance_event_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_maintenance_event_id) path = '/instanceMaintenanceEvents/{instanceMaintenanceEventId}'.sub('{instanceMaintenanceEventId}', instance_maintenance_event_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 = @api_client.object_to_http_body(update_instance_maintenance_event_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_instance_maintenance_event') 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 ) end # rubocop:enable Metrics/BlockLength end |
#update_volume_attachment(volume_attachment_id, update_volume_attachment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_volume_attachment API.
Updates information about the specified volume attachment.
9187 9188 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 9225 |
# File 'lib/oci/core/compute_client.rb', line 9187 def (, , opts = {}) logger.debug 'Calling operation ComputeClient#update_volume_attachment.' if logger raise "Missing the required parameter 'volume_attachment_id' when calling update_volume_attachment." if .nil? raise "Missing the required parameter 'update_volume_attachment_details' when calling update_volume_attachment." if .nil? raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?() path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', .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() # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ComputeClient#update_volume_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::VolumeAttachment' ) end # rubocop:enable Metrics/BlockLength end |