機械翻訳について

資格証明の資格証明入力ソースの作成

post

/api/v2/credentials/{id}/input_sources/

次の資格証明入力ソース・フィールドを指定してこのリソースに対してPOSTリクエストを行って、この資格証明に関連付けられる新しい資格証明入力ソースを作成します。

  • description: この資格証明入力ソースのオプションの説明。(文字列、デフォルト="")
  • input_field_name: (文字列、必須)
  • metadata: (json、デフォルト={})

  • source_credential: (id、必須)

リクエスト

サポートされているメディア・タイプ
パス・パラメータ
本文()
ルート・スキーマ : schema
例:
{
    "input_field_name":"vault_password",
    "metadata":{
        "key":"some_key"
    },
    "source_credential":2
}
先頭に戻る

レスポンス

サポートされているメディア・タイプ

201レスポンス

本文
レスポンスの例(application/json)
{
    "created":"2018-02-01T08:00:00.000000Z",
    "description":"",
    "id":1,
    "input_field_name":"vault_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":"vault",
            "name":"test-cred"
        },
        "user_capabilities":{
            "delete":true
        }
    },
    "target_credential":1,
    "type":"credential_input_source",
    "url":"/api/v2/credential_input_sources/1/"
}
先頭に戻る