Get an array of tags applied to an object
/api/tags/objects/
Returns a list of all the tags defined in the Container service database.
Note: This endpoint is deprecated and will no longer be available in the future release.
Request
There are no request parameters for this operation.
-
Authorization: apiKey
Type:
apiKey
Response
- application/json
200 Response
Default Response
Examples
The following example shows how to get an array of all tags that are assigned to an object. For each tag, the information includes the objects to which the tag is applied. You perform this task by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "GET"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/tags/objects/"
Example of Response Body
[
{
"kind": "host",
"id": "host_id",
"tags": [
"100"
]
}
]