Show / Hide Table of Contents

    Class RedisResource

    A single Redis item in List or Get Operation.

    Inheritance
    Object
    Resource
    TrackedResource
    RedisResource
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    TrackedResource.Location
    TrackedResource.Tags
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Redis.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class RedisResource : Microsoft.Azure.Management.Redis.Models.TrackedResource

    Constructors

    RedisResource()

    Initializes a new instance of the RedisResource class.

    Declaration
    public RedisResource ();

    RedisResource(String, Sku, String, String, String, IDictionary<String,String>, IDictionary<String,String>, Nullable<Boolean>, IDictionary<String,String>, Nullable<Int32>, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<String>)

    Initializes a new instance of the RedisResource class.

    Declaration
    public RedisResource (string location, Microsoft.Azure.Management.Redis.Models.Sku sku, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, System.Collections.Generic.IDictionary<string,string> redisConfiguration = null, Nullable<bool> enableNonSslPort = null, System.Collections.Generic.IDictionary<string,string> tenantSettings = null, Nullable<int> shardCount = null, string subnetId = null, string staticIP = null, string redisVersion = null, string provisioningState = null, string hostName = null, Nullable<int> port = null, Nullable<int> sslPort = null, Microsoft.Azure.Management.Redis.Models.RedisAccessKeys accessKeys = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Redis.Models.RedisLinkedServer> linkedServers = null, System.Collections.Generic.IList<string> zones = null);
    Parameters
    String location

    The geo-location where the resource lives

    Sku sku

    The SKU of the Redis cache to deploy.

    String id

    Resource ID.

    String name

    Resource name.

    String type

    Resource type.

    IDictionary<String,String> tags

    Resource tags.

    IDictionary<String,String> redisConfiguration

    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.

    Nullable<Boolean> enableNonSslPort

    Specifies whether the non-ssl Redis server port (6379) is enabled.

    IDictionary<String,String> tenantSettings

    A dictionary of tenant settings

    Nullable<Int32> shardCount

    The number of shards to be created on a Premium Cluster Cache.

    String subnetId

    The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1

    String staticIP

    Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.

    String redisVersion

    Redis version.

    String provisioningState

    Redis instance provisioning status.

    String hostName

    Redis host name.

    Nullable<Int32> port

    Redis non-SSL port.

    Nullable<Int32> sslPort

    Redis SSL port.

    RedisAccessKeys accessKeys

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

    IList<RedisLinkedServer> linkedServers

    List of the linked servers associated with the cache

    IList<String> zones

    A list of availability zones denoting where the resource needs to come from.

    Properties

    AccessKeys

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.accessKeys")]
    public Microsoft.Azure.Management.Redis.Models.RedisAccessKeys AccessKeys { get; }
    Property Value
    RedisAccessKeys

    EnableNonSslPort

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.enableNonSslPort")]
    public Nullable<bool> EnableNonSslPort { get; set; }
    Property Value
    Nullable<Boolean>

    HostName

    Gets redis host name.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.hostName")]
    public string HostName { get; }
    Property Value
    String

    LinkedServers

    Gets list of the linked servers associated with the cache

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.linkedServers")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Redis.Models.RedisLinkedServer> LinkedServers { get; }
    Property Value
    IList<RedisLinkedServer>

    Port

    Gets redis non-SSL port.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.port")]
    public Nullable<int> Port { get; }
    Property Value
    Nullable<Int32>

    ProvisioningState

    Gets redis instance provisioning status.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningState")]
    public string ProvisioningState { get; }
    Property Value
    String

    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.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.redisConfiguration")]
    public System.Collections.Generic.IDictionary<string,string> RedisConfiguration { get; set; }
    Property Value
    IDictionary<String,String>

    RedisVersion

    Gets redis version.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.redisVersion")]
    public string RedisVersion { get; }
    Property Value
    String

    ShardCount

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.shardCount")]
    public Nullable<int> ShardCount { get; set; }
    Property Value
    Nullable<Int32>

    Sku

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.sku")]
    public Microsoft.Azure.Management.Redis.Models.Sku Sku { get; set; }
    Property Value
    Sku

    SslPort

    Gets redis SSL port.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.sslPort")]
    public Nullable<int> SslPort { get; }
    Property Value
    Nullable<Int32>

    StaticIP

    Gets or sets static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.staticIP")]
    public string StaticIP { get; set; }
    Property Value
    String

    SubnetId

    Gets or sets the full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.subnetId")]
    public string SubnetId { get; set; }
    Property Value
    String

    TenantSettings

    Gets or sets a dictionary of tenant settings

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.tenantSettings")]
    public System.Collections.Generic.IDictionary<string,string> TenantSettings { get; set; }
    Property Value
    IDictionary<String,String>

    Zones

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="zones")]
    public System.Collections.Generic.IList<string> Zones { get; set; }
    Property Value
    IList<String>

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net