Help Center> Cloud Stream Service> API Reference> APIs> APIs Related to Cluster Management> Updating Quota Information About a Specified User

Updating Quota Information About a Specified User

Function

This API allows tenants to modify quota information about a specified user as needed.

URI

  • URI format

    PATCH /v1.0/{project_id}/user_quota/{user_id}

  • Parameter description
    Table 1 URI parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    user_id

    Yes

    User ID.

Request

Update quota information about a specified user. The settings of related request parameters are in JSON format.

  • Example request
    {
    "spu_quota": 100,
      "clusters": [
        111,
        112
      ]
    }
  • Parameter description
    Table 2 Request parameters

    Parameter

    Mandatory

    Type

    Description

    spu_quota

    No

    Int

    Maximum SPU quota of a user.

    clusters

    No

    Int

    Maximum SPU quota of a cluster.

Response

  • Example response
    {
    "message_id": "CS.10001",
      "message": "Updating the user quota succeeds.",
      "current_time": 1533686888000
    }
  • Parameter description
    Table 3 Response parameters

    Parameter

    Mandatory

    Type

    Description

    message_id

    No

    String

    Message type ID.

    message

    No

    String

    Message content.

    current_time

    No

    Int

    Current time, expressed by milliseconds.

Status Code

Table 4 describes the status code.

Table 4 Status Code

Status Code

Description

200

Updating quota information about a specified user succeeds.

400

The input parameters are invalid.

Error Code

For details, see Error Codes.