権限の更新
ユーザーの権限はリクエストを介して更新されます。URI /requests POST
では、権限の追加を許可します。URI /requests DELETE
では、まだ承認されていない権限リクエストを取り下げます。リクエストが承認されると、実際に更新が行われます。
cURLの例: 権限のリクエスト
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X POST -u username:password -d @post.json https://pseudo.com/iam/governance/selfservice/api/v1/requests
POSTリクエスト本文
{ "requests" :[ { "reqJustification" : "Request entitlement for sub-ordinates", "reqBeneficiaryList": [ { "id": "1001" } ], "reqTargetEntities": [ { "entityId": "42", "entityType": "entitlement", "startDate" : "2019-07-01T18:30:00Z", "endDate" : "2019-10-25T18:30:00Z" } ] } ] }
POSTレスポンス本文
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/adminservice/api/v1/requests" } ], "requests": [ { "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/adminservice/api/v1/requests/2004" } ], "id": "2004", "reqStatus": "Request Created", "status": "SUCCESS" } ] }
cURLの例: 権限リクエストの取下げ
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X DELETE -u username:password -d @post.json https://pseudo.com/iam/governance/selfservice/api/v1/requests/2004
DELETEレスポンス本文
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests/2004" } ], "id": "2004", "status": "withdrawn" }