Files
doc-exports/docs/evs/api-ref/evs_04_3013.html
Zaoxu, Li 45c44093b9 EVS API version 20250109
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2025-03-04 07:05:14 +00:00

10 KiB

Batch Deleting Tags for the Specified EVS Disk

Function

This API is used to batch delete tags of a specified EVS disk.

Constraints

None

URI

  • URI format

    POST /v3/{project_id}/os-vendor-volumes/{volume_id}/tags/action

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    The project ID.

    volume_id

    Yes

    The disk ID.

Request

  • Request parameters

    Parameter

    Type

    Mandatory

    Description

    tags

    List<resource_tag>

    Yes

    The tag list. For details, see Parameters in the resource_tag field.

    action

    String

    Yes

    The operation to perform. The value can be create or delete.

    delete: deletes tags.

  • Parameters in the resource_tag field

    Parameter

    Type

    Mandatory

    Description

    key

    String

    Yes

    The tag key.

    value

    String

    No

    The tag value.

    • It can contain up to 43 Unicode characters.
    • It can be an empty string. The spaces before and after the character string are discarded.
    • It cannot contain the following characters:
      • Non-printable ASCII characters (0-31)
      • Special characters, including asterisks (*), left angle brackets (<), right angle brackets (>), backslashes (\), equal signs (=), commas (,), vertical bars (|), and slashes (/)
  • Example request
    {
        "action": "delete", 
        "tags": [
            {
                "key": "key1"
            }, 
            {
                "key": "key2"
            }
        ]
    }

Response

None

Status Codes

  • Normal

    204

Error Codes

For details, see Error Codes.