deployment_slots
Creates, updates, deletes, gets or lists a deployment_slots
resource.
Overview
Name | deployment_slots |
Type | Resource |
Id | azure.app_service.deployment_slots |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | Deployment resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | id, name, resourceGroupName, slot, subscriptionId | Description for Get a deployment by its ID for an app, or a deployment slot. |
list | SELECT | name, resourceGroupName, slot, subscriptionId | Description for List deployments for an app, or a deployment slot. |
create | INSERT | id, name, resourceGroupName, slot, subscriptionId | Description for Create a deployment for an app, or a deployment slot. |
delete | DELETE | id, name, resourceGroupName, slot, subscriptionId | Description for Delete a deployment by its ID for an app, or a deployment slot. |
SELECT
examples
Description for List deployments for an app, or a deployment slot.
SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.deployment_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 deployment_slots
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.deployment_slots (
id,
name,
resourceGroupName,
slot,
subscriptionId,
kind,
properties
)
SELECT
'{{ id }}',
'{{ 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: status
value: integer
- name: message
value: string
- name: author
value: string
- name: deployer
value: string
- name: author_email
value: string
- name: start_time
value: string
- name: end_time
value: string
- name: active
value: boolean
- name: details
value: string
DELETE
example
Deletes the specified deployment_slots
resource.
/*+ delete */
DELETE FROM azure.app_service.deployment_slots
WHERE id = '{{ id }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';