Files
doc-exports/docs/sfs/api-ref/sfs_02_0039.html
lizaoxu f8f1b77f86 sfs_api_260228
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com>
Co-authored-by: lizaoxu <lizaoxu@huawei.com>
Co-committed-by: lizaoxu <lizaoxu@huawei.com>
2026-04-27 08:13:23 +00:00

11 KiB

Querying Tags of a Shared File System

Function

This API is used to query all tags of a specified shared file system.

URI

  • GET /v2/{project_id}/sfs/{share_id}/tags
  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID of the operator.

    share_id

    Yes

    String

    Specifies the ID of the shared file system.

Request

  • Parameter description

    None

  • Example request

    None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    Array of resource_tags

    Specifies the list of tags.

    sys_tags

    Array of resource_tags

    Only the op_service permission can obtain this field.

    1. Currently, only one resource_tag structure key is used, _sys_enterprise_project_id.
    2. Currently, key contains only one value.

    This field is not returned for users without the op_service permission.

  • Description of field resource_tag

    Parameter

    Type

    Description

    key

    String

    Specifies the tag key.

    value

    String

    Specifies the tag value.

  • Example response
    {
           "tags": [
            {
                "key": "key1",
                "value": "value1"
            },
            {
                "key": "key2",
                "value": ""
            }
        ]
    }

Status Codes

  • Normal

    200

  • Abnormal

    Status Code

    Description

    400 Bad Request

    Invalid value.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    Access to the requested page is forbidden.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    The request is not completed because of a service error.