ListServiceUsages

Updated at:

Queries the current service usage applications of the current user.

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 per page for a paging query. Maximum value: 100. Default value: 20.

20

NextToken

string

No

The pagination token. Set the value to the NextToken value returned from the previous API call.

AAAAAWns8w4MmhzeptXVRG0PUEU=

Filter

array<object>

No

The filters.

object

No

The filters.

Name

string

No

The name of the filter. You can specify one or more filter 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. Valid values of N: 1 to 10.

string

No

The filter values. Valid values of N: 1 to 10.

5

SupplierRole

string

No

The supplier role.

Supplier

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

The pagination token. Set the value to the NextToken value returned from the previous API call.

AAAAAYChudnQUoBH+mGWFpb6oP0=

MaxResults

integer

The number of entries per page for a paging query. Maximum value: 100. Default value: 20.

20

TotalCount

integer

The total number of entries.

1

ServiceUsages

array<object>

The service usage information.

array<object>

The service usage information.

UserAliUid

integer

The Alibaba Cloud UID of the user.

127383705958xxxx

ServiceId

string

The service ID.

service-c9f36ec6d19b4exxxxxx

ServiceName

string

The service name.

Application for deployment link permissions

SupplierName

string

The supplier name.

Acceptance test

Status

string

The service status. Valid values:

  • Submitted: submitted and pending approval.

  • Approved: approved.

  • Rejected: rejected.

  • Canceled: canceled.

Submitted

Comments

string

The approval comments.

Approved

CreateTime

string

The creation time.

2022-05-25T02:02:02Z

UpdateTime

string

The update time.

2022-05-25T02:02:02Z

UserInformation

object

The information about the user who submitted the application.

string

The information about the user who submitted the application.

"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": "Application for deployment link permissions",
      "SupplierName": "Acceptance test",
      "Status": "Submitted",
      "Comments": "Approved",
      "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.