Skip to main content

unplaced_replica_informations

Creates, updates, deletes, gets or lists an unplaced_replica_informations resource.

Overview

Nameunplaced_replica_informations
TypeResource
Idazure.service_fabric_dataplane.unplaced_replica_informations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
PartitionIdstring
ServiceNamestring
UnplacedReplicaDetailsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_unplaced_replica_informationselectservice_id, endpointPartitionId, OnlyQueryPrimaries, timeoutGets the information about unplaced replica of the service. Returns the information about the unplaced replicas of the service. If PartitionId is specified, then result will contain information only about unplaced replicas for that partition. If PartitionId is not specified, then result will contain information about unplaced replicas for all partitions of that service. If OnlyQueryPrimaries is set to true, then result will contain information only about primary replicas, and will ignore unplaced secondary replicas.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
service_idstringThe identity of the service. This ID is typically the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myappapp1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions.
OnlyQueryPrimariesbooleanIndicates that unplaced replica information will be queries only for primary replicas.
PartitionIdstringThe identity of the partition.
timeoutinteger (int64)The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds.

SELECT examples

Gets the information about unplaced replica of the service. Returns the information about the unplaced replicas of the service. If PartitionId is specified, then result will contain information only about unplaced replicas for that partition. If PartitionId is not specified, then result will contain information about unplaced replicas for all partitions of that service. If OnlyQueryPrimaries is set to true, then result will contain information only about primary replicas, and will ignore unplaced secondary replicas.

SELECT
PartitionId,
ServiceName,
UnplacedReplicaDetails
FROM azure.service_fabric_dataplane.unplaced_replica_informations
WHERE service_id = '{{ service_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND PartitionId = '{{ PartitionId }}'
AND OnlyQueryPrimaries = '{{ OnlyQueryPrimaries }}'
AND timeout = '{{ timeout }}'
;