All Products
Search
Document Center

CloudOps Orchestration Service:ACS::CN::DetermineUpgradeServiceInstanceTypeAndPerformUpgrade

Last Updated:Jul 31, 2024

Description

Identifies the upgrade type of a service instance based on the type attribute and upgrades the service instance.

Syntax

Action: ACS::CN::DetermineUpgradeServiceInstanceTypeAndPerformUpgrade
Properties:
 regionId: String
 serviceInstanceId: String
 resourceName: String
 applicationGroupName: String
 artifactsUrl: String
 artifactsDownloadDirectory: String
 commandType: String
 commandContent: String
 workingDir: String
 timeout: Number
 enableParameter: Boolean
 parameters: Json
 whetherModifyEssLifecycleHook: Boolean
 imageId: String
 type: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

serviceInstanceId

The ID of the Compute Nest service instance.

String

Yes

resourceName

The resource name of the Elastic Compute Service (ECS) instance on which the command is run.

String

No

applicationGroupName

The application group name of the ECS instance on which the command is run.

String

No

artifactsUrl

The source URL of files.

String

No

artifactsDownloadDirectory

The directory to which files are downloaded.

String

No

commandType

The command type.

String

No

RunShellScript

commandContent

The command content.

String

Yes

The command can be up to 16,384 bytes in length.

workingDir

The directory in which the command is run.

String

No

timeout

The timeout period.

Number

No

3600

enableParameter

Specifies whether the command contains encryption parameters or custom parameters.

Boolean

False

parameters

The command parameters.

Json

No

{}

whetherModifyEssLifecycleHook

Specifies whether to update the lifecycle hook of the scaling group.

Boolean

No

False

imageId

The image ID.

String

No

type

The upgrade type.

String

Yes

Output

None

References

For more information, see ACS::CN::DetermineUpgradeServiceInstanceTypeAndPerformUpgrade at GitHub.