edit-icon download-icon

ModifyInstanceAttribute

Last Updated: Mar 15, 2018

Description

This API is used to modify the attributes of an instance, including the name or password.

Request parameters

Name Type Required Description
Common request parameters - - For more information, see Common request parameters.
Action String Yes The API name. Value: ModifyInstanceAttribute.
InstanceId String Yes Instance ID (globally unique)
InstanceName String No Modified instance name.
The name is a string of 2 to 128 characters and must start with a letter (uppercase or lowercase) or a Chinese character. Special characters, such as the at sign (@), slash (/), colon (:), equal sign (=), quotation mark (“), angle brackets (<>), braces ({}), and square brackets ([]) and space, are not supported.
NewPassword String No Instance password.
The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.
Note: The following special characters are not supported now: Exclamation mark (!), angle brackets (<>), parentheses (()), square brackets ([]), braces ({}), comma (,), backquote (`), tilde (~), period (.), hyphen (-), underscore (_), at sign (@), number sign (#), dollar sign ($), percent sign (%), caret (^), ampersand (&), and asterisk (*).

Response parameters

Name Type Description
Common response parameters - For more information, see Common return parameters.

Example

Request example

  1. https://r-kvstore.aliyuncs.com
  2. ?<Common request parameters>
  3. &Action= ModifyInstanceAttribute
  4. &InstanceId=657e361a074646d5
  5. &NewPassword=Qa12345678
  6. &InstanceName=TestInstance

Response example

  1. {
  2. "RequestId" : "E3B35BEA-9EB0-402C-88CF-C46CCCC1EE59"
  3. }
Thank you! We've received your feedback.