UpdateTagDefault

put

/20160918/tagDefaults/{tag_default_id}

Updates the specified tag default. If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. If the isRequired flag is set to true, the value is set during resource creation. If the isRequired flag is set to false, the value you enter is set during resource creation.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
  • For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Request object for updating a tag default.
Root Schema : UpdateTagDefaultDetails
Type: object
Show Source
  • If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. If the isRequired flag is set to "true", the value is set during resource creation. If the isRequired flag is set to "false", the value you enter is set during resource creation. Example: false
  • The default value for the tag definition. This will be applied to all resources created in the Compartment.
Back to Top

Response

Supported Media Types

200 Response

The tag default was updated.
Headers
  • For optimistic concurrency control. See if-match.
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : TagDefault
Type: object
Tag defaults let you specify a default tag (tagnamespace.tag="value") to apply to all resource types in a specified compartment. The tag default is applied at the time the resource is created. Resources that exist in the compartment before you create the tag default are not tagged. The TagDefault object specifies the tag and compartment details. Tag defaults are inherited by child compartments. This means that if you set a tag default on the root compartment for a tenancy, all resources that are created in the tenancy are tagged. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator.
Show Source
  • The OCID of the compartment. The tag default applies to all new resources that get created in the compartment. Resources that existed before the tag default was created are not tagged.
  • The OCID of the tag default.
  • If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. If the isRequired flag is set to "true", the value is set during resource creation. If the isRequired flag is set to "false", the value you enter is set during resource creation. Example: false
  • Allowed Values: [ "ACTIVE" ]
    The tag default's current state. After creating a TagDefault, make sure its lifecycleState is ACTIVE before using it.
  • locks
    Locks associated with this resource.
  • The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
  • The name used in the tag definition. This field is informational in the context of the tag default.
  • The OCID of the tag namespace that contains the tag definition.
  • Date and time the TagDefault object was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • The default value for the tag definition. This will be applied to all resources created in the compartment.
Nested Schema : locks
Type: array
Locks associated with this resource.
Show Source
  • ResourceLock
    Resource locks are used to prevent certain APIs from being called for the resource. A full lock prevents both updating the resource and deleting the resource. A delete lock prevents deleting the resource.
Nested Schema : ResourceLock
Type: object
Resource locks are used to prevent certain APIs from being called for the resource. A full lock prevents both updating the resource and deleting the resource. A delete lock prevents deleting the resource.
Show Source
Example Response (application-json)
{   "id": "ocid1.tagdefault.aaaaaaaaexampleuniqueID",   "compartmentId": "ocid1.compartment.aaaaaaaaexampleuniqueID",   "tagNamespaceId": "ocid1.namespace.aaaaaaaasexampleuniqueID",   "tagDefinitionId": "ocid1.tagdefinition.aaaaaaaasexampleuniqueID",   "tagDefinitionName": "Finance",   "value": "W123",   "timeCreated": "2018-11-22T19:00:00.000Z",   "lifecycleState": "ACTIVE",   "isRequired": "false" } 

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

412 Response

Precondition Failed
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

Default Response

An error has occurred.
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
Back to Top