List of tenancies
get
/appstore/publisher/v1/ocitenancies
Get a list of available oci tenancies.
Request
Query Parameters
-
limit(optional): integer(int32)
Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
-
offset(optional): integer(int32)
Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
-
orderby(optional): string
This property sorts the result set. Acceptable values are LASTMODIFIED_DATE
-
sortorder(optional): string
This property specifies the order in which to sort the result set. Acceptable values are ASC and DESC.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example return a list of all the tenancies of a partner, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/ocitenancies?limit=100"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "items":[ { "TenancyConfiguration":{ "tenancyId":15786747, "tenancyName":"vkvemula", "tenancyOCID":"ocid1.tenancy.oc1..aaaaaaaaqaeq3aymehirrbetu7kxpzctvqfhqpy3hk7rjde6na7457pfyj7q", "homeRegion":"SEA", "appCatalogSetting":{ "compartmentOCID":"ocid1.compartment.region1..aaaaaaaaelzb6xjh2zsebgziqnbsdva7sk4ngmfq3m3r2vcgwkss4efum7gq" }, "lastUpdatedBy":"John Doe", "lastModifiedAt":"2018-10-02T06:32:11.000Z" } } ], "hasMore":false, "count":1, "totalResults":1, "links":[ { "rel":"CANONICAL", "href":"https://ocm-apis.us.oracle.com/appstore/publisher/v1/ocitenancies" }, { "rel":"SELF", "href":"https://ocm-apis.us.oracle.com/appstore/publisher/v1/ocitenancies?limit=100" } ] }Back to Top