Updated on 2026-11-20 GMT+08:00

Detecting Related Status

Function

Detects related status.

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:getStatus

    Read

    -

    -

    -

    -

URI

GET /v2/{project_id}/auth-config/status

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

check_type

Yes

String

Detection type, including KERBEROS_PASSWORD and MFA_SERVER.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

check_kerberos_password_rsp

CheckKerberosPasswordRsp object

Response to the request for checking the correctness and validity period of the AD password.

invalid_code

String

Error code.

invalid_msg

String

Error description.

Table 4 CheckKerberosPasswordRsp

Parameter

Type

Description

user_name

String

AD LDAP connection account.

pwd_last_set_time

String

Time when the password was last changed.

pwd_never_expired

Boolean

The password never expires.

pwd_valid_days

Integer

Password validity period, in days.

pwd_valid

Boolean

Password correctness.

account_never_expired

Boolean

The account never expires.

account_expired_time

String

Account expiration time.

Status code: 400

Table 5 Response body parameters

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

Table 6 Response body parameters

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

Table 7 Response body parameters

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

Table 8 Response body parameters

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

GET /v2/29dfe82ada564ac2b927e1ff036d9a9b/auth-config/status

Example Responses

Status code: 200

{
  "check_kerberos_password_rsp" : {
    "user_name" : "xxx",
    "pwd_last_set_time" : "xxx",
    "pwd_never_expired" : false,
    "pwd_valid_days" : 10,
    "pwd_valid" : true,
    "account_never_expired" : false,
    "account_expired_time" : "xxx"
  }
}

Status Codes

Status Code

Description

200

Detection response.

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error. For details, see the error code description.

Error Codes

See Error Codes.