RedisResource Class

Definition

A single Redis item in List or Get Operation.

[Microsoft.Rest.Serialization.JsonTransformation]
public class RedisResource : Microsoft.Azure.Management.RedisCache.Models.TrackedResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type RedisResource = class
    inherit TrackedResource
Public Class RedisResource
Inherits TrackedResource
Inheritance
Attributes

Constructors

RedisResource()

Initializes a new instance of the RedisResource class.

RedisResource(String, Sku, String, String, String, IDictionary<String, String>, IList<String>, ManagedServiceIdentity, String, String, RedisCommonPropertiesRedisConfiguration, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, IDictionary<String,String>, Nullable<Int32>, String, String, Nullable<Boolean>, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<RedisInstanceDetails>, IList<PrivateEndpointConnection>)

Initializes a new instance of the RedisResource class.

RedisResource(String, Sku, String, String, String, IDictionary<String, String>, IList<String>, ManagedServiceIdentity, String, String, RedisCommonPropertiesRedisConfiguration, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, IDictionary<String,String>, Nullable<Int32>, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<RedisInstanceDetails>, IList<PrivateEndpointConnection>)

Initializes a new instance of the RedisResource class.

Properties

AccessKeys

Gets the keys of the Redis cache - not set if this object is not the response to Create or Update redis cache

DisableAccessKeyAuthentication

Gets or sets authentication to Redis through access keys is disabled when set as true. Default value is false.

EnableNonSslPort

Gets or sets specifies whether the non-ssl Redis server port (6379) is enabled.

HostName

Gets redis host name.

Id

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

(Inherited from Resource)
Identity

Gets or sets the identity of the resource.

Instances

Gets list of the Redis instances associated with the cache

LinkedServers

Gets list of the linked servers associated with the cache

Location

Gets or sets the geo-location where the resource lives

(Inherited from TrackedResource)
MinimumTlsVersion

Gets or sets optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') Possible values include: '1.0', '1.1', '1.2'

Name

Gets the name of the resource

(Inherited from Resource)
Port

Gets redis non-SSL port.

PrivateEndpointConnections

Gets list of private endpoint connection associated with the specified redis cache

ProvisioningState

Gets redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating', 'ConfiguringAAD'

PublicNetworkAccess

Gets or sets 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' Possible values include: 'Enabled', 'Disabled'

RedisConfiguration

Gets or sets 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.

RedisVersion

Gets or sets 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'.

ReplicasPerMaster

Gets or sets the number of replicas to be created per primary.

ReplicasPerPrimary

Gets or sets the number of replicas to be created per primary.

ShardCount

Gets or sets the number of shards to be created on a Premium Cluster Cache.

Sku

Gets or sets the SKU of the Redis cache to deploy.

SslPort

Gets redis SSL port.

StaticIP

Gets or sets static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.

SubnetId

Gets or sets 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

Tags

Gets or sets resource tags.

(Inherited from TrackedResource)
TenantSettings

Gets or sets a dictionary of tenant settings

Type

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

(Inherited from Resource)
UpdateChannel

Gets or sets 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'. Possible values include: 'Stable', 'Preview'

Zones

Gets or sets a list of availability zones denoting where the resource needs to come from.

Methods

Validate()

Validate the object.

Applies to