All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::ModifyInstanceAutoRenewAttribute

Last Updated:Jul 31, 2024

Description

Modifies the auto-renewal settings of an Elastic Compute Service (ECS) instance.

Syntax

Action: ACS::ECS::ModifyInstanceAutoRenewAttribute
Properties:
 regionId: String
 instanceId: String
 periodUnit: String
 duration: Number
 autoRenew: Boolean
 renewalStatus: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

instanceId

The ID of the ECS instance.

String

Yes

periodUnit

The unit of the subscription duration of the instance after renewal.

String

No

Month

duration

The subscription duration of the instance after renewal. When the periodUnit attribute is set to Year, the valid values of the duration attribute are 1, 2, and 3. When the periodUnit attribute is set to Month, the valid values of the duration attribute are 1, 2, 3, 6, and 12. When the periodUnit attribute is set to Week, the valid values of the duration attribute are 1, 2, 3, and 4.

Number

Yes

autoRenew

Specifies whether to enable auto-renewal for the instance.

Boolean

No

False

renewalStatus

The auto-renewal state of the instance. Valid values: AutoRenewal: Auto-renewal is enabled for the instance. Normal: Auto-renewal is disabled for the instance. NotRenewal: The instance is not renewed. The system no longer sends an expiration notification but sends only a renewal notification three days before the instance expires. To renew the instance, you can change the value of this attribute from NotRenewal to Normal and then manually renew the instance, or change the value of this attribute from NotRenewal to AutoRenewal.

String

No

AutoRenewal

Output

None

References

For more information, see ACS::ECS::ModifyInstanceAutoRenewAttribute at GitHub.