Skip to main content

mesh_service

Creates, updates, deletes, gets or lists a mesh_service resource.

Overview

Namemesh_service
TypeResource
Idazure.service_fabric_dataplane.mesh_service

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
autoScalingPoliciesarray
codePackagesarray
descriptionstring
diagnosticsobjectReference to sinks in DiagnosticsDescription.
dnsNamestring
executionPolicyobjectThe execution policy of the service. You probably want to use the sub-classes and not this class directly. Known sub-classes are: DefaultExecutionPolicy, RunToCompletionExecutionPolicy All required parameters must be populated in order to send to Azure.
healthStatestringDescribes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
identityRefsarray
networkRefsarray
osTypestring
replicaCountinteger
statusstringStatus of the service. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
statusDetailsstringGives additional information about the current status of the service.
unhealthyEvaluationstringWhen the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapplication_resource_name, service_resource_name, endpointGets the Service resource with the given name. Gets the information about the Service resource with the given name. The information include the description and other properties of the Service.
listselectapplication_resource_name, endpointLists all the service resources. Gets the information about all services of an application resource. The information include the description and other properties of the Service.

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
application_resource_namestringThe identity of the application.
endpointstringThe service endpoint host (no scheme). (default: )
service_resource_namestringThe identity of the service.

SELECT examples

Gets the Service resource with the given name. Gets the information about the Service resource with the given name. The information include the description and other properties of the Service.

SELECT
name,
autoScalingPolicies,
codePackages,
description,
diagnostics,
dnsName,
executionPolicy,
healthState,
identityRefs,
networkRefs,
osType,
replicaCount,
status,
statusDetails,
unhealthyEvaluation
FROM azure.service_fabric_dataplane.mesh_service
WHERE application_resource_name = '{{ application_resource_name }}' -- required
AND service_resource_name = '{{ service_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;