Skip to main content

storage_profiles

Creates, updates, deletes, gets or lists a storage_profiles resource.

Overview

Namestorage_profiles
TypeResource
Idaws.deadline.storage_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The date and time the resource was created.
created_bystringThe user or system that created this resource.
display_namestringThe display name of the storage profile. 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.
file_system_locationsarrayThe location of the files for the storage profile.
os_familystringThe operating system (OS) for the storage profile. (WINDOWS, LINUX, MACOS)
storage_profile_idstringThe storage profile ID. (pattern: <code>sp-[0-9a-f]{32}</code>)
updated_atstring (date-time)The date and time the resource was updated.
updated_bystringThe user or system that updated this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_storage_profileselectfarm_id, storage_profile_id, regionGets a storage profile.
list_storage_profilesselectfarm_id, regionnextToken, maxResultsLists storage profiles.
create_storage_profileinsertfarm_id, region, displayName, osFamilyX-Amz-Client-TokenCreates a storage profile that specifies the operating system, file type, and file location of resources used on a farm.
update_storage_profileupdatefarm_id, storage_profile_id, regionX-Amz-Client-TokenUpdates a storage profile.
delete_storage_profiledeletefarm_id, storage_profile_id, regionDeletes a storage profile.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
farm_idstringThe farm ID of the farm from which to remove the storage profile.
regionstringAWS region (default: us-east-1)
storage_profile_idstringThe storage profile ID of the storage profile to delete.
X-Amz-Client-TokenstringThe unique token which the server uses to recognize retries of the same request.
maxResultsintegerThe maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.
nextTokenstringThe token for the next set of results, or null to start from the beginning.

SELECT examples

Gets a storage profile.

SELECT
created_at,
created_by,
display_name,
file_system_locations,
os_family,
storage_profile_id,
updated_at,
updated_by
FROM aws.deadline.storage_profiles
WHERE farm_id = '{{ farm_id }}' -- required
AND storage_profile_id = '{{ storage_profile_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.deadline.storage_profiles (
displayName,
osFamily,
fileSystemLocations,
farm_id,
region,
`X-Amz-Client-Token`
)
SELECT
'{{ displayName }}' /* required */,
'{{ osFamily }}' /* required */,
'{{ fileSystemLocations }}',
'{{ farm_id }}',
'{{ region }}',
'{{ X-Amz-Client-Token }}'
RETURNING
storage_profile_id
;

UPDATE examples

Updates a storage profile.

UPDATE aws.deadline.storage_profiles
SET
displayName = '{{ displayName }}',
osFamily = '{{ osFamily }}',
fileSystemLocationsToAdd = '{{ fileSystemLocationsToAdd }}',
fileSystemLocationsToRemove = '{{ fileSystemLocationsToRemove }}'
WHERE
farm_id = '{{ farm_id }}' --required
AND storage_profile_id = '{{ storage_profile_id }}' --required
AND region = '{{ region }}' --required
AND `X-Amz-Client-Token` = '{{ X-Amz-Client-Token}}';

DELETE examples

Deletes a storage profile.

DELETE FROM aws.deadline.storage_profiles
WHERE farm_id = '{{ farm_id }}' --required
AND storage_profile_id = '{{ storage_profile_id }}' --required
AND region = '{{ region }}' --required
;