• Domain Name Service

dns
  1. Help Center
  2. Domain Name Service
  3. API Reference
  4. API Description
  5. Tag Management
  6. Deleting a Resource Tag

Deleting a Resource Tag

Function

Delete a resource tag.

The API is idempotent.

When you delete a tag that does not exist, the system reports that the tag does not exist.

URI

DELETE /v2/{project_id}/{resource_type}/{resource_id}/tags/{key}

For details, see Table 1.
Table 1 Parameters in the URI

Parameter

Mandatory

Type

Description

project_id

Yes

string

Project ID of the tenant

resource_type

Yes

string

Resource type, which can be DNS-public_zoneDNS-private_zoneDNS-public_recordsetDNS-private_recordset, or DNS-ptr_record

resource_id

Yes

string

Resource ID

key

Yes

string

Tag key

The key cannot be left blank or be an empty string.

Request

None

Response

None

Returned Value

  • Normal
    Table 2 Return code for successful requests

    Returned Value

    Description

    204

    No Content

  • Abnormal
    Table 3 Return code for failed requests

    Returned Value

    Description

    400

    Invalid tag.

    401

    Authentication failed.

    403

    Insufficient permission.

    404

    The requested resource was not found.

    500

    An exception occurs in the system.