Help Center/ Workspace/ API Reference/ Workspace APIs/ Tenant Configurations/ Creating an Auxiliary Authentication Policy
Updated on 2026-11-20 GMT+08:00

Creating an Auxiliary Authentication Policy

Function

Creates an auxiliary 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:assistAuthConfigs:create

    Write

    -

    -

    -

    -

URI

POST /v2/{project_id}/assist-auth-config/method-config

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

name

No

String

Policy name. Only letters, digits, hyphens (-), and underscores (_) are allowed.

priority

No

Integer

Priority. The value ranges from 1 to 100.

auth_type

No

String

Authentication type.

  • NONE: no auxiliary authentication.

  • OTP: OTP auxiliary authentication.

  • RADIUS_GATEWAY: one-step RADIUS auxiliary authentication.

  • RADIUS: RADIUS auxiliary authentication.

  • SMS_MFA: SMS MFA auxiliary authentication.

access_mode

No

String

Access mode.

  • INTERNET: access through the Internet.

  • DEDICATED: access through Direct Connect.

  • BOTH: all.

apply_objects

No

Array of ApplyObjectsForStrategy objects

Users or user groups to be applied.

description

No

String

Policy description.

enabled

No

Boolean

Whether the status is enabled.

Table 3 ApplyObjectsForStrategy

Parameter

Mandatory

Type

Description

object_type

Yes

String

Type of the bound object.

  • USER: user.

  • USER_GROUP: user group.

  • ALL: all users.

object_id

Yes

String

User ID or user group ID.

object_name

Yes

String

Username or user group name.

effect_type

No

String

Effective type.

  • INCLUDE: whitelist.

  • EXCLUDE: blacklist.

config_id

No

String

Policy ID.

Response Parameters

Status code: 201

Table 4 Response body parameters

Parameter

Type

Description

data

data object

Response data.

Table 5 data

Parameter

Type

Description

config_id

String

Policy ID.

Status code: 400

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

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

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.

Status code: 404

Table 9 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 10 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

None

Example Responses

None

Status Codes

Status Code

Description

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

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

Error Codes

See Error Codes.