ComponentPolicyStates interface
Interface representing a ComponentPolicyStates.
Methods
Method Details
listQueryResultsForPolicyDefinition(string, string, string, ComponentPolicyStatesListQueryResultsForPolicyDefinitionOptionalParams)
Queries component policy states for the subscription level policy definition.
function listQueryResultsForPolicyDefinition(subscriptionId: string, policyDefinitionName: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForPolicyDefinitionOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- subscriptionId
-
string
Microsoft Azure subscription ID.
- policyDefinitionName
-
string
Policy definition name.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
listQueryResultsForResource(string, string, ComponentPolicyStatesListQueryResultsForResourceOptionalParams)
Queries component policy states for the resource.
function listQueryResultsForResource(resourceId: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForResourceOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- resourceId
-
string
Resource ID.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
listQueryResultsForResourceGroup(string, string, string, ComponentPolicyStatesListQueryResultsForResourceGroupOptionalParams)
Queries component policy states under resource group scope.
function listQueryResultsForResourceGroup(subscriptionId: string, resourceGroupName: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForResourceGroupOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- subscriptionId
-
string
Microsoft Azure subscription ID.
- resourceGroupName
-
string
Resource group name.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
listQueryResultsForResourceGroupLevelPolicyAssignment(string, string, string, string, ComponentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams)
Queries component policy states for the resource group level policy assignment.
function listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId: string, resourceGroupName: string, policyAssignmentName: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- subscriptionId
-
string
Microsoft Azure subscription ID.
- resourceGroupName
-
string
Resource group name.
- policyAssignmentName
-
string
Policy assignment name.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
listQueryResultsForSubscription(string, string, ComponentPolicyStatesListQueryResultsForSubscriptionOptionalParams)
Queries component policy states under subscription scope.
function listQueryResultsForSubscription(subscriptionId: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForSubscriptionOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- subscriptionId
-
string
Microsoft Azure subscription ID.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
listQueryResultsForSubscriptionLevelPolicyAssignment(string, string, string, ComponentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams)
Queries component policy states for the subscription level policy assignment.
function listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId: string, policyAssignmentName: string, componentPolicyStatesResource: string, options?: ComponentPolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams): Promise<ComponentPolicyStatesQueryResults>
Parameters
- subscriptionId
-
string
Microsoft Azure subscription ID.
- policyAssignmentName
-
string
Policy assignment name.
- componentPolicyStatesResource
-
string
The virtual resource under ComponentPolicyStates resource type. In a given time range, 'latest' represents the latest component policy state(s).
The options parameters.
Returns
Promise<ComponentPolicyStatesQueryResults>
Azure SDK for JavaScript