ListTagNamespaces

GET {{baseUrl}}/tagNamespaces?compartmentId={{tenancy_ocid}}&limit=693&includeSubcompartments=true

Lists the tag namespaces in the specified compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment (remember that the tenancy is simply the root compartment).
pagestringThe value of the opc-next-page response header from the previous "List" call.
limitnumberThe maximum number of items to return in a paginated "List" call.
includeSubcompartmentsbooleanAn optional boolean parameter indicating whether to retrieve all tag namespaces in subcompartments. If this
parameter is not specified, only the tag namespaces defined in the specified compartment are retrieved.
lifecycleStatestringA filter to only return resources that match the given lifecycle state. The state value is case-insensitive.

HEADERS

KeyDatatypeRequiredDescription
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header

RESPONSES

status: OK

[{"compartmentId":"ex","definedTags":{},"description":"eu fugiat eiusmod ea aliqua","freeformTags":{},"id":"esse aliqua laboris","isRetired":false,"lifecycleState":"dolore Ut incididunt","name":"Lorem amet","timeCreated":"2007-12-17T07:34:23.101Z"},{"compartmentId":"pariatur cupidatat minim qui","definedTags":{},"description":"non ut consequat","freeformTags":{},"id":"v","isRetired":true,"lifecycleState":"aliquip","name":"ea nostrud proident ut","timeCreated":"2020-08-02T08:11:28.020Z"}]