All Products
Search
Document Center

CloudSSO:SetLoginPreference

Last Updated:Mar 29, 2024

Configures the logon preference of CloudSSO users.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DirectoryIdstringYes

The ID of the directory.

d-00fc2p61****
LoginNetworkMasksstringNo

The IP address whitelist. CloudSSO users can log on to the CloudSSO user portal only by using the IP addresses in the whitelist. Limits:

  • You can enter IP addresses or CIDR blocks. IPv4 addresses are supported.
  • You can enter up to 100 IP addresses or CIDR blocks. Separate multiple IP addresses or CIDR blocks with semicolons (;).
  • If you do not specify this parameter, the original settings are retained.
  • If you set this parameter to a semicolon (;), the value of this parameter is cleared.
  • The IP address whitelist takes effect only on CloudSSO users who want to log on to the CloudSSO user portal by using the username-password logon or single sign-on (SSO) method. The IP address whitelist does not take effect on CloudSSO users who access accounts in a resource directory from the CloudSSO user portal.
192.168.0.0/16;10.0.0.0/8

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

9B13E4EE-3853-5852-9165-597C32AD8FB7

Examples

Sample success responses

JSONformat

{
  "RequestId": "9B13E4EE-3853-5852-9165-597C32AD8FB7"
}

Error codes

For a list of error codes, visit the Service error codes.