View Tags for a Service Instance

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/tags

Returns tagging information for the specified MySQL Cloud Service instance.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK
Body ()
The response body contains tagging information.
Root Schema : gettags-responsem
Type: object
The response body contains tagging information.
Show Source
Nested Schema : items
Type: array
Groups tags.
Show Source
Nested Schema : gettags-details
Type: object
Each object is a tag.
Show Source
Nested Schema : assignments
Type: object
Groups assignment details for this tag.
Show Source
Nested Schema : services
Type: array
Groups service details.
Show Source
Nested Schema : gettagsservice-details
Type: object
Show Source

Examples

The following example shows how to retrieve tags for a MySQL 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/MySQLCS/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": "MySQLCS",
                        "serviceName": "ExampleInstance",
                        "assignmentState": "Assigned"
                    }
                ]
            },
            "links": [
                {
                    "rel": "canonical",
                    "href":"https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/ExampleInstance/tags/environment/"
                }
            ],
            "state": "Ready"
        },
        {
            "key": "department",
            "value": "dev",
            "readOnly": false,
            "assignments": {
                "services": [
                    {
                        "serviceType": "MySQLCS",
                        "serviceName": "ExampleInstance",
                        "assignmentState": "Assigned"
                    }
                ]
            },
            "links": [
                {
                    "rel": "canonical",
                    "href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/ExampleInstance/tags/department/dev"
                }
            ],
            "state": "Ready"
        },
        {
            "key": "application",
            "value": "mysql",
            "readOnly": true,
            "isMeteringTag": true,
            "isExternalTag": true,
            "assignments": {
                "services": [
                    {
                        "serviceType": "MySQLCS",
                        "serviceName": "ExampleInstance",
                        "assignmentState": "Assigned"
                    }
                ]
            },
            "links": [
                {
                    "rel": "canonical",
                    "href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/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/MySQLCS/instances/ExampleInstance/tags?offset=0"
        },
        {
            "rel": "last",
            "href": "https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/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/MySQLCS/instances/ExampleInstance/tags"
        }
    ]
}