site_container_slots
Creates, updates, deletes, gets or lists a site_container_slots
resource.
Overview
Name | site_container_slots |
Type | Resource |
Id | azure.app_service.site_container_slots |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | SiteContainer resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | containerName, name, resourceGroupName, slot, subscriptionId | |
list | SELECT | name, resourceGroupName, slot, subscriptionId | |
create_or_update | INSERT | containerName, name, resourceGroupName, slot, subscriptionId | |
delete | DELETE | containerName, name, resourceGroupName, slot, subscriptionId |
SELECT
examples
SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.site_container_slots
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new site_container_slots
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.site_container_slots (
containerName,
name,
resourceGroupName,
slot,
subscriptionId,
kind,
properties
)
SELECT
'{{ containerName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ slot }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: type
value: string
- name: properties
value:
- name: image
value: string
- name: targetPort
value: string
- name: isMain
value: boolean
- name: startUpCommand
value: string
- name: authType
value: string
- name: userName
value: string
- name: passwordSecret
value: string
- name: userManagedIdentityClientId
value: string
- name: createdTime
value: string
- name: lastModifiedTime
value: string
- name: volumeMounts
value:
- - name: volumeSubPath
value: string
- name: containerMountPath
value: string
- name: data
value: string
- name: readOnly
value: boolean
- name: environmentVariables
value:
- - name: name
value: string
- name: value
value: string
DELETE
example
Deletes the specified site_container_slots
resource.
/*+ delete */
DELETE FROM azure.app_service.site_container_slots
WHERE containerName = '{{ containerName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';