doc-exports/docs/dns/api-ref/dns_api_67002.html
Qin Ying, Fan cf1007c84e DNS API 20240223 version
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2024-05-16 13:48:49 +00:00

6.6 KiB

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. You can obtain it in Obtaining a Project ID.

resource_type

Yes

String

Resource type.

  • DNS-public_zone
  • DNS-private_zone
  • DNS-public_recordset
  • DNS-private_recordset
  • DNS-ptr_record

resource_id

Yes

String

Resource ID

key

Yes

String

Tag key, which cannot be left blank or be an empty string

Request

  • Parameter description

    None

  • Example request
    Delete tags for the private zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:
    DELETE https://{DNS_Endpoint}/v2/{project_id}/DNS-private_zone/ff8080825b8fc86c015b94bc6f8712c3/tags/{key}

Response

None

Returned Value

If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.

For details, see Status Code.