Usage Limits Functions

Package: DBMS_CLOUD_OCI_US_USAGELIMITS

LIST_USAGE_LIMITS Function

Returns the list of usage limit for the subscription ID and tenant ID.

Syntax

FUNCTION list_usage_limits (
  compartment_id varchar2,
  subscription_id varchar2,
  limit_type varchar2 DEFAULT NULL,
  resource_type varchar2 DEFAULT NULL,
  service_type varchar2 DEFAULT NULL,
  opc_request_id varchar2 DEFAULT NULL,
  page varchar2 DEFAULT NULL,
  limit number DEFAULT NULL,
  sort_order varchar2 DEFAULT NULL,
  sort_by varchar2 DEFAULT NULL,
  region varchar2 DEFAULT NULL, 
  endpoint varchar2 DEFAULT NULL,
  credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_us_usagelimits_list_usage_limits_response_t;

Parameters

Parameter Description

compartment_id

(required) The OCID of the root compartment.

subscription_id

(required) The subscription ID for which rewards information is requested for.

limit_type

(optional) Hard or soft limit. Hard limits lead to breaches, soft to alerts.

resource_type

(optional) Resource Name.

service_type

(optional) Service Name.

opc_request_id

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

page

(optional) The value of the 'opc-next-page' response header from the previous call.

limit

(optional) The maximum number of items to return in the paginated response.

sort_order

(optional) The sort order to use, which can be ascending (ASC) or descending (DESC).

Allowed values are: 'ASC', 'DESC'

sort_by

(optional) The field to sort by. Supports one sort order.

Allowed values are: 'TIMECREATED', 'TIMESTART'

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://identity.{region}.oci.{secondLevelDomain}.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.