• Scalable File Service

sfs
  1. Help Center
  2. Scalable File Service
  3. API Reference
  4. SFS APIs
  5. Share Tag
  6. Querying All Share Tags of a Tenant

Querying All Share Tags of a Tenant

Function

This interface is used to query the tag set of a tenant's all shares.

URI

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

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    string

    Specifies the project ID of the operator.

Request

  • Parameter description

    None

  • Example request

    None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    List<tag>

    List of tags

  • Description of field tag:

    Parameter

    Type

    Description

    key

    string

    Specifies the key of the tag.

    values

    List<string>

    Lists the values of the tag. The value is a list of a tenant's all share tag values. Only one of the same tag values is displayed.

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

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.