List All Tags
get
/paas/api/v1.1/tags/{identityDomainId}/tags
Returns all tags and tag assignments in the specified identity domain ID.
Use the optional ?services
query parameter to list tags for one or more specific service instances.
Use the optional ?tagFilter
query parameter to provide a search criteria based on tags.
Request
Path Parameters
-
identityDomainId: string
Identity domain ID for the Oracle Data Hub Cloud Service account.
Query Parameters
-
services(optional): string
When set to a specific service type and service name in the format
service_type.instance_name
, the response includes tags and assignments for the specified instance only. Use a comma separated list to get information for two or more service instances.For example:
DHCS.ExampleInstance
DHCS.ExampleInstance,DHCS.MyInstance01
-
tagFilter(optional): string
An expression using tag keys and values for filtering search results. Only results that satisfy the expression are returned in a search.
When creating your filter expression:
- Use the percent sign (%) to match multiple characters.
- Use the underscore character (_) to match a single character.
- Precede a literal character by a backslash character (\) if a key or value contains a literal percent sign (%), apostrophe or single quote ('), or underscore (_).
Valid expressions include:
'foo':'bar'
- Finds all tags and assignments that have a key of 'foo' and a value of 'bar''ora\_%':'%prod%'
- Finds all tags and assignments that have a key starting with 'ora_' and a value containing 'prod'.'haMode'
- Finds all tags and assignments that have a tag key of 'haMode''ora\_%'
- Finds all tags and assignments that a tag key starting with 'ora_''site':'pe_r'
- Uses the underscore wildcard to wildcard-match only a single character. For example,site=pear
orsite=peer
is a match.site=pepper
is not a match.'foo':''
- Finds all tags and assignments that have a tag key of 'foo' and an empty string as the value.'accuracy':'100\%'
- Uses the literal percent sign in a value, so that it is not interpreted as a wildcard match.'type':'Abe\'s test'
- Uses the apostrophe (single quote) in a key or value.'key\_contains\_underscores':'value\_does\_too'
- Uses underscores in a key or value, so that they are not interpreted as single-character wildcards.
Response
Supported Media Types
- application/json
200 Response
OK.
The response body contains information about all tags and their assignments.
Nested Schema : serviceassignment-details
Type:
object
Each object describes a service resource.
Show Source
-
serviceName:
string
Name of the service instance (to tag or tagged).
-
serviceType:
string
Type of service.
For example,
DHCS
for a Data Hub Cloud Service instance.