app_catalog_subscriptions
Creates, updates, deletes, gets or lists an app_catalog_subscriptions resource.
Overview​
| Name | app_catalog_subscriptions |
| Type | Resource |
| Id | oci.compute.app_catalog_subscriptions |
Fields​
The following fields are returned by SELECT queries:
- list
a subscription summary for a listing resource version.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The compartmentID of the subscription. |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
listingId | string | The ocid of the listing resource. |
listingResourceId | string | Listing resource id. |
listingResourceVersion | string | Listing resource version. |
publisherName | string | Name of the publisher who published this listing. |
summary | string | The short summary to the listing. |
timeCreated | string (date-time) | Date and time at which the subscription was created, in [RFC3339](https:​//tools.ietf.org/html/rfc3339) format. Example: 2018-03-20T12:32:53.532Z |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | compartmentId, region | limit, page, sortBy, sortOrder, listingId | Lists subscriptions for a compartment. |
create | insert | region, compartmentId, listingId, listingResourceVersion, oracleTermsOfUseLink, timeRetrieved, signature | opc-retry-token | Create a subscription for listing resource version for a compartment. It will take some time to propagate to all regions.<br /> |
delete | delete | listingId, compartmentId, resourceVersion, region | Delete a subscription for a listing resource version for a compartment. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment. |
listingId | string | The OCID of the listing. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
resourceVersion | string | Listing Resource Version. |
limit | integer | For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50 |
listingId | string | A filter to return only the listings that matches the given listing id. |
opc-retry-token | string | 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 may be rejected). |
page | string | For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. Note: In general, some "List" operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these "List" operations without specifying an availability domain, the resources are grouped by availability domain, then sorted. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive. |
SELECT examples​
- list
Lists subscriptions for a compartment.
SELECT
compartmentId,
displayName,
listingId,
listingResourceId,
listingResourceVersion,
publisherName,
summary,
timeCreated
FROM oci.compute.app_catalog_subscriptions
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND listingId = '{{ listingId }}'
;
INSERT examples​
- create
- Manifest
Create a subscription for listing resource version for a compartment. It will take some time to propagate to all regions.<br />
INSERT INTO oci.compute.app_catalog_subscriptions (
compartmentId,
eulaLink,
listingId,
listingResourceVersion,
oracleTermsOfUseLink,
signature,
timeRetrieved,
region,
opc-retry-token
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ eulaLink }}',
'{{ listingId }}' /* required */,
'{{ listingResourceVersion }}' /* required */,
'{{ oracleTermsOfUseLink }}' /* required */,
'{{ signature }}' /* required */,
'{{ timeRetrieved }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
compartmentId,
displayName,
listingId,
listingResourceId,
listingResourceVersion,
publisherName,
summary,
timeCreated
;
# Description fields are for documentation purposes
- name: app_catalog_subscriptions
props:
- name: region
value: "{{ region }}"
description: Required parameter for the app_catalog_subscriptions resource.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The compartmentID for the subscription.
- name: eulaLink
value: "{{ eulaLink }}"
description: |
EULA link
- name: listingId
value: "{{ listingId }}"
description: |
The OCID of the listing.
- name: listingResourceVersion
value: "{{ listingResourceVersion }}"
description: |
Listing resource version.
- name: oracleTermsOfUseLink
value: "{{ oracleTermsOfUseLink }}"
description: |
Oracle TOU link
- name: signature
value: "{{ signature }}"
description: |
A generated signature for this listing resource version retrieved the agreements API.
- name: timeRetrieved
value: "{{ timeRetrieved }}"
description: |
Date and time the agreements were retrieved, in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
Example: `2018-03-20T12:32:53.532Z`
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: 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 may be rejected).
description: 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 may be rejected).
DELETE examples​
- delete
Delete a subscription for a listing resource version for a compartment.
DELETE FROM oci.compute.app_catalog_subscriptions
WHERE listingId = '{{ listingId }}' --required
AND compartmentId = '{{ compartmentId }}' --required
AND resourceVersion = '{{ resourceVersion }}' --required
AND region = '{{ region }}' --required
;