DeadlineCloud / Client / create_storage_profile

create_storage_profile#

DeadlineCloud.Client.create_storage_profile(**kwargs)#

Creates a storage profile that specifies the operating system, file type, and file location of resources used on a farm.

See also: AWS API Documentation

Request Syntax

response = client.create_storage_profile(
    clientToken='string',
    farmId='string',
    displayName='string',
    osFamily='WINDOWS'|'LINUX'|'MACOS',
    fileSystemLocations=[
        {
            'name': 'string',
            'path': 'string',
            'type': 'SHARED'|'LOCAL'
        },
    ]
)
Parameters:
  • clientToken (string) –

    The unique token which the server uses to recognize retries of the same request.

    This field is autopopulated if not provided.

  • farmId (string) –

    [REQUIRED]

    The farm ID of the farm to connect to the storage profile.

  • displayName (string) –

    [REQUIRED]

    The display name of the storage profile.

    Warning

    This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

  • osFamily (string) –

    [REQUIRED]

    The type of operating system (OS) for the storage profile.

  • fileSystemLocations (list) –

    File system paths to include in the storage profile.

    • (dict) –

      The details of the file system location for the resource.

      • name (string) – [REQUIRED]

        The location name.

      • path (string) – [REQUIRED]

        The file path.

      • type (string) – [REQUIRED]

        The type of file.

Return type:

dict

Returns:

Response Syntax

{
    'storageProfileId': 'string'
}

Response Structure

  • (dict) –

    • storageProfileId (string) –

      The storage profile ID.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException

  • DeadlineCloud.Client.exceptions.ServiceQuotaExceededException