Skip to main content

file_containers

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

Overview

Namefile_containers
TypeResource
Idazure_stack.deployment_admin.file_containers

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
errortextfield from the properties object
fileContainerIdtextfield from the properties object
file_container_idtextfield from the properties object
locationtextLocation of the resource.
post_copy_actiontextfield from the properties object
provisioning_statetextfield from the properties object
source_uritextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of Resource.
uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfileContainerId, subscriptionIdRetrieves the specific file container details.
listSELECTsubscriptionIdReturns an array of file containers.
createINSERTfileContainerId, subscriptionIdCreates a new file container.
deleteDELETEfileContainerId, subscriptionIdDelete an existing file container.

SELECT examples

Returns an array of file containers.

SELECT
id,
name,
error,
fileContainerId,
file_container_id,
location,
post_copy_action,
provisioning_state,
source_uri,
subscriptionId,
type,
uri
FROM azure_stack.deployment_admin.vw_file_containers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new file_containers resource.

/*+ create */
INSERT INTO azure_stack.deployment_admin.file_containers (
fileContainerId,
subscriptionId,
properties
)
SELECT
'{{ fileContainerId }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified file_containers resource.

/*+ delete */
DELETE FROM azure_stack.deployment_admin.file_containers
WHERE fileContainerId = '{{ fileContainerId }}'
AND subscriptionId = '{{ subscriptionId }}';