• Scalable File Service

sfs
  1. Help Center
  2. Scalable File Service
  3. API Reference
  4. SFS APIs
  5. Share Tag
  6. Querying Tag Information About a Share

Querying Tag Information About a Share

Function

This interface is used to query all tag information about the specified share.

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 share ID.

Request

  • Parameter description

    None

  • Example request

    None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    List<resource_tag>

    List of tags

    sys_tags

    List<resource_tag>

    Only the op_service permission can obtain this field.

    1. Currently, only one tag structure key is used, _sys_enterprise_project_id.
    2. Currently, key contains only one value. 0 indicates the default enterprise project.

    This field cannot be returned in non-op_service scenarios.

  • Description of field resource_tag

    Parameter

    Type

    Description

    key

    string

    Specifies the key of the tag.

    value

    string

    Specifies the value of the tag.

  • 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

    You are forbidden to access the requested page.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    The request is not completed because of a service error.