RedisResource Class
A single Redis item in List or Get Operation.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
Constructor
RedisResource(*, location: str, sku: _models.Sku, tags: Dict[str, str] | None = None, zones: List[str] | None = None, identity: _models.ManagedServiceIdentity | None = None, redis_configuration: _models.RedisCommonPropertiesRedisConfiguration | None = None, redis_version: str | None = None, enable_non_ssl_port: bool = False, replicas_per_master: int | None = None, replicas_per_primary: int | None = None, tenant_settings: Dict[str, str] | None = None, shard_count: int | None = None, minimum_tls_version: str | _models.TlsVersion | None = None, public_network_access: str | _models.PublicNetworkAccess = 'Enabled', update_channel: str | _models.UpdateChannel | None = None, disable_access_key_authentication: bool = False, zonal_allocation_policy: str | _models.ZonalAllocationPolicy | None = None, subnet_id: str | None = None, static_ip: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
tags
|
Resource tags. |
location
|
The geo-location where the resource lives. Required. |
zones
|
A list of availability zones denoting where the resource needs to come from. |
identity
|
The identity of the resource. |
redis_configuration
|
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc. |
redis_version
|
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'. |
enable_non_ssl_port
|
Specifies whether the non-ssl Redis server port (6379) is enabled. |
replicas_per_master
|
The number of replicas to be created per primary. |
replicas_per_primary
|
The number of replicas to be created per primary. |
tenant_settings
|
A dictionary of tenant settings. |
shard_count
|
The number of shards to be created on a Premium Cluster Cache. |
minimum_tls_version
|
str or
TlsVersion
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Known values are: "1.0", "1.1", and "1.2". |
public_network_access
|
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Known values are: "Enabled" and "Disabled". Default value: Enabled
|
update_channel
|
str or
UpdateChannel
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Known values are: "Stable" and "Preview". |
disable_access_key_authentication
|
Authentication to Redis through access keys is disabled when set as true. Default value is false. |
zonal_allocation_policy
|
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported. Known values are: "Automatic", "UserDefined", and "NoZones". |
sku
|
The SKU of the Redis cache to deploy. Required. |
subnet_id
|
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. # pylint: disable=line-too-long |
static_ip
|
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default. |
Variables
Name | Description |
---|---|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name
|
The name of the resource. |
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
tags
|
Resource tags. |
location
|
The geo-location where the resource lives. Required. |
zones
|
A list of availability zones denoting where the resource needs to come from. |
identity
|
The identity of the resource. |
redis_configuration
|
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc. |
redis_version
|
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'. |
enable_non_ssl_port
|
Specifies whether the non-ssl Redis server port (6379) is enabled. |
replicas_per_master
|
The number of replicas to be created per primary. |
replicas_per_primary
|
The number of replicas to be created per primary. |
tenant_settings
|
A dictionary of tenant settings. |
shard_count
|
The number of shards to be created on a Premium Cluster Cache. |
minimum_tls_version
|
str or
TlsVersion
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Known values are: "1.0", "1.1", and "1.2". |
public_network_access
|
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Known values are: "Enabled" and "Disabled". |
update_channel
|
str or
UpdateChannel
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Known values are: "Stable" and "Preview". |
disable_access_key_authentication
|
Authentication to Redis through access keys is disabled when set as true. Default value is false. |
zonal_allocation_policy
|
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported. Known values are: "Automatic", "UserDefined", and "NoZones". |
sku
|
The SKU of the Redis cache to deploy. Required. |
subnet_id
|
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1. # pylint: disable=line-too-long |
static_ip
|
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default. |
provisioning_state
|
Redis instance provisioning status. Known values are: "Creating", "Deleting", "Disabled", "Failed", "Linking", "Provisioning", "RecoveringScaleFailure", "Scaling", "Succeeded", "Unlinking", "Unprovisioning", "Updating", and "ConfiguringAAD". |
host_name
|
Redis host name. |
port
|
Redis non-SSL port. |
ssl_port
|
Redis SSL port. |
access_keys
|
The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache. |
linked_servers
|
List of the linked servers associated with the cache. |
instances
|
List of the Redis instances associated with the cache. |
private_endpoint_connections
|
List of private endpoint connection associated with the specified redis cache. |
Azure SDK for Python