資格証明入力ソースの作成
post
/api/v2/credential_input_sources/
次の資格証明入力ソース・フィールドを指定してこのリソースに対してPOSTリクエストを行って、新しい資格証明入力ソースを作成します。
description
: この資格証明入力ソースのオプションの説明。(文字列、デフォルト=""
)input_field_name
: (文字列、必須)metadata
: (json、デフォルト={}
)target_credential
: (id、必須)source_credential
: (id、必須)
リクエスト
サポートされているメディア・タイプ
- application/json
ルート・スキーマ : schema
例:
{
"input_field_name":"password",
"metadata":{
"key":"some_key"
},
"source_credential":2,
"target_credential":1
}
レスポンス
サポートされているメディア・タイプ
- application/json
201レスポンス
レスポンスの例(application/json)
{
"created":"2018-02-01T08:00:00.000000Z",
"description":"",
"id":1,
"input_field_name":"password",
"metadata":{
"key":"some_key"
},
"modified":"2018-02-01T08:00:00.000000Z",
"related":{
"source_credential":"/api/v2/credentials/2/",
"target_credential":"/api/v2/credentials/1/"
},
"source_credential":2,
"summary_fields":{
"source_credential":{
"cloud":false,
"credential_type_id":2,
"description":"",
"id":2,
"name":"external-cred"
},
"target_credential":{
"cloud":false,
"credential_type_id":1,
"description":"",
"id":1,
"kind":"ssh",
"name":"machine-cred"
},
"user_capabilities":{
"delete":true
}
},
"target_credential":1,
"type":"credential_input_source",
"url":"/api/v2/credential_input_sources/1/"
}
400レスポンス
レスポンスの例(application/json)
{
"metadata":{
"key":[
"required for External Service"
]
}
}
403レスポンス
レスポンスの例(application/json)
{
"detail":"You do not have permission to perform this action."
}