Tenant Manager Control Plane Subscription Functions
Package: DBMS_CLOUD_OCI_TMCP_SUBSCRIPTION
CREATE_SUBSCRIPTION_MAPPING Function
Assign the tenancy record identified by the compartment ID to the given subscription ID.
Syntax
FUNCTION create_subscription_mapping (
create_subscription_mapping_details dbms_cloud_oci_tenant_manager_control_plane_create_subscription_mapping_details_t,
if_match varchar2 DEFAULT NULL,
opc_retry_token varchar2 DEFAULT NULL,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_create_subscription_mapping_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) Compartment ID and Subscription ID details to create a subscription mapping. |
|
(optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
|
(optional) A token that uniquely identifies a request, so it can be retried in case of a timeout or server error, without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request will be rejected. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
DELETE_SUBSCRIPTION_MAPPING Function
Delete the subscription mapping details by subscription mapping ID.
Syntax
FUNCTION delete_subscription_mapping (
subscription_mapping_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
if_match varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_delete_subscription_mapping_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscription mapping ID. |
|
(optional) The client request ID for tracing. |
|
(optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_ASSIGNED_SUBSCRIPTION Function
Get the assigned subscription details by assigned subscription ID.
Syntax
FUNCTION get_assigned_subscription (
assigned_subscription_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_get_assigned_subscription_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the assigned Oracle Cloud Subscription. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_SUBSCRIPTION Function
Gets the subscription details by subscription ID.
Syntax
FUNCTION get_subscription (
subscription_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_get_subscription_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscription. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
GET_SUBSCRIPTION_MAPPING Function
Get the subscription mapping details by subscription mapping ID.
Syntax
FUNCTION get_subscription_mapping (
subscription_mapping_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_get_subscription_mapping_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscriptionMappingId. |
|
(optional) The client request ID for tracing. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_ASSIGNED_SUBSCRIPTION_LINE_ITEMS Function
List line item summaries that a assigned subscription owns.
Syntax
FUNCTION list_assigned_subscription_line_items (
assigned_subscription_id varchar2,
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_tmcp_subscription_list_assigned_subscription_line_items_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the assigned Oracle Cloud Subscription. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The maximum number of items to return. |
|
(optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order can be provided. * The default order for timeCreated is descending. * The default order for displayName is ascending. * If no value is specified, timeCreated is the default. Allowed values are: 'timeCreated', 'displayName' |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_ASSIGNED_SUBSCRIPTIONS Function
Lists subscriptions that are consumed by the compartment. Only the root compartment is allowed.
Syntax
FUNCTION list_assigned_subscriptions (
compartment_id varchar2,
subscription_id 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,
entity_version varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_list_assigned_subscriptions_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) The ID of the compartment in which to list resources. |
|
(optional) The ID of the subscription to which the tenancy is associated. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The maximum number of items to return. |
|
(optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order can be provided. * The default order for timeCreated is descending. * The default order for displayName is ascending. * If no value is specified, timeCreated is the default. Allowed values are: 'timeCreated', 'displayName' |
|
(optional) The version of the subscription entity. Allowed values are: 'V1', 'V2' |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_AVAILABLE_REGIONS Function
List the available regions based on subscription ID.
Syntax
FUNCTION list_available_regions (
subscription_id varchar2,
opc_request_id varchar2 DEFAULT NULL,
page varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_list_available_regions_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscription. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_SUBSCRIPTION_LINE_ITEMS Function
Lists the line items in a subscription.
Syntax
FUNCTION list_subscription_line_items (
subscription_id varchar2,
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_tmcp_subscription_list_subscription_line_items_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscription. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The maximum number of items to return. |
|
(optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order can be provided. * The default order for timeCreated is descending. * The default order for displayName is ascending. * If no value is specified, timeCreated is the default. Allowed values are: 'timeCreated', 'displayName' |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_SUBSCRIPTION_MAPPINGS Function
Lists the subscription mappings for all the subscriptions owned by a given compartmentId. Only the root compartment is allowed.
Syntax
FUNCTION list_subscription_mappings (
subscription_id varchar2,
subscription_mapping_id varchar2 DEFAULT NULL,
compartment_id varchar2 DEFAULT NULL,
lifecycle_state 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_tmcp_subscription_list_subscription_mappings_response_t;
Parameters
Parameter | Description |
---|---|
|
(required) OCID of the subscription. |
|
(optional) A unique ID for subscription and tenancy mapping. |
|
(optional) The ID of the compartment in which to list resources. |
|
(optional) The lifecycle state of the resource. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The maximum number of items to return. |
|
(optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order can be provided. * The default order for timeCreated is descending. * The default order for displayName is ascending. * If no value is specified, timeCreated is the default. Allowed values are: 'timeCreated', 'displayName' |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |
LIST_SUBSCRIPTIONS Function
List the subscriptions that a compartment owns. Only the root compartment is allowed.
Syntax
FUNCTION list_subscriptions (
compartment_id varchar2 DEFAULT NULL,
subscription_id 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,
entity_version varchar2 DEFAULT NULL,
region varchar2 DEFAULT NULL,
endpoint varchar2 DEFAULT NULL,
credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_tmcp_subscription_list_subscriptions_response_t;
Parameters
Parameter | Description |
---|---|
|
(optional) The ID of the compartment in which to list resources. |
|
(optional) The ID of the subscription to which the tenancy is associated. |
|
(optional) The client request ID for tracing. |
|
(optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
|
(optional) The maximum number of items to return. |
|
(optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: 'ASC', 'DESC' |
|
(optional) The field to sort by. Only one sort order can be provided. * The default order for timeCreated is descending. * The default order for displayName is ascending. * If no value is specified, timeCreated is the default. Allowed values are: 'timeCreated', 'displayName' |
|
(optional) The version of the subscription entity. Allowed values are: 'V1', 'V2' |
|
(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix). |
|
(optional) The endpoint of the service to call using this function. e.g https://organizations.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence. |
|
(optional) The name of the credential for authenticating with the corresponding cloud native API. |