All Products
Search
Document Center

Compute Nest:ListServiceUsages

Last Updated:Apr 10, 2026

Queries your service usages.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

computenest:ListServiceUsages

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

MaxResults

integer

No

The number of entries to return on each page. Maximum value: 100. Default value: 20.

20

NextToken

string

No

The token that is used to retrieve the next page of results. This value is the NextToken value returned from the previous API call.

AAAAAWns8w4MmhzeptXVRG0PUEU=

Filter

array<object>

No

The filter.

object

No

The filter.

Name

string

No

The name of the filter. You can query by one or more names. Valid values:

  • ServiceId: The service ID.

  • ServiceName: The service name.

  • Status: The service status.

  • SupplierName: The name of the supplier.

ServiceId

Value

array

No

A list of filter values.

string

No

The filter values. You can specify up to 10 values.

5

RegionId

string

No

The region ID.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

18AD0960-A9FE-1AC8-ADF8-22131Fxxxxxx

NextToken

string

A pagination token. It is returned when the results are not complete. To retrieve the next page of results, include this token in the NextToken parameter of the next request.

AAAAAYChudnQUoBH+mGWFpb6oP0=

MaxResults

integer

The number of entries returned on each page. The maximum value is 100. The default value is 20.

20

TotalCount

integer

The total number of entries.

1

ServiceUsages

array<object>

The service usage details.

array<object>

The service usage details.

UserAliUid

integer

The Alibaba Cloud account ID of the user.

127383705958xxxx

ServiceId

string

The service ID.

service-c9f36ec6d19b4exxxxxx

ServiceName

string

The service name.

Deployment link permission request

SupplierName

string

The name of the supplier.

Acceptance testing

Status

string

The service status. Valid values:

  • Submitted: The request is submitted and pending approval.

  • Approved: The request is approved.

  • Rejected: The request is rejected.

  • Canceled: The request is canceled.

Submitted

Comments

string

The remarks of the approval.

Approved.

CreateTime

string

The time when the request was created.

2022-05-25T02:02:02Z

UpdateTime

string

The time when the request was last updated.

2022-05-25T02:02:02Z

UserInformation

object

The user information.

string

The user information.

{ "ServiceId": "xxx", "EmailAddress": "email", "Company": "company", "Country": "country", "Telephone": "Applicant's phone number", "Name": "Applicant's name", "Title": "Applicant's title", "Industry": "Technology" }

Examples

Success response

JSON format

{
  "RequestId": "18AD0960-A9FE-1AC8-ADF8-22131Fxxxxxx",
  "NextToken": "AAAAAYChudnQUoBH+mGWFpb6oP0=",
  "MaxResults": 20,
  "TotalCount": 1,
  "ServiceUsages": [
    {
      "UserAliUid": 0,
      "ServiceId": "service-c9f36ec6d19b4exxxxxx",
      "ServiceName": "Deployment link permission request",
      "SupplierName": "Acceptance testing",
      "Status": "Submitted",
      "Comments": "Approved.",
      "CreateTime": "2022-05-25T02:02:02Z",
      "UpdateTime": "2022-05-25T02:02:02Z",
      "UserInformation": {
        "key": "{\n  \"ServiceId\": \"xxx\",\n  \"EmailAddress\": \"email\",\n  \"Company\": \"company\",\n  \"Country\": \"country\",\n  \"Telephone\": \"Applicant's phone number\",\n  \"Name\": \"Applicant's name\",\n  \"Title\": \"Applicant's title\",\n  \"Industry\": \"Technology\"\n}"
      }
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.