Domain name for API request: csip.intl.tencentcloudapi.com.
This API is used to modify host login methods in batches.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyMachinesLoginType. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| LoginType | Yes | Integer | Login method: 0 - original method, 1 - scan code for password-free log-in |
| MemberId.N | No | Array of String | Group account member id |
| InstanceIds.N | No | Array of String | instance_id list (at least one of instance_ids and quuids must be specified) |
| Quuids.N | No | Array of String | Host quuid list (fill in at least one of instance_ids and quuids) |
| ExcludeQuuid.N | No | Array of String | Excluded quuid set |
| Scope | No | Integer | Enable scope: 0 - selected host, 1 - all hosts |
| From | No | Integer | Operation source: |
| RequestVersion | No | Integer | Request version 0 Original version 1 Policy-based request |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | Integer | Task ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Disable QR code log-in
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyMachinesLoginType
<Common request parameters>
{
"LoginType": 0,
"Scope": 1,
"From": 1,
"RequestVersion": 1
}
{
"Response": {
"RequestId": "ad9c4066-5339-4a6d-a42c-498afa737347",
"TaskId": 11919
}
}
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyMachinesLoginType
<Common request parameters>
{
"LoginType": 1,
"InstanceIds": [
"ins-jadv34x",
"ins-kv34ivm"
]
}
{
"Response": {
"TaskId": 1,
"RequestId": "d16a1915-09af-4153-8a73-9e5a8d9f6407"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
フィードバック