azure-native-v2.cache.LinkedServer
Explore with Pulumi AI
Response to put/get linked server (with properties) for Redis cache. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2020-06-01.
Other available API versions: 2023-05-01-preview, 2023-08-01, 2024-03-01, 2024-04-01-preview, 2024-11-01.
Create LinkedServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LinkedServer(name: string, args: LinkedServerArgs, opts?: CustomResourceOptions);
@overload
def LinkedServer(resource_name: str,
args: LinkedServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LinkedServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
linked_redis_cache_id: Optional[str] = None,
linked_redis_cache_location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_role: Optional[ReplicationRole] = None,
linked_server_name: Optional[str] = None)
func NewLinkedServer(ctx *Context, name string, args LinkedServerArgs, opts ...ResourceOption) (*LinkedServer, error)
public LinkedServer(string name, LinkedServerArgs args, CustomResourceOptions? opts = null)
public LinkedServer(String name, LinkedServerArgs args)
public LinkedServer(String name, LinkedServerArgs args, CustomResourceOptions options)
type: azure-native:cache:LinkedServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LinkedServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. LinkedServerArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LinkedServerArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. LinkedServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. LinkedServerArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var linkedServerResource = new AzureNative.Cache.LinkedServer("linkedServerResource", new()
{
LinkedRedisCacheId = "string",
LinkedRedisCacheLocation = "string",
Name = "string",
ResourceGroupName = "string",
ServerRole = "Primary",
LinkedServerName = "string",
});
example, err := cache.NewLinkedServer(ctx, "linkedServerResource", &cache.LinkedServerArgs{
LinkedRedisCacheId: "string",
LinkedRedisCacheLocation: "string",
Name: "string",
ResourceGroupName: "string",
ServerRole: "Primary",
LinkedServerName: "string",
})
var linkedServerResource = new LinkedServer("linkedServerResource", LinkedServerArgs.builder()
.linkedRedisCacheId("string")
.linkedRedisCacheLocation("string")
.name("string")
.resourceGroupName("string")
.serverRole("Primary")
.linkedServerName("string")
.build());
linked_server_resource = azure_native.cache.LinkedServer("linkedServerResource",
linked_redis_cache_id=string,
linked_redis_cache_location=string,
name=string,
resource_group_name=string,
server_role=Primary,
linked_server_name=string)
const linkedServerResource = new azure_native.cache.LinkedServer("linkedServerResource", {
linkedRedisCacheId: "string",
linkedRedisCacheLocation: "string",
name: "string",
resourceGroupName: "string",
serverRole: "Primary",
linkedServerName: "string",
});
type: azure-native:cache:LinkedServer
properties:
linkedRedisCacheId: string
linkedRedisCacheLocation: string
linkedServerName: string
name: string
resourceGroupName: string
serverRole: Primary
LinkedServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LinkedServer resource accepts the following input properties:
- Linked
Redis Cache Id This property is required. string - Fully qualified resourceId of the linked redis cache.
- Linked
Redis Cache Location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- Name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Server
Role This property is required. Pulumi.Azure Native. Cache. Replication Role - Role of the linked server.
- Linked
Server Name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
- Linked
Redis Cache Id This property is required. string - Fully qualified resourceId of the linked redis cache.
- Linked
Redis Cache Location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- Name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Server
Role This property is required. ReplicationRole - Role of the linked server.
- Linked
Server Name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
- linked
Redis Cache Id This property is required. String - Fully qualified resourceId of the linked redis cache.
- linked
Redis Cache Location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- server
Role This property is required. ReplicationRole - Role of the linked server.
- linked
Server Name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
- linked
Redis Cache Id This property is required. string - Fully qualified resourceId of the linked redis cache.
- linked
Redis Cache Location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- server
Role This property is required. ReplicationRole - Role of the linked server.
- linked
Server Name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
- linked_
redis_ cache_ id This property is required. str - Fully qualified resourceId of the linked redis cache.
- linked_
redis_ cache_ location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- server_
role This property is required. ReplicationRole - Role of the linked server.
- linked_
server_ name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
- linked
Redis Cache Id This property is required. String - Fully qualified resourceId of the linked redis cache.
- linked
Redis Cache Location This property is required. Changes to this property will trigger replacement.
- Location of the linked redis cache.
- name
This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- server
Role This property is required. "Primary" | "Secondary" - Role of the linked server.
- linked
Server Name Changes to this property will trigger replacement.
- The name of the linked server that is being added to the Redis cache.
Outputs
All input properties are implicitly available as output properties. Additionally, the LinkedServer resource produces the following output properties:
- Geo
Replicated stringPrimary Host Name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Host stringName - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- Provisioning
State string - Terminal state of the link between primary and secondary redis cache.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Geo
Replicated stringPrimary Host Name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Host stringName - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- Provisioning
State string - Terminal state of the link between primary and secondary redis cache.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- geo
Replicated StringPrimary Host Name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Host StringName - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- provisioning
State String - Terminal state of the link between primary and secondary redis cache.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- geo
Replicated stringPrimary Host Name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- id string
- The provider-assigned unique ID for this managed resource.
- primary
Host stringName - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- provisioning
State string - Terminal state of the link between primary and secondary redis cache.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- geo_
replicated_ strprimary_ host_ name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- id str
- The provider-assigned unique ID for this managed resource.
- primary_
host_ strname - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- provisioning_
state str - Terminal state of the link between primary and secondary redis cache.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- geo
Replicated StringPrimary Host Name - The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Host StringName - The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
- provisioning
State String - Terminal state of the link between primary and secondary redis cache.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ReplicationRole, ReplicationRoleArgs
- Primary
- Primary
- Secondary
- Secondary
- Replication
Role Primary - Primary
- Replication
Role Secondary - Secondary
- Primary
- Primary
- Secondary
- Secondary
- Primary
- Primary
- Secondary
- Secondary
- PRIMARY
- Primary
- SECONDARY
- Secondary
- "Primary"
- Primary
- "Secondary"
- Secondary
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cache:LinkedServer cache2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0