Skip to main content

patch_schedules

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

Overview

Namepatch_schedules
TypeResource
Idazure_isv.redis.patch_schedules

Fields

NameDatatypeDescription
nametextfield from the properties object
textfield from the properties object
cacheNametextfield from the properties object
locationtextThe geo-location where the resource lives
resourceGroupNametextfield from the properties object
schedule_entriestextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdefault, name, resourceGroupName, subscriptionIdGets the patching schedule of a redis cache.
list_by_redis_resourceSELECTcacheName, resourceGroupName, subscriptionIdGets all patch schedules in the specified redis cache (there is only one).
create_or_updateINSERTdefault, name, resourceGroupName, subscriptionId, data__propertiesCreate or replace the patching schedule for Redis cache.
deleteDELETEdefault, name, resourceGroupName, subscriptionIdDeletes the patching schedule of a redis cache.

SELECT examples

Gets all patch schedules in the specified redis cache (there is only one).

SELECT
name,
,
cacheName,
location,
resourceGroupName,
schedule_entries,
subscriptionId
FROM azure_isv.redis.vw_patch_schedules
WHERE cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new patch_schedules resource.

/*+ create */
INSERT INTO azure_isv.redis.patch_schedules (
default,
name,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ default }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified patch_schedules resource.

/*+ delete */
DELETE FROM azure_isv.redis.patch_schedules
WHERE default = '{{ default }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';