OSP Gateway Address Rule Service Functions

Package: DBMS_CLOUD_OCI_OG_ADDRESS_RULE_SERVICE

GET_ADDRESS_RULE Function

Get the address rule for the compartment based on the country code

Syntax

FUNCTION get_address_rule (
  osp_home_region varchar2,
  compartment_id varchar2,
  country_code varchar2,
  opc_request_id varchar2 DEFAULT NULL,
  region varchar2 DEFAULT NULL, 
  endpoint varchar2 DEFAULT NULL,
  credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_og_address_rule_service_get_address_rule_response_t;

Parameters

Parameter Description

osp_home_region

(required) The home region's public name of the logged in user.

compartment_id

(required) The OCID of the compartment.

country_code

(required) Country code for the address rule in ISO-3166-1 2-letter format.

opc_request_id

(optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

region

(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix).

endpoint

(optional) The endpoint of the service to call using this function. e.g https://ospap.oracle.com.If both endpoint and region are given, then endpoint takes precedence.

credential_name

(optional) The name of the credential for authenticating with the corresponding cloud native API.