iscsi.auth.create
=================

Create an iSCSI Authorized Access.

`tag` should be unique among all configured iSCSI Authorized Accesses.

`secret` and `peersecret` should have length between 12-16 letters inclusive.

`peeruser` and `peersecret` are provided only when configuring mutual CHAP. `peersecret` should not be similar to `secret`.

.. raw:: html

    <div id="json-schema">
    <span class="badge badge-dark value-type">Type: object</span><br/>
    <div class="accordion" id="accordionCall_parameters">
    <div class="card">
    <div class="card-header" id="headingCall_parameters">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters" data-toggle="collapse" onclick="setAnchor('#Call_parameters')" type="button"><span class="property-name">Call parameters</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters" class="collapse property-definition-div" data-parent="#accordionCall_parameters" id="Call_parameters">
    <div class="card-body pl-5">
    <span class="badge badge-dark value-type">Type: array</span><br/>
    <span class="badge badge-info no-additional">No Additional Items</span><h4>Tuple Validation</h4>
    <h5>Parameter 1: data</h5>
    <div class="card">
    <div class="card-body items-definition" id="Call_parameters_items_i0">
    <h4>data</h4><span class="badge badge-dark value-type">Type: object</span><br/>
    <span class="description"><p>iSCSI authentication credential configuration data for creation.</p>
    </span> <span class="badge badge-info no-additional">No Additional Properties</span>
    <div class="accordion" id="accordionCall_parameters_items_i0_tag">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_tag">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_tag" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_tag" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_tag')" type="button"><span class="property-name">tag</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_tag" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_tag" id="Call_parameters_items_i0_tag">
    <div class="card-body pl-5">
    <h4>Tag</h4><span class="badge badge-dark value-type">Type: integer</span><br/>
    <span class="description"><p>Numeric tag used to associate this credential with iSCSI targets.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i0_user">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_user">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_user" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_user" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_user')" type="button"><span class="property-name">user</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_user" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_user" id="Call_parameters_items_i0_user">
    <div class="card-body pl-5">
    <h4>User</h4><span class="badge badge-dark value-type">Type: string</span><br/>
    <span class="description"><p>Username for iSCSI CHAP authentication.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i0_secret">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_secret">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_secret" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_secret" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_secret')" type="button"><span class="property-name">secret</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_secret" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_secret" id="Call_parameters_items_i0_secret">
    <div class="card-body pl-5">
    <h4>Secret</h4><span class="badge badge-dark value-type">Type: string</span><br/>
    <span class="description"><p>Password/secret for iSCSI CHAP authentication.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i0_peeruser">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_peeruser">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_peeruser" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_peeruser" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_peeruser')" type="button"><span class="property-name">peeruser</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_peeruser" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_peeruser" id="Call_parameters_items_i0_peeruser">
    <div class="card-body pl-5">
    <h4>Peeruser</h4><span class="badge badge-dark value-type">Type: string</span> <span class="badge badge-success default-value">Default: ""</span><br/>
    <span class="description"><p>Username for mutual CHAP authentication or empty string if not configured.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i0_peersecret">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_peersecret">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_peersecret" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_peersecret" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_peersecret')" type="button"><span class="property-name">peersecret</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_peersecret" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_peersecret" id="Call_parameters_items_i0_peersecret">
    <div class="card-body pl-5">
    <h4>Peersecret</h4><span class="badge badge-dark value-type">Type: string</span> <span class="badge badge-success default-value">Default: ""</span><br/>
    <span class="description"><p>Password/secret for mutual CHAP authentication or empty string if not configured.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionCall_parameters_items_i0_discovery_auth">
    <div class="card">
    <div class="card-header" id="headingCall_parameters_items_i0_discovery_auth">
    <h2 class="mb-0">
    <button aria-controls="Call_parameters_items_i0_discovery_auth" aria-expanded="" class="btn btn-link property-name-button" data-target="#Call_parameters_items_i0_discovery_auth" data-toggle="collapse" onclick="setAnchor('#Call_parameters_items_i0_discovery_auth')" type="button"><span class="property-name">discovery_auth</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingCall_parameters_items_i0_discovery_auth" class="collapse property-definition-div" data-parent="#accordionCall_parameters_items_i0_discovery_auth" id="Call_parameters_items_i0_discovery_auth">
    <div class="card-body pl-5">
    <h4>Discovery Auth</h4><span class="badge badge-dark value-type">Type: enum (of string)</span> <span class="badge badge-success default-value">Default: "NONE"</span><br/>
    <span class="description"><p>Authentication method for target discovery. If "CHAP_MUTUAL" is selected for target discovery, it is only     permitted for a single entry systemwide.</p>
    </span><div class="enum-value" id="Call_parameters_items_i0_discovery_auth_enum">
    <h5>Must be one of:</h5>
    <ul class="list-group"><li class="list-group-item enum-item">"NONE"</li><li class="list-group-item enum-item">"CHAP"</li><li class="list-group-item enum-item">"CHAP_MUTUAL"</li></ul>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value">
    <div class="card">
    <div class="card-header" id="headingReturn_value">
    <h2 class="mb-0">
    <button aria-controls="Return_value" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value" data-toggle="collapse" onclick="setAnchor('#Return_value')" type="button"><span class="property-name">Return value</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value" class="collapse property-definition-div" data-parent="#accordionReturn_value" id="Return_value">
    <div class="card-body pl-5">
    <h4>iSCSITargetAuthCredentialEntry</h4><span class="badge badge-dark value-type">Type: object</span><br/>
    <span class="description"><p>The created iSCSI authentication credential.</p>
    </span> <span class="badge badge-info no-additional">No Additional Properties</span>
    <div class="accordion" id="accordionReturn_value_id">
    <div class="card">
    <div class="card-header" id="headingReturn_value_id">
    <h2 class="mb-0">
    <button aria-controls="Return_value_id" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_id" data-toggle="collapse" onclick="setAnchor('#Return_value_id')" type="button"><span class="property-name">id</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_id" class="collapse property-definition-div" data-parent="#accordionReturn_value_id" id="Return_value_id">
    <div class="card-body pl-5">
    <h4>Id</h4><span class="badge badge-dark value-type">Type: integer</span><br/>
    <span class="description"><p>Unique identifier for the iSCSI authentication credential.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_tag">
    <div class="card">
    <div class="card-header" id="headingReturn_value_tag">
    <h2 class="mb-0">
    <button aria-controls="Return_value_tag" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_tag" data-toggle="collapse" onclick="setAnchor('#Return_value_tag')" type="button"><span class="property-name">tag</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_tag" class="collapse property-definition-div" data-parent="#accordionReturn_value_tag" id="Return_value_tag">
    <div class="card-body pl-5">
    <h4>Tag</h4><span class="badge badge-dark value-type">Type: integer</span><br/>
    <span class="description"><p>Numeric tag used to associate this credential with iSCSI targets.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_user">
    <div class="card">
    <div class="card-header" id="headingReturn_value_user">
    <h2 class="mb-0">
    <button aria-controls="Return_value_user" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_user" data-toggle="collapse" onclick="setAnchor('#Return_value_user')" type="button"><span class="property-name">user</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_user" class="collapse property-definition-div" data-parent="#accordionReturn_value_user" id="Return_value_user">
    <div class="card-body pl-5">
    <h4>User</h4><span class="badge badge-dark value-type">Type: string</span><br/>
    <span class="description"><p>Username for iSCSI CHAP authentication.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_secret">
    <div class="card">
    <div class="card-header" id="headingReturn_value_secret">
    <h2 class="mb-0">
    <button aria-controls="Return_value_secret" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_secret" data-toggle="collapse" onclick="setAnchor('#Return_value_secret')" type="button"><span class="property-name">secret</span> <span class="badge badge-warning required-property">Required</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_secret" class="collapse property-definition-div" data-parent="#accordionReturn_value_secret" id="Return_value_secret">
    <div class="card-body pl-5">
    <h4>Secret</h4><span class="badge badge-dark value-type">Type: string</span><br/>
    <span class="description"><p>Password/secret for iSCSI CHAP authentication.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_peeruser">
    <div class="card">
    <div class="card-header" id="headingReturn_value_peeruser">
    <h2 class="mb-0">
    <button aria-controls="Return_value_peeruser" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_peeruser" data-toggle="collapse" onclick="setAnchor('#Return_value_peeruser')" type="button"><span class="property-name">peeruser</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_peeruser" class="collapse property-definition-div" data-parent="#accordionReturn_value_peeruser" id="Return_value_peeruser">
    <div class="card-body pl-5">
    <h4>Peeruser</h4><span class="badge badge-dark value-type">Type: string</span> <span class="badge badge-success default-value">Default: ""</span><br/>
    <span class="description"><p>Username for mutual CHAP authentication or empty string if not configured.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_peersecret">
    <div class="card">
    <div class="card-header" id="headingReturn_value_peersecret">
    <h2 class="mb-0">
    <button aria-controls="Return_value_peersecret" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_peersecret" data-toggle="collapse" onclick="setAnchor('#Return_value_peersecret')" type="button"><span class="property-name">peersecret</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_peersecret" class="collapse property-definition-div" data-parent="#accordionReturn_value_peersecret" id="Return_value_peersecret">
    <div class="card-body pl-5">
    <h4>Peersecret</h4><span class="badge badge-dark value-type">Type: string</span> <span class="badge badge-success default-value">Default: ""</span><br/>
    <span class="description"><p>Password/secret for mutual CHAP authentication or empty string if not configured.</p>
    </span>
    </div>
    </div>
    </div>
    </div>
    <div class="accordion" id="accordionReturn_value_discovery_auth">
    <div class="card">
    <div class="card-header" id="headingReturn_value_discovery_auth">
    <h2 class="mb-0">
    <button aria-controls="Return_value_discovery_auth" aria-expanded="" class="btn btn-link property-name-button" data-target="#Return_value_discovery_auth" data-toggle="collapse" onclick="setAnchor('#Return_value_discovery_auth')" type="button"><span class="property-name">discovery_auth</span></button>
    </h2>
    </div>
    <div aria-labelledby="headingReturn_value_discovery_auth" class="collapse property-definition-div" data-parent="#accordionReturn_value_discovery_auth" id="Return_value_discovery_auth">
    <div class="card-body pl-5">
    <h4>Discovery Auth</h4><span class="badge badge-dark value-type">Type: enum (of string)</span> <span class="badge badge-success default-value">Default: "NONE"</span><br/>
    <span class="description"><p>Authentication method for target discovery. If "CHAP_MUTUAL" is selected for target discovery, it is only     permitted for a single entry systemwide.</p>
    </span><div class="enum-value" id="Return_value_discovery_auth_enum">
    <h5>Must be one of:</h5>
    <ul class="list-group"><li class="list-group-item enum-item">"NONE"</li><li class="list-group-item enum-item">"CHAP"</li><li class="list-group-item enum-item">"CHAP_MUTUAL"</li></ul>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div><br><br>

*Required roles:* SHARING_ISCSI_AUTH_WRITE

