CreateTagNamespace
POST {{baseUrl}}/tagNamespaces
Creates a new tag namespace in the specified compartment.
You must specify the compartment ID in the request object (remember that the tenancy is simply the root compartment).
You must also specify a name for the namespace, which must be unique across all namespaces in your tenancy
and cannot be changed. The name can contain any ASCII character except the space (_) or period (.).
Names are case insensitive. That means, for example, myNamespace
and mynamespace
are not allowed
in the same tenancy. Once you created a namespace, you cannot change the name.
If you specify a name that's already in use in the tenancy, a 409 error is returned.
You must also specify a description for the namespace. It does not have to be unique, and you can change it with UpdateTagNamespace.
Request Body
{"name"=>"fugiat", "compartmentId"=>"{{tenancy_ocid}}", "description"=>"qui sunt eu labore"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations (e.g., if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"id":"Duis","compartmentId":"ut Excepteur in","name":"aliqua veniam sint","description":"commodo do sint ex","isRetired":false,"timeCreated":"1995-10-08T17:32:55.258Z","definedTags":{},"freeformTags":{},"lifecycleState":"DELETED"}