PolicyDefinitionsClient Interface

public interface PolicyDefinitionsClient

An instance of this class provides access to all the operations defined in PolicyDefinitionsClient.

Method Summary

Modifier and Type Method and Description
abstract PolicyDefinitionInner createOrUpdate(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<PolicyDefinitionInner> createOrUpdateAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

abstract PolicyDefinitionInner createOrUpdateAtManagementGroup(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<PolicyDefinitionInner> createOrUpdateAtManagementGroupAsync(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

abstract Response<PolicyDefinitionInner> createOrUpdateAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters, Context context)

This operation creates or updates a policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<Response<PolicyDefinitionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

abstract Response<PolicyDefinitionInner> createOrUpdateWithResponse(String policyDefinitionName, PolicyDefinitionInner parameters, Context context)

This operation creates or updates a policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<Response<PolicyDefinitionInner>> createOrUpdateWithResponseAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

abstract void delete(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<Void> deleteAsync(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

abstract void deleteAtManagementGroup(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<Void> deleteAtManagementGroupAsync(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

abstract Response<Void> deleteAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, Context context)

This operation deletes the policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<Response<Void>> deleteAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

abstract Response<Void> deleteWithResponse(String policyDefinitionName, Context context)

This operation deletes the policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<Response<Void>> deleteWithResponseAsync(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

abstract PolicyDefinitionInner get(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<PolicyDefinitionInner> getAsync(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

abstract PolicyDefinitionInner getAtManagementGroup(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<PolicyDefinitionInner> getAtManagementGroupAsync(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

abstract Response<PolicyDefinitionInner> getAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, Context context)

This operation retrieves the policy definition in the given management group with the given name.

abstract reactor.core.publisher.Mono<Response<PolicyDefinitionInner>> getAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

abstract PolicyDefinitionInner getBuiltIn(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

abstract reactor.core.publisher.Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

abstract Response<PolicyDefinitionInner> getBuiltInWithResponse(String policyDefinitionName, Context context)

This operation retrieves the built-in policy definition with the given name.

abstract reactor.core.publisher.Mono<Response<PolicyDefinitionInner>> getBuiltInWithResponseAsync(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

abstract Response<PolicyDefinitionInner> getWithResponse(String policyDefinitionName, Context context)

This operation retrieves the policy definition in the given subscription with the given name.

abstract reactor.core.publisher.Mono<Response<PolicyDefinitionInner>> getWithResponseAsync(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

abstract PagedIterable<PolicyDefinitionInner> list()

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter.

abstract PagedIterable<PolicyDefinitionInner> list(String filter, Integer top, Context context)

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listAsync()

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listAsync(String filter, Integer top)

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter.

abstract PagedIterable<PolicyDefinitionInner> listBuiltIn()

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter.

abstract PagedIterable<PolicyDefinitionInner> listBuiltIn(String filter, Integer top, Context context)

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listBuiltInAsync()

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listBuiltInAsync(String filter, Integer top)

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter.

abstract PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter.

abstract PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId, String filter, Integer top, Context context)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listByManagementGroupAsync(String managementGroupId)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter.

abstract PagedFlux<PolicyDefinitionInner> listByManagementGroupAsync(String managementGroupId, String filter, Integer top)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter.

Method Details

createOrUpdate

public abstract PolicyDefinitionInner createOrUpdate(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition.

createOrUpdateAsync

public abstract Mono<PolicyDefinitionInner> createOrUpdateAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition on successful completion of Mono.

createOrUpdateAtManagementGroup

public abstract PolicyDefinitionInner createOrUpdateAtManagementGroup(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition.

createOrUpdateAtManagementGroupAsync

public abstract Mono<PolicyDefinitionInner> createOrUpdateAtManagementGroupAsync(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition on successful completion of Mono.

createOrUpdateAtManagementGroupWithResponse

public abstract Response<PolicyDefinitionInner> createOrUpdateAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters, Context context)

This operation creates or updates a policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.
context - The context to associate with this operation.

Returns:

the policy definition along with Response<T>.

createOrUpdateAtManagementGroupWithResponseAsync

public abstract Mono<Response<PolicyDefinitionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition along with Response<T> on successful completion of Mono.

createOrUpdateWithResponse

public abstract Response<PolicyDefinitionInner> createOrUpdateWithResponse(String policyDefinitionName, PolicyDefinitionInner parameters, Context context)

This operation creates or updates a policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.
context - The context to associate with this operation.

Returns:

the policy definition along with Response<T>.

createOrUpdateWithResponseAsync

public abstract Mono<Response<PolicyDefinitionInner>> createOrUpdateWithResponseAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

This operation creates or updates a policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
parameters - The policy definition properties.

Returns:

the policy definition along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

deleteAsync

public abstract Mono<Void> deleteAsync(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

Returns:

A Mono that completes when a successful response is received.

deleteAtManagementGroup

public abstract void deleteAtManagementGroup(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

deleteAtManagementGroupAsync

public abstract Mono<Void> deleteAtManagementGroupAsync(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

Returns:

A Mono that completes when a successful response is received.

deleteAtManagementGroupWithResponse

public abstract Response<Void> deleteAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, Context context)

This operation deletes the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
context - The context to associate with this operation.

Returns:

deleteAtManagementGroupWithResponseAsync

public abstract Mono<Response<Void>> deleteAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName)

This operation deletes the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

Returns:

the Response<T> on successful completion of Mono.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String policyDefinitionName, Context context)

This operation deletes the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
context - The context to associate with this operation.

Returns:

deleteWithResponseAsync

public abstract Mono<Response<Void>> deleteWithResponseAsync(String policyDefinitionName)

This operation deletes the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

Returns:

the Response<T> on successful completion of Mono.

get

public abstract PolicyDefinitionInner get(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition.

getAsync

public abstract Mono<PolicyDefinitionInner> getAsync(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition on successful completion of Mono.

getAtManagementGroup

public abstract PolicyDefinitionInner getAtManagementGroup(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition.

getAtManagementGroupAsync

public abstract Mono<PolicyDefinitionInner> getAtManagementGroupAsync(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition on successful completion of Mono.

getAtManagementGroupWithResponse

public abstract Response<PolicyDefinitionInner> getAtManagementGroupWithResponse(String managementGroupId, String policyDefinitionName, Context context)

This operation retrieves the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.
context - The context to associate with this operation.

Returns:

the policy definition along with Response<T>.

getAtManagementGroupWithResponseAsync

public abstract Mono<Response<PolicyDefinitionInner>> getAtManagementGroupWithResponseAsync(String managementGroupId, String policyDefinitionName)

This operation retrieves the policy definition in the given management group with the given name.

Parameters:

managementGroupId - The ID of the management group.
policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition along with Response<T> on successful completion of Mono.

getBuiltIn

public abstract PolicyDefinitionInner getBuiltIn(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

Parameters:

policyDefinitionName - The name of the built-in policy definition to get.

Returns:

the policy definition.

getBuiltInAsync

public abstract Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

Parameters:

policyDefinitionName - The name of the built-in policy definition to get.

Returns:

the policy definition on successful completion of Mono.

getBuiltInWithResponse

public abstract Response<PolicyDefinitionInner> getBuiltInWithResponse(String policyDefinitionName, Context context)

This operation retrieves the built-in policy definition with the given name.

Parameters:

policyDefinitionName - The name of the built-in policy definition to get.
context - The context to associate with this operation.

Returns:

the policy definition along with Response<T>.

getBuiltInWithResponseAsync

public abstract Mono<Response<PolicyDefinitionInner>> getBuiltInWithResponseAsync(String policyDefinitionName)

This operation retrieves the built-in policy definition with the given name.

Parameters:

policyDefinitionName - The name of the built-in policy definition to get.

Returns:

the policy definition along with Response<T> on successful completion of Mono.

getWithResponse

public abstract Response<PolicyDefinitionInner> getWithResponse(String policyDefinitionName, Context context)

This operation retrieves the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.
context - The context to associate with this operation.

Returns:

the policy definition along with Response<T>.

getWithResponseAsync

public abstract Mono<Response<PolicyDefinitionInner>> getWithResponseAsync(String policyDefinitionName)

This operation retrieves the policy definition in the given subscription with the given name.

Parameters:

policyDefinitionName - The name of the policy definition to get.

Returns:

the policy definition along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable<PolicyDefinitionInner> list()

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<PolicyDefinitionInner> list(String filter, Integer top, Context context)

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
context - The context to associate with this operation.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux<PolicyDefinitionInner> listAsync()

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux<PolicyDefinitionInner> listAsync(String filter, Integer top)

This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

listBuiltIn

public abstract PagedIterable<PolicyDefinitionInner> listBuiltIn()

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

listBuiltIn

public abstract PagedIterable<PolicyDefinitionInner> listBuiltIn(String filter, Integer top, Context context)

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.

Parameters:

filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
context - The context to associate with this operation.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

listBuiltInAsync

public abstract PagedFlux<PolicyDefinitionInner> listBuiltInAsync()

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

listBuiltInAsync

public abstract PagedFlux<PolicyDefinitionInner> listBuiltInAsync(String filter, Integer top)

This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.

Parameters:

filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

listByManagementGroup

public abstract PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

managementGroupId - The ID of the management group.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

listByManagementGroup

public abstract PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId, String filter, Integer top, Context context)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

managementGroupId - The ID of the management group.
filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
context - The context to associate with this operation.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedIterable<T>.

listByManagementGroupAsync

public abstract PagedFlux<PolicyDefinitionInner> listByManagementGroupAsync(String managementGroupId)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

managementGroupId - The ID of the management group.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

listByManagementGroupAsync

public abstract PagedFlux<PolicyDefinitionInner> listByManagementGroupAsync(String managementGroupId, String filter, Integer top)

This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.

Parameters:

managementGroupId - The ID of the management group.
filter - The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
top - Maximum number of records to return. When the $top filter is not provided, it will return 500 records.

Returns:

the response of a PolicyDefinition list operation as paginated response with PagedFlux<T>.

Applies to