Gets the tenancy details for a given tenancyId
get
/appstore/publisher/v1/ocitenancies/{tenancyId}
Get the tenancy details for a given tenancyId of a partner.
Request
Path Parameters
-
tenancyId: boolean
this value specifies the tenancy which details need to be fetched.
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).
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example fetches the tenancy details, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "Authorization: Bearer Access-token" -H "X-Oracle-UserId: partner-email" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/ocitenancies/15813902"
Request Header
Authorization: Bearer Access-token X-Oracle-UserId: fname.lname@oracle.com
Request Body
NONEHTTP Status Code:
200 OK
JSON Response:
{ "TenancyConfiguration":{ "tenancyId":15813902, "tenancyName":"marketplace_dev", "tenancyOCID":"ocid1.tenancy.oc1..aaaaaaaavdytn45iavk7xwhirfjydmffne3zxae2kwlprhsm4aioi7c7pntq", "homeRegion":"IAD", "appCatalogSetting":{ "compartmentOCID":"ocid1.compartment.region1..aaaaaaaaelzb6xjh2zsebgziqnbsdva7sk4ngmfq3m3r2vcgwkss4efum7gq" }, "lastUpdatedBy":"Admin Appstore", "lastModifiedAt":"2018-10-10T05:22:38.175Z" }Back to Top