You need to enable JavaScript to run this app.
RDS for SQL Server

RDS for SQL Server

Copy page
Download PDF
Account management
ModifyDBAccountStatus - Modify the status of an instance account
Copy page
Download PDF
ModifyDBAccountStatus - Modify the status of an instance account
Call the ModifyDBAccountStatus operation to enable or disable an instance account.​
Request parameters​
This section describes only the request parameters specific to this API and some common parameters. For more information, refer to Common parameters.​
Action stringrequired Example value: ModifyDBAccountStatus​
The operation to perform. The value is ModifyDBAccountStatus.​
​
Version stringrequired Example value: 2022-01-01​
The API version is 2022-01-01.​
​
InstanceId stringrequired Example value: mssql-abc****​
Instance ID.​
​
AccountName stringrequired Example value: user1​
Account name.​
​
AccountStatus string requiredExample value: Enable​
Modify the account status to enabled or disabled. Possible values:​
  • Enable: Enable the account.​
  • Disable: Disable the account.​
​
​
Response parameters​
None​
Request example​
​
POST /?Action=ModifyDBAccountStatus&Version=2022-01-01 HTTP/1.1​
Host: rds-mssql.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260112T123840Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260112/cn-beijing/rds_mssql/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"InstanceId": "mssql-abc****",​
"AccountName": "user1",​
"AccountStatus": "Enable"​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "20260112203903021005048049******",​
"Action": "ModifyDBAccountStatus",​
"Version": "2022-01-01",​
"Service": "rds_mssql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
Error code​
The following table lists the business logic-related error codes for this API. For public error codes, see the Public error codes document.​
​
Status code​
Error code​
Error message​
Description​
400​
InvalidParameter​
The specified parameter %s is not valid.​
The value of Parameter {parameter1} is invalid.​
​
​
Last updated: 2026.04.03 18:26:14