Patch Schedules - Get

Gets the patching schedule of a redis cache.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/default?api-version=2023-08-01

URI Parameters

Name In Required Type Description
default
path True

defaultName

Default string modeled as parameter for auto generation to work correctly.

name
path True

string

The name of the redis cache.

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

RedisPatchSchedule

Response of get patch schedules.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

RedisCachePatchSchedulesGet

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1/patchSchedules/default?api-version=2023-08-01

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/patchSchedules/default",
  "location": "East US",
  "name": "cache1/default",
  "type": "Microsoft.Cache/Redis/PatchSchedules",
  "properties": {
    "scheduleEntries": [
      {
        "dayOfWeek": "Monday",
        "startHourUtc": 12,
        "maintenanceWindow": "PT5H"
      },
      {
        "dayOfWeek": "Tuesday",
        "startHourUtc": 12
      }
    ]
  }
}

Definitions

Name Description
DayOfWeek

Day of the week when a cache can be patched.

defaultName

Default string modeled as parameter for auto generation to work correctly.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

RedisPatchSchedule

Response to put/get patch schedules for Redis cache.

ScheduleEntry

Patch schedule entry for a Premium Redis Cache.

DayOfWeek

Day of the week when a cache can be patched.

Name Type Description
Everyday

string

Friday

string

Monday

string

Saturday

string

Sunday

string

Thursday

string

Tuesday

string

Wednesday

string

Weekend

string

defaultName

Default string modeled as parameter for auto generation to work correctly.

Name Type Description
default

string

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

RedisPatchSchedule

Response to put/get patch schedules for Redis cache.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.scheduleEntries

ScheduleEntry[]

List of patch schedules for a Redis cache.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ScheduleEntry

Patch schedule entry for a Premium Redis Cache.

Name Type Description
dayOfWeek

DayOfWeek

Day of the week when a cache can be patched.

maintenanceWindow

string

ISO8601 timespan specifying how much time cache patching can take.

startHourUtc

integer

Start hour after which cache patching can start.