• Workspace

workspace
  1. Help Center
  2. Workspace
  3. API Reference
  4. Desktop Dedicated Hosts
  5. Querying the Type Quotas of Desktop Dedicated Hosts

Querying the Type Quotas of Desktop Dedicated Hosts

Function

This interface is used to query the type quotas of desktop dedicated hosts.

URI

  • URI format

    GET /v1.0/{project_id}/workspace-dedicated-hosts/quota-sets

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    string

    Specifies the user ID.

The following table lists the parameters for querying the type quotas of desktop dedicated hosts.

Parameter

Mandatory

Type

Description

resource

No

string

Specifies the type quota. Possible values are:

  • general
  • h1

Request

  • Request example
    GET /v1.0/29dfe82ada564ac2b927e1ff036d9a9b/workspace-dedicated-hosts/quota-sets?resource=general

Response

  • Description

    Name

    Type

    Description

    quota_set

    List data structure [1]

    Specifies the quota list of desktop dedicated host types.

[1] quota_set field data structure description

Name

Type

Description

resource

string

Specifies the type quota.

hard_limit

string

Specifies the hardware quota.

used

string

Specifies the used quota.

  • Response example
    { 
        "quota_set":[
           { 
                "used": 2,
             "resource": "general", 
                "hard_limit": 5
           }, 
           { 
                "used": 2,
             "resource": "h1", 
                "hard_limit": 5
           } 
     ] 
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    The request syntax is incorrect and cannot be understood by the server.

    401 Unauthorized

    Authentication fails.

    403 Forbidden

    You are not authorized to perform the operation.

    404 Not Found

    The requested resource is not found.

    405 Method Not Allowed

    The method specified in the request is not allowed.

    500 Internal Server Error

    The internal service error. For details about error codes, see Error Code Description.

    503 Service Unavailable

    The service is unavailable.