View Tags for a Service Instance
get
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/tags
Returns tagging information for the specified Oracle Java Cloud Service instance.
Request
Path Parameters
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
Header Parameters
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
Response
Supported Media Types
- application/json
200 Response
OK
Examples
The following example shows how to retrieve tags for an Oracle Java Cloud Service instance by submitting a GET request on the REST resource using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.
cURL Command
curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/tags
Example of Response Header
The following shows an example of the response header.
HTTP/1.0 200 Connection established
HTTP/2 200
server: Oracle-Application-Server-11g
strict-transport-security: max-age=31536000;includeSubDomains
content-language: en
access-control-allow-headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
access-control-allow-methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
x-oracle-dms-ecid: 005Q45AAuAB3z015Rvl3id0007SK0002DM
x-oracle-dms-ecid: 005Q45AAuAB3z015Rvl3id0007SK0002DM
access-control-allow-origin: *
x-frame-options: DENY
content-type: application/json
vary: user-agent
date: Sun, 25 Mar 2018 19:02:51 GMT
content-length: 2485
Example of Response Body
The following is an example of the response returned.
{
"items": [
{
"key": "environment",
"value": "",
"readOnly": false,
"assignments": {
"services": [
{
"serviceType": "JaaS",
"serviceName": "ExampleInstance",
"assignmentState": "Assigned"
}
]
},
"links": [
{
"rel": "canonical",
"href":"https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags/environment/"
}
],
"state": "Ready"
},
{
"key": "department",
"value": "dev",
"readOnly": false,
"assignments": {
"services": [
{
"serviceType": "JaaS",
"serviceName": "ExampleInstance",
"assignmentState": "Assigned"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags/department/dev"
}
],
"state": "Ready"
},
{
"key": "application",
"value": "mysql",
"readOnly": true,
"isMeteringTag": true,
"isExternalTag": true,
"assignments": {
"services": [
{
"serviceType": "JaaS",
"serviceName": "ExampleInstance",
"assignmentState": "Assigned"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags/application/mysql"
}
],
"state": "Ready"
}
],
"limit": 200,
"hasMore": false,
"offset": 0,
"links": [
{
"rel": "first",
"href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags?offset=0"
},
{
"rel": "last",
"href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags?offset=0"
},
{
"rel": "canonical",
"href": "https://rest_server_url/paas/api/v1.1/tags/ExampleIdentityDomain/tags/"
},
{
"rel": "self",
"href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/JaaS/instances/ExampleInstance/tags"
}
]
}