Share via


RedisResource Class

Definition

A single Redis item in List or Get Operation.

[Microsoft.Rest.Serialization.JsonTransformation]
public class RedisResource : Microsoft.Azure.Management.Redis.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>, RedisCommonPropertiesRedisConfiguration, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, IDictionary<String,String>, Nullable<Int32>, String, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<RedisInstanceDetails>, IList<PrivateEndpointConnection>, IList<String>, ManagedServiceIdentity)

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

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'

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,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.

RedisVersion

Gets or sets redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6)

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)
Zones

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

Methods

Validate()

Validate the object.

Applies to