A AuthMS API Wiki API Reference iam.tianv.com →

POST /auth/me/role-activations

用户提交角色激活请求(即时提权JIT),提供角色ID、理由和有效时长

角色权限 `bearerAuth` application/json

Request Body

Schema: dto.RequestActivationRequest

FieldTypeRequiredExampleConstraintsDescription
duration string Yes
justification string Yes
role_id string Yes

Responses

StatusDescriptionSchema
201角色激活成功gitee_com_linmes_authms_base_dto.DataResponse-dto_ActivationResponse
400请求参数无效dto.SimpleResponseWrapper

Referenced Schemas

dto.ActivationResponse

FieldTypeRequiredExampleConstraintsDescription
activated_at string No
created_at string No
expire_at string No
id string No
justification string No
revoked_at string No
role_id string No
status string No
tenant_id string No
user_id string No

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.DataResponse-dto_ActivationResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ActivationResponse No
message string No
timestamp string No