Package com.pulumi.azurenative.cache
Class LinkedServer
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.cache.LinkedServer
-
public class LinkedServer extends com.pulumi.resources.CustomResource
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. ## Example Usage ### LinkedServer_Create ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.cache.LinkedServer; import com.pulumi.azurenative.cache.LinkedServerArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var linkedServer = new LinkedServer("linkedServer", LinkedServerArgs.builder() .linkedRedisCacheId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache2") .linkedRedisCacheLocation("West US") .linkedServerName("cache2") .name("cache1") .resourceGroupName("rg1") .serverRole("Secondary") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:cache:LinkedServer cache2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName} ```
-
-
Constructor Summary
Constructors Constructor Description LinkedServer(java.lang.String name)
LinkedServer(java.lang.String name, LinkedServerArgs args)
LinkedServer(java.lang.String name, LinkedServerArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
geoReplicatedPrimaryHostName()
static LinkedServer
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
linkedRedisCacheId()
com.pulumi.core.Output<java.lang.String>
linkedRedisCacheLocation()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
primaryHostName()
com.pulumi.core.Output<java.lang.String>
provisioningState()
com.pulumi.core.Output<java.lang.String>
serverRole()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
LinkedServer
public LinkedServer(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
LinkedServer
public LinkedServer(java.lang.String name, LinkedServerArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
LinkedServer
public LinkedServer(java.lang.String name, LinkedServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
geoReplicatedPrimaryHostName
public com.pulumi.core.Output<java.lang.String> geoReplicatedPrimaryHostName()
- Returns:
- The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
-
linkedRedisCacheId
public com.pulumi.core.Output<java.lang.String> linkedRedisCacheId()
- Returns:
- Fully qualified resourceId of the linked redis cache.
-
linkedRedisCacheLocation
public com.pulumi.core.Output<java.lang.String> linkedRedisCacheLocation()
- Returns:
- Location of the linked redis cache.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
primaryHostName
public com.pulumi.core.Output<java.lang.String> primaryHostName()
- Returns:
- The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
-
provisioningState
public com.pulumi.core.Output<java.lang.String> provisioningState()
- Returns:
- Terminal state of the link between primary and secondary redis cache.
-
serverRole
public com.pulumi.core.Output<java.lang.String> serverRole()
- Returns:
- Role of the linked server.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
-
get
public static LinkedServer get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-