特権ID利用申請
- 印刷する
特権ID利用申請
- 印刷する
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
特権IDの利用申請を行う。申請したアカウントは利用期間中、iDoperationによって貸し出される。
HEADER PARAMETERS
Content-Type required | string Value: "application/json" リクエストの形式 |
Authorization required | string 認証情報 (付録参照) |
Accept required | string Value: "application/json" レスポンスの形式 |
REQUEST BODY SCHEMA: application/json
number required | string <= 64 characters 申請番号 | ||||||||
name required | string <= 128 characters 申請名 | ||||||||
workflow_name required | string <= 64 characters ワークフロー名 | ||||||||
start_time required | string <date-time> 利用期間 (開始)
| ||||||||
end_time required | string <date-time> 利用期間 (終了)
| ||||||||
purpose | string or null <= 1024 characters 利用目的 | ||||||||
operation | string or null <= 1024 characters 作業内容 | ||||||||
user_name required | string <= 64 characters 申請者名 | ||||||||
applied_at required | string <date-time> 申請日時
| ||||||||
approval_user_name | string or null <= 64 characters 承認者名 | ||||||||
approved_at | string or null <date-time> 承認日時
| ||||||||
required | Array of objects 申請書貸出アカウント | ||||||||
Array
|
Responses
RESPONSE SCHEMA: application/json
id required | string <uuid> 申請書ID | ||||||||||||||||||||||||||||||||||||||||
workflow_name required | string ワークフロー名 | ||||||||||||||||||||||||||||||||||||||||
status required | integer ステータス
| ||||||||||||||||||||||||||||||||||||||||
name required | string 申請名 | ||||||||||||||||||||||||||||||||||||||||
number required | string 申請番号 | ||||||||||||||||||||||||||||||||||||||||
user_name required | string 申請者名 | ||||||||||||||||||||||||||||||||||||||||
applied_at required | string <date-time> 申請日時 | ||||||||||||||||||||||||||||||||||||||||
start_time required | string <date-time> 利用期間 (開始) | ||||||||||||||||||||||||||||||||||||||||
end_time required | string <date-time> 利用期間 (終了) | ||||||||||||||||||||||||||||||||||||||||
purpose required | string or null 利用目的 | ||||||||||||||||||||||||||||||||||||||||
operation required | string or null 作業内容 | ||||||||||||||||||||||||||||||||||||||||
report_user_name required | string or null 報告者名 | ||||||||||||||||||||||||||||||||||||||||
started_at required | string or null <date-time> 利用実績 (開始) | ||||||||||||||||||||||||||||||||||||||||
ended_at required | string or null <date-time> 利用実績 (終了) | ||||||||||||||||||||||||||||||||||||||||
report required | string or null 報告内容 | ||||||||||||||||||||||||||||||||||||||||
required | Array of objects 申請書貸出アカウント | ||||||||||||||||||||||||||||||||||||||||
Array
|
Request samples
Content type
application/json
{- "number": "特権ID貸出-100001",
- "name": "サーバ保守特権ID利用申請20230516",
- "workflow_name": "保守ワークフロー",
- "start_time": "2023-05-16T03:00:00.000Z",
- "end_time": "2023-05-17T03:00:00.000Z",
- "purpose": "利用目的",
- "operation": "作業内容",
- "user_name": "申請者",
- "applied_at": "2023-05-16T02:00:00.000Z",
- "approval_user_name": "承認者",
- "approved_at": "2023-05-16T02:30:00.000Z",
- "resources": [
- {
- "login_id": "user@example.com",
- "target": "My Linux",
- "account": "root"
}, - {
- "login_id": "user@example.com",
- "target": "My Linux",
- "domain_target": "My Active Directory",
- "account": "Administrator"
}
]
}
Response samples
- 201
Content type
application/json
{- "id": "e809feac-f08f-4bb4-bbbe-13c8d898ed91",
- "workflow_name": "保守ワークフロー",
- "status": 20,
- "name": "サーバ保守特権ID利用申請20230516",
- "number": "特権ID貸出-100001",
- "user_name": "申請者",
- "applied_at": "2023-05-16T02:00:00.000Z",
- "start_time": "2023-05-16T03:00:00.000Z",
- "end_time": "2023-05-17T03:00:00.000Z",
- "purpose": "利用目的",
- "operation": "作業内容",
- "report_user_name": null,
- "started_at": null,
- "ended_at": null,
- "report": null,
- "resources": [
- {
- "user": {
- "id": "df87eb73-9135-41ad-95a7-6954f95e6302",
- "name": "Sample User",
- "login_id": "user@example.com"
}, - "target": {
- "id": "7bcfdfb9-9ab4-4f00-b948-055fd55b4950",
- "name": "My Linux",
- "ip_address": "192.168.0.101"
}, - "account": {
- "id": "d0901ce1-fe43-42be-9d40-fb715303b923",
- "name": "root"
}
}, - {
- "user": {
- "id": "df87eb73-9135-41ad-95a7-6954f95e6302",
- "name": "Sample User",
- "login_id": "user@example.com"
}, - "target": {
- "id": "7bcfdfb9-9ab4-4f00-b948-055fd55b4950",
- "name": "My Linux",
- "ip_address": "192.168.0.101"
}, - "domain_target": {
- "id": "92cce7f9-caa4-4577-bda4-3fe91fd4fdd9",
- "name": "idoperation.local",
- "ip_address": "192.168.0.11",
- "target_name": "My Active Directory"
}, - "account": {
- "id": "70fcf953-4bd8-4a73-be48-b2ace6e22a5b",
- "name": "Administrator"
}
}
]
}
- 400
Content type
application/json
{- "message": "Error message",
- "errors": {
- "key1": [
- "Error details for key1"
], - "key2": [
- "Error details for key2"
]
}
}