Enables or disables the logon security settings for a specific asset.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyLoginSwitchConfig

The operation that you want to perform.

Set the value to ModifyLoginSwitchConfig.

Item String Yes login_common_account

The type of the alert that you want to enable or disable. Valid values:

  • login_common_ip: uncommon logon IP address alerts
  • login_common_time: uncommon logon time alerts
  • login_common_account: uncommon logon account alerts
Status Integer Yes 0

The status of the logon security settings. Valid values:

  • 0: disabled
  • 1: enabled

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String B256A525-7E42-4BB9-A27C-9017FDDFF1A2

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyLoginSwitchConfig
&Item=login_common_account
&Status=0
&<Common request parameters>

Sample success responses

XML format

<ModifyLoginSwitchConfigResponse>
      <RequestId>B256A525-7E42-4BB9-A27C-9017FDDFF1A2</RequestId>
</ModifyLoginSwitchConfigResponse>

JSON format

{ 
  "RequestId": "B256A525-7E42-4BB9-A27C-9017FDDFF1A2"
}

Error codes

For a list of error codes, visit the API Error Center.