Updating the Authentication Policy Configuration
Function
Updates the authentication policy configuration.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
workspace:authConfigs:update
Write
-
-
-
-
URI
PUT /v2/{project_id}/auth-config/method-config
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
No |
String |
Authentication configuration ID. |
|
is_multi_domain_authenticate_enabled |
No |
Boolean |
Whether multiple domains are supported. |
|
auth_type |
No |
String |
Authentication type. RADIUS_GATEWAY: SMS auxiliary authentication OAUTH2: OAuth 2.0 authentication CLIENT_TOKEN: local token authentication USER_PASSWORD: password authentication SAML2: SAML 2.0 federated authentication |
|
radius_gateway_config |
No |
RadiusGatewayConfig object |
SMS auxiliary authentication configuration. |
|
third_party_auth_config |
No |
ThirdPartyAuthConfig object |
Third-party authentication configuration information. |
|
emergency_login_mode |
No |
String |
Emergency login mode. |
|
saml2_auth_config |
No |
Saml2AuthConfig object |
SAML 2.0 authentication configuration information. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
enable |
No |
Boolean |
Enabled or not. |
|
app_id |
No |
String |
Username. |
|
password |
No |
String |
Password. |
|
token_url |
No |
String |
URL for obtaining the token. |
|
verification_cipher_url |
No |
String |
URL for obtaining the verification code. |
|
cert_content |
No |
String |
Certificate content (PEM). |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
update_type |
No |
String |
Updates the authentication configuration type. This parameter is used when the authentication type is third-party SSO authentication. |
|
enable |
No |
Boolean |
Enabled or not. |
|
update_object |
No |
String |
Updates the object that uses the authentication configuration. This parameter is used when the authentication type is third-party SSO authentication. |
|
auth_type |
No |
String |
Authentication type. |
|
client_interface_config |
No |
InterfacesConfig object |
Interface configuration. |
|
server_interface_config |
No |
InterfacesConfig object |
Interface configuration. |
|
third_password_update_type |
No |
String |
Updates the authentication configuration type. This parameter is used when the authentication type is third-party password authentication. ADD: adding; UPDATE: modifying; DELETE: deleting |
|
custom_definition |
No |
String |
Custom interface configuration. |
|
oauth_configs |
No |
String |
OAuth 2.0 configuration. |
|
ldap_configs |
No |
Array of LdapConfig objects |
SSO configuration information list. |
|
third_password_name |
No |
String |
Updates the object that uses the authentication configuration. This parameter is used when the authentication type is third-party password authentication. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
apply_platform |
No |
String |
Application platform. |
|
id |
No |
String |
ID. |
|
name |
No |
String |
Name. |
|
type |
No |
String |
Type. |
|
results |
No |
Map<String,String> |
Result. |
|
pagination |
No |
Map<String,Object> |
Pagination information. |
|
request |
No |
InterfacesRequest object |
API Request. |
|
response |
No |
String |
Response. |
|
result_check |
No |
String |
Check result. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
method |
No |
String |
Method. |
|
params |
No |
Map<String,String> |
Request parameter. |
|
headers |
No |
Map<String,String> |
Request header information. |
|
body |
No |
String |
Request body. |
|
url |
No |
String |
URL. |
|
configs |
No |
Map<String,Object> |
Configuration. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
host |
No |
String |
Host. |
|
port |
No |
Integer |
Port number. The value ranges from 1 to 65535. The default value is 389. |
|
base_dn |
No |
String |
base_dn. |
|
administrator_dn |
No |
String |
Administrator DN. |
|
administrator_password |
No |
String |
Administrator password. |
|
user_dn |
No |
String |
User DN. |
|
use_ssl |
No |
Boolean |
Whether to enable SSL. |
|
cert_content |
No |
String |
Certificate. |
|
username_attribute |
No |
String |
Username attribute. |
|
object_class |
No |
String |
User object class. |
|
security_type |
No |
String |
Security type. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
identity_provider |
No |
String |
Identity provider name. |
|
access_server_address |
No |
String |
Access server address. |
|
unique_user_identifier |
No |
String |
Unique user identifier. |
|
idp_metadata_info |
No |
IdpMetadataInfo object |
Identity provider (IDP) metadata information. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
No |
String |
IDP metadata ID |
|
file_name |
No |
String |
IDP metadata file name. |
|
content |
No |
String |
IDP metadata content (Base64). |
|
content_length |
No |
Number |
Metadata size (in bytes). The maximum size is 1 MB. |
|
create_time |
No |
Long |
Creation timestamp. |
|
update_time |
No |
Long |
Update timestamp. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
project_id |
String |
Project ID. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_detail |
String |
Error details. |
|
encoded_authorization_message |
String |
Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_detail |
String |
Error details. |
|
encoded_authorization_message |
String |
Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_detail |
String |
Error details. |
|
encoded_authorization_message |
String |
Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_detail |
String |
Error details. |
|
encoded_authorization_message |
String |
Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
error_detail |
String |
Error details. |
|
encoded_authorization_message |
String |
Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason. |
Example Requests
PUT /v2/fb2e5ec048384c8f9469d22db0037908/auth-config/method-config
{
"auth_type" : "RADIUS_GATEWAY",
"radius_gateway_config" : {
"enable" : true,
"app_id" : "sms3d356sd4f1s3e",
"password" : 123456,
"token_url" : "www.xxx-token.com",
"verification_cipher_url" : "www.xxx-sms.com",
"cert_content" : "cert_content"
}
}
Example Responses
Status code: 200
Response to the request for updating the authentication policy configuration.
{
"project_id" : "0e575d8e1a00f4742f70c00589a0ebdc"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response to the request for updating the authentication policy configuration. |
|
400 |
The request cannot be understood by the server due to malformed syntax. |
|
401 |
Authentication failed. |
|
403 |
No operation permissions. |
|
404 |
No resources found. |
|
500 |
An internal service error occurred. For details about the error code, see the error code description. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot