QueryMonthlySlaList

Updated at:
Copy as MD

Queries the SLA compensation list for users.

Operation description

Provides the list of SLA compensation details for users, including only data from the last two months.

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

bssapi:QueryMonthlySlaList

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Months

array

No

The list of months in the yyyyMM format.

[202602,202603]

integer

No

The month in the yyyyMM format. Only the last two months are supported.

202603

ProductCodes

array

No

The product codes used for filtering.

["ecs","oss"]

string

No

The code of the cloud service.

oss

InstanceIds

array

No

The instance IDs used for filtering.

["instance_1","instance_2"]

string

No

The instance ID. Separate multiple IDs with commas. A maximum of 100 IDs are supported.

rm-xxxxxxxxxxxx

PayStatuses

array

No

The compensation statuses used for filtering. Valid values: 0 and 1.

integer

No

The compensation status. Valid values: 0: Not compensated. 1: Compensated.

1

CurrentPage

integer

No

The current page number. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10.

10

EcIdAccountIds

array<object>

No

The list of enterprises and accounts. If this parameter is left empty, the current account is queried.

object

No

The list of enterprises and accounts. If this parameter is left empty, the current account is queried.

EcId

string

No

The ID of the enterprise entity.

1501603440974415

AccountIds

array

No

The list of account IDs to access. If this parameter is left empty, all accounts under the current entity ID are selected.

integer

No

The ID of the member accounts.

1501603440974415

Nbid

string

No

The ID of the primary marketplace. If this parameter is left empty, the marketplace ID of the current user is used.

2684201000001

Response elements

Element

Type

Description

Example

object

BssApiPageResult

CurrentPage

integer

The current page number.

1

PageSize

integer

The number of entries per page.

10

TotalCount

integer

The total number of records.

5

Data

array<object>

The list of data.

object

The message body.

Month

integer

The month in the yyyyMM format.

202603

DamagedId

string

The unique identifier of the damage record, which is used for targeted claims.

9b7***9413

ProductCode

string

The code of the product.

oss

InstanceId

string

The ID of the instance.

OSSBAG-cn-0xl0n****003

AvailableRate

number

The service availability.

99.9155

PayRate

number

The compensation ratio, in percentage.

10

MonthlyServiceCharge

number

The monthly service fee.

365.00

ShouldPaySum

number

The compensation amount to be paid.

36.5

PayStatus

integer

The compensation status. Valid values: 0: Not compensated. 1: Compensated. 2: No compensation required.

1

PayDescription

string

The compensation description.

SLA compensation

Metadata

any

The metadata of the response structure.

{}

RequestId

string

The ID of the request.

6000EE23-274B-4E07-A697-FF2E999520A4

Examples

Success response

JSON format

{
  "CurrentPage": 1,
  "PageSize": 10,
  "TotalCount": 5,
  "Data": [
    {
      "Month": 202603,
      "DamagedId": "9b7***9413",
      "ProductCode": "oss",
      "InstanceId": "OSSBAG-cn-0xl0n****003",
      "AvailableRate": 99.9155,
      "PayRate": 10,
      "MonthlyServiceCharge": 365,
      "ShouldPaySum": 36.5,
      "PayStatus": 1,
      "PayDescription": "SLA compensation"
    }
  ],
  "Metadata": "{}",
  "RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified request contains invalid parameters.
500 InternalError The request processing has failed due to some unknown error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.