lib/oci/identity/identity_client.rb
def list_fault_domains(compartment_id, availability_domain, opts = {})
      logger.debug 'Calling operation IdentityClient#list_fault_domains.' if logger

      raise "Missing the required parameter 'compartment_id' when calling list_fault_domains." if compartment_id.nil?
      raise "Missing the required parameter 'availability_domain' when calling list_fault_domains." if availability_domain.nil?

      path = '/faultDomains/'
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:availabilityDomain] = availability_domain

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_fault_domains') 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::Identity::Models::FaultDomain>'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another
# of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
# See [Where to Get the Tenancy's OCID and User's OCID](https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five).
#
# @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
#
# @param [String] availability_domain The name of the availibilityDomain.
#
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::FaultDomain FaultDomain}>
Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another
of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
See [Where to Get the Tenancy's OCID and User's OCID].
Lists the Fault Domains in your tenancy . Specify the OCID of either the tenancy or another of your compartments as the value for the compartment ID ( remember that the tenancy is simply the root compartment ) . See [ Where to Get the Tenancy ' s OCID and User ' s OCID ] .
def list_fault_domains(compartment_id, availability_domain, opts = {})
      logger.debug 'Calling operation IdentityClient#list_fault_domains.' if logger
      raise "Missing the required parameter 'compartment_id' when calling list_fault_domains." if compartment_id.nil?
      raise "Missing the required parameter 'availability_domain' when calling list_fault_domains." if availability_domain.nil?
      path = '/faultDomains/'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:availabilityDomain] = availability_domain
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_fault_domains') 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::Identity::Models::FaultDomain>'
        )
      end
    end
def list_fault_domains ( compartment_id , availability_domain , opts = { } ) logger . debug 'Calling operation IdentityClient#list_fault_domains.' if logger raise "Missing the required parameter 'compartment_id' when calling list_fault_domains." if compartment_id . nil? raise "Missing the required parameter 'availability_domain' when calling list_fault_domains." if availability_domain . nil? path = '/faultDomains/' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id query_params [ :availabilityDomain ] = availability_domain header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#list_fault_domains' ) 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::Identity::Models::FaultDomain>' ) end end
Lists the Fault Domains in your tenancy.
Lists the Fault Domains in your tenancy .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::Identity::Models::FaultDomain FaultDomain}>
A Response object with data of type Array< { OCI :: Identity :: Models :: FaultDomain FaultDomain } >
Response
compartment_id
availability_domain
opts
:retry_config The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
: retry_config The retry configuration to apply to this operation . If no key is provided then the service - level retry configuration defined by { #retry_config } will be used . If an explicit ` nil ` value is provided then the operation will not retry
opts the optional parameters
opts the optional parameters