vip_swaps
Creates, updates, deletes, gets or lists a vip_swaps
resource.
Overview
Name | vip_swaps |
Type | Resource |
Id | azure.network.vip_swaps |
Fields
- vw_vip_swaps
- vip_swaps
Name | Datatype | Description |
---|---|---|
id | text | Resource Id. |
name | text | Resource name. |
groupName | text | field from the properties object |
resourceName | text | field from the properties object |
singletonResource | text | field from the properties object |
slot_type | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
properties | object | Swap resource properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupName, resourceName, singletonResource, subscriptionId | Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production |
list | SELECT | groupName, resourceName, subscriptionId | Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production |
create | INSERT | groupName, resourceName, singletonResource, subscriptionId | Performs vip swap operation on swappable cloud services. |
SELECT
examples
Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production
- vw_vip_swaps
- vip_swaps
SELECT
id,
name,
groupName,
resourceName,
singletonResource,
slot_type,
subscriptionId,
type
FROM azure.network.vw_vip_swaps
WHERE groupName = '{{ groupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.network.vip_swaps
WHERE groupName = '{{ groupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new vip_swaps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.vip_swaps (
groupName,
resourceName,
singletonResource,
subscriptionId,
properties
)
SELECT
'{{ groupName }}',
'{{ resourceName }}',
'{{ singletonResource }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: slotType
value: string