file_containers
Creates, updates, deletes, gets or lists a file_containers
resource.
Overview
Name | file_containers |
Type | Resource |
Id | azure_stack.deployment_admin.file_containers |
Fields
- vw_file_containers
- file_containers
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
error | text | field from the properties object |
fileContainerId | text | field from the properties object |
file_container_id | text | field from the properties object |
location | text | Location of the resource. |
post_copy_action | text | field from the properties object |
provisioning_state | text | field from the properties object |
source_uri | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Type of Resource. |
uri | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | File Container Properties. |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fileContainerId, subscriptionId | Retrieves the specific file container details. |
list | SELECT | subscriptionId | Returns an array of file containers. |
create | INSERT | fileContainerId, subscriptionId | Creates a new file container. |
delete | DELETE | fileContainerId, subscriptionId | Delete an existing file container. |
SELECT
examples
Returns an array of file containers.
- vw_file_containers
- 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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.deployment_admin.file_containers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new file_containers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.deployment_admin.file_containers (
fileContainerId,
subscriptionId,
properties
)
SELECT
'{{ fileContainerId }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: postCopyAction
value: []
- name: sourceUri
value: []
DELETE
example
Deletes the specified file_containers
resource.
/*+ delete */
DELETE FROM azure_stack.deployment_admin.file_containers
WHERE fileContainerId = '{{ fileContainerId }}'
AND subscriptionId = '{{ subscriptionId }}';