All Products
Search
Document Center

BSS OpenAPI:SetAllExpirationDay

Last Updated:Jul 18, 2024

Sets an expiration date for all Elastic Compute Service (ECS) instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
UnifyExpireDaystringYes

The expiration date. You can set an expiration date only for ECS instances that have not expired. The expiration date that you specify do not take effect on expired ECS instances. After the expiration date is set, the expiration date is used when you renew ECS instances.

You can set the expiration date to a day from the 1st to the 28th of each month.

10

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

200
Messagestring

The message that is returned.

The message that is returned
RequestIdstring

The ID of the request.

The ID of the request
Successboolean

Indicates whether the request is successful.

true

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The message that is returned",
  "RequestId": "The ID of the request",
  "Success": true
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history