Skip to main content

goal_resources

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

Overview

Namegoal_resources
TypeResource
Idazure.resilience_management.goal_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
disasterRecoveryAttestationStatusstringFlag which depicts whether the Arm resource is manually attested for disaster recovery recommendation. Known values are: "NotAttested" and "ManuallyAttested". (NotAttested, ManuallyAttested)
disasterRecoveryGoalParticipationstringFlag which depicts whether the Arm resource is excluded for disaster recovery recommendation. Known values are: "Excluded" and "Included". (Excluded, Included)
exclusionReasonForDisasterRecoveryGoalsstringReason for exclusion from disaster recovery goals. Known values are: "UserSelectedExclusion", "FailedOverResource", and "UnsupportedResource". (UserSelectedExclusion, FailedOverResource, UnsupportedResource)
exclusionReasonForHighAvailabilityGoalsstringReason for exclusion from high availability goals. Known values are: "UserSelectedExclusion", "FailedOverResource", and "UnsupportedResource". (UserSelectedExclusion, FailedOverResource, UnsupportedResource)
highAvailabilityAttestationStatusstringFlag which depicts whether the Arm resource is manually attested for high availability recommendation. Required. Known values are: "NotAttested" and "ManuallyAttested". (NotAttested, ManuallyAttested)
highAvailabilityGoalParticipationstringFlag which depicts whether the Arm resource is excluded for high availability recommendation. Required. Known values are: "Excluded" and "Included". (Excluded, Included)
provisioningStatestringProvisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted)
resourceArmIdstringArm Id of resource under the SG for which the extension resource is maintained. Required.
serviceGroupMembershipsarrayList of service groups of which this resource is memberof.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userConfirmationForHighAvailabilityarrayList of user confirmations for high availability solutions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_group_name, goal_assignment_name, goal_resource_nameGet a GoalResource.
listselectservice_group_name, goal_assignment_name$skipToken, $topList GoalResource resources by GoalAssignment.

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
goal_assignment_namestringThe name of the GoalAssignment. Required.
goal_resource_namestringThe name of the GoalAssignment. Required.
service_group_namestringThe name of the service group. Required.
$skipTokenstringSkip over when retrieving results. Default value is None.
$topintegerNumber of elements to return when retrieving results. Default value is None.

SELECT examples

Get a GoalResource.

SELECT
id,
name,
disasterRecoveryAttestationStatus,
disasterRecoveryGoalParticipation,
exclusionReasonForDisasterRecoveryGoals,
exclusionReasonForHighAvailabilityGoals,
highAvailabilityAttestationStatus,
highAvailabilityGoalParticipation,
provisioningState,
resourceArmId,
serviceGroupMemberships,
systemData,
type,
userConfirmationForHighAvailability
FROM azure.resilience_management.goal_resources
WHERE service_group_name = '{{ service_group_name }}' -- required
AND goal_assignment_name = '{{ goal_assignment_name }}' -- required
AND goal_resource_name = '{{ goal_resource_name }}' -- required
;