【Login Mapping】添加一个映射配置¶
POST /api/v1/login_mapping/field/add
概述¶
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
workspaceUUID | string | Y | 工作空间UUID 例子: 工作空间UUID 允许为空: False |
sourceField | string | Y | 源字段 例子: sourceField 允许为空: False 最大长度: 40 |
sourceValue | string | Y | 源字段值 例子: 允许为空: False 最大长度: 40 |
targetValues | array | Y | 目标字段值(目前默认为 角色的UUID 值) 例子: ['readOnly'] |
参数补充说明¶
请求例子¶
curl '<Endpoint>/api/v1/login_mapping/field/add' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'X-Df-Access-Key: <AK key>' \
-H 'X-Df-Nonce: <随机字符>' \
-H 'X-Df-Signature: <签名>' \
-H 'X-Df-Timestamp: <时间戳>' \
--data-raw $'{"workspaceUUID": "wksp_xxxx","sourceField": "email","sourceValue": "xxx@qq.com","targetValues": [ "readOnly"]}'
响应¶
{
"code": 200,
"content": {
"createAt": 1715323808,
"creator": "sys",
"deleteAt": -1,
"id": null,
"isSystem": true,
"sourceField": "email",
"sourceValue": "xxx@qq.com",
"status": 0,
"targetValues": [
"readOnly"
],
"updateAt": 1715323808,
"updator": "sys",
"uuid": "lgmp_xxxxx",
"workspaceUUID": "wksp_xxxx"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-978CA704-5646-45D8-ACAE-84975BDD2250"
}