Skip to main content

impact_categories

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

Overview

Nameimpact_categories
TypeResource
Idazure.impact_reporting.impact_categories

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.
categoryIdstringUnique ID of the category. Required.
descriptionstringDescription of the category.
parentCategoryIdstringUnique ID of the parent category.
provisioningStatestringResource provisioning state. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
requiredImpactPropertiesarrayThe workloadImpact properties which are required when reporting with the impact category.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectimpact_category_name, subscription_idGet a ImpactCategory.
list_by_subscriptionselectsubscription_id, resourceTypecategoryNameList ImpactCategory resources by subscription.

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
impact_category_namestringName of the impact category. Required.
resourceTypestringFilter by resource type. Required.
subscription_idstring
categoryNamestringFilter by category name. Default value is None.

SELECT examples

Get a ImpactCategory.

SELECT
id,
name,
categoryId,
description,
parentCategoryId,
provisioningState,
requiredImpactProperties,
systemData,
type
FROM azure.impact_reporting.impact_categories
WHERE impact_category_name = '{{ impact_category_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;