assignNewCredential


SoftLayer_Network_Storage::assignNewCredential

This method will set up a new credential for the remote storage volume.

Description

This method will set up a new credential for the remote storage volume. The storage volume must support an additional credential. Once created, the credential will be automatically assigned to the current volume. If there are no volumes assigned to the credential it will be automatically deleted.

Parameters

Name Type Description
type string The type of credential you would like to add to your storage volume, it must be an approved credential type (current types are: ‘ISCSI_MASTER_KEY’)

Required Headers

Optional Headers

Return Values

Error Handling

  • “Problem adding a new credential to the volume. The network storage type is not supported for credential creation in this manner.”
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/{SoftLayer_Network_StorageID}/assignNewCredential'