資格証明入力ソースの更新
patch
/api/v2/credential_input_sources/{id}/
このリソースに対してPUTまたはPATCHリクエストを行って、この資格証明入力ソースを更新します。 次のフィールドを変更できます。
description
: この資格証明入力ソースのオプションの説明。(文字列、デフォルト=""
)input_field_name
: (文字列、必須)metadata
: (json、デフォルト={}
)target_credential
: (id、必須)source_credential
: (id、必須)
PATCHリクエストの場合は、変更中のフィールドのみを含めます。
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
問合せパラメータ
- search(オプション): 文字列
検索条件。
ルート・スキーマ : schema
例:
{
"metadata":{
"key":"some_other_key"
}
}
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
レスポンスの例(application/json)
{
"created":"2018-02-01T08:00:00.000000Z",
"description":"",
"id":1,
"input_field_name":"password",
"metadata":{
"key":"some_other_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/"
}
403レスポンス
レスポンスの例(application/json)
{
"detail":"You do not have permission to perform this action."
}