You can call this operation to modify the logon security settings on the details page of a specified 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 ModifyLoginBaseConfig

The operation that you want to perform. Set the value to ModifyLoginBaseConfig.

Config String Yes {"startTime":"00:00","endTime":"02:00"}

The logon security settings on the details page of the specified asset.

Target String Yes i-ecs-ssssasss-xxxx

The UUID of the target server.

Type String Yes login_common_time

The type of logon settings that you want to delete.

  • login_common_ip: common logon IP addresses
  • login_common_time: common logon time
  • login_common_account: common logon accounts

Response parameters

Parameter Type Example Description
RequestId String 6BD40006-2A29-4769-8AB5-BC0F0E25C273

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyLoginBaseConfig
&Config={"startTime":"00:00","endTime":"02:00"}
&Target=i-ecs-ssssasss-xxxx
&Type=login_common_time
&<Common request parameters>

Sample success responses

XML format

<ModifyLoginBaseConfigResponse>
    <requestId>6BD40006-2A29-4769-8AB5-BC0F0E25C273</requestId>
</ModifyLoginBaseConfigResponse>

JSON format

{
    "requestId":"6BD40006-2A29-4769-8AB5-BC0F0E25C273"
}

Error codes

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