All Products
Search
Document Center

Managed Service for Prometheus:UpgradeAddonRelease

Last Updated:May 09, 2024

Updates the release information of an add-on.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
arms:UpgradeAddonReleaseWrite
  • Environment
    acs:arms:{#regionId}:{#accountId}:environment/{#environmentId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AddonVersionstringYes

Version of Addon.

0.0.2
ValuesstringYes

Metadata information.

{"host":"mysql-service.default","port":3306,"username":"root","password":"roots"}
ReleaseNamestringYes

The name of Release.

mysql-1695372983039
DryRunbooleanNo

Whether to pre-check this request.

false
RegionIdstringNo

The ID of the region.

cn-hangzhou
EnvironmentIdstringYes

Environment ID.

env-xxx

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

27E653FA-5958-45BE-8AA9-14D884DC****
Codeinteger

The status code. 200 indicates success.

200
Successboolean

Whether the call was successful.

true
Messagestring

The information returned when the request parameter is incorrect.

success
Datastring

Return a message.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "27E653FA-5958-45BE-8AA9-14D884DC****",
  "Code": 200,
  "Success": true,
  "Message": "success",
  "Data": "success"
}

Error codes

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