Skip to main content

vip_swaps

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

Overview

Namevip_swaps
TypeResource
Idazure.network.vip_swaps

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the slot type for the specified cloud service.

NameDatatypeDescription
idstringResource Id.
namestringResource name.
propertiesobjectSwap resource properties
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgroupName, resourceName, singletonResource, subscriptionIdGets 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
listselectgroupName, resourceName, subscriptionIdGets 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
createinsertgroupName, resourceName, singletonResource, subscriptionIdPerforms vip swap operation on swappable cloud services.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
groupNamestringThe name of the resource group.
resourceNamestringThe name of the cloud service.
singletonResourcestringSpecifies a synthetic resource that cannot be created or deleted. Value must be set to swap.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

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

SELECT
id,
name,
properties,
type
FROM azure.network.vip_swaps
WHERE groupName = '{{ groupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND singletonResource = '{{ singletonResource }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Performs vip swap operation on swappable cloud services.

INSERT INTO azure.network.vip_swaps (
data__properties,
groupName,
resourceName,
singletonResource,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ groupName }}',
'{{ resourceName }}',
'{{ singletonResource }}',
'{{ subscriptionId }}'
;