All Products
Search
Document Center

Compute Nest:ListServiceUsages

Last Updated:Oct 22, 2025

Queries the usage of your services.

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

computenestsupplier: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. The maximum value is 100. The default value is 20.

20

NextToken

string

No

The token that is used to retrieve the next page of results. You can obtain this token from the NextToken parameter in the response to the previous request.

AAAAAWns8w4MmhzeptXVRG0PUEU=

Filter

array<object>

No

The filter.

object

No

The filter.

Name

string

No

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

  • ServiceId: The service ID.

  • ServiceName: The service name.

  • Status: The service status.

  • SupplierName: The supplier name.

ServiceId

Value

array

No

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

string

No

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

5

SupplierRole

string

No

The supplier role.

Supplier

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

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

NextToken

string

The token to retrieve the next page of results. If this parameter is not empty, more results can be retrieved.

AAAAAYChudnQUoBH+mGWFpb6oP0=

MaxResults

integer

The number of entries returned per 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.

部署链接权限申请

SupplierName

string

The supplier name.

验收测试

Status

string

The service status. Valid values:

  • Submitted: The request is submitted and is pending approval.

  • Approved: The request is approved.

  • Rejected: The request is rejected.

  • Canceled: The request is canceled.

Submitted

Comments

string

The remarks on the approval.

审核通过。

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 information about the user who submitted the request.

string

The information about the user who submitted the request.

"Name": "123123", "Telephone": "18xxxxxxxx3", "EmailAddress": "texxxxxx@alia.com", "Company": "dsf", "Title": "", "Industry": "", "CustomConfig1": "xxx", "CustomConfig2": "ooo"

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": "部署链接权限申请",
      "SupplierName": "验收测试",
      "Status": "Submitted",
      "Comments": "审核通过。",
      "CreateTime": "2022-05-25T02:02:02Z",
      "UpdateTime": "2022-05-25T02:02:02Z",
      "UserInformation": {
        "key": "\"Name\": \"123123\",\n  \t\"Telephone\": \"18xxxxxxxx3\",\n  \t\"EmailAddress\": \"texxxxxx@alia.com\",\n  \t\"Company\": \"dsf\",\n  \t\"Title\": \"\",\n  \t\"Industry\": \"\",\n  \t\"CustomConfig1\": \"xxx\",\n  \t\"CustomConfig2\": \"ooo\""
      }
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.