Partager via


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)

Creates or updates a policy definition in a subscription.

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

Creates or updates a policy definition in a subscription.

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

Creates or updates a policy definition in a management group.

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

Creates or updates a policy definition in a management group.

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

Creates or updates a policy definition in a management group.

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

Creates or updates a policy definition in a management group.

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

Creates or updates a policy definition in a subscription.

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

Creates or updates a policy definition in a subscription.

abstract void delete(String policyDefinitionName)

Deletes a policy definition in a subscription.

abstract Mono<Void> deleteAsync(String policyDefinitionName)

Deletes a policy definition in a subscription.

abstract void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId)

Deletes a policy definition in a management group.

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

Deletes a policy definition in a management group.

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

Deletes a policy definition in a management group.

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

Deletes a policy definition in a management group.

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

Deletes a policy definition in a subscription.

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

Deletes a policy definition in a subscription.

abstract PolicyDefinitionInner get(String policyDefinitionName)

Retrieves a policy definition in a subscription.

abstract Mono<PolicyDefinitionInner> getAsync(String policyDefinitionName)

Retrieves a policy definition in a subscription.

abstract PolicyDefinitionInner getAtManagementGroup(String policyDefinitionName, String managementGroupId)

Retrieve a policy definition in a management group.

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

Retrieve a policy definition in a management group.

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

Retrieve a policy definition in a management group.

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

Retrieve a policy definition in a management group.

abstract PolicyDefinitionInner getBuiltIn(String policyDefinitionName)

Retrieves a built-in policy definition.

abstract Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName)

Retrieves a built-in policy definition.

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

Retrieves a built-in policy definition.

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

Retrieves a built-in policy definition.

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

Retrieves a policy definition in a subscription.

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

Retrieves a policy definition in a subscription.

abstract PagedIterable<PolicyDefinitionInner> list()

Retrieves policy definitions in a subscription 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)

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

abstract PagedFlux<PolicyDefinitionInner> listAsync()

Retrieves policy definitions in a subscription 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)

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

abstract PagedIterable<PolicyDefinitionInner> listBuiltIn()

Retrieve built-in policy definitions 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)

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

abstract PagedFlux<PolicyDefinitionInner> listBuiltInAsync()

Retrieve built-in policy definitions 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)

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

abstract PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId)

Retrieve policy definitions in a management group 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)

Retrieve policy definitions in a management group 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)

Retrieve policy definitions in a management group 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)

Retrieve policy definitions in a management group 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)

Creates or updates a policy definition in a subscription. 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 create.
parameters - The policy definition properties.

Returns:

the policy definition.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

Creates or updates a policy definition in a subscription. 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 create.
parameters - The policy definition properties.

Returns:

the policy definition on successful completion of Mono.

createOrUpdateAtManagementGroup

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

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

Parameters:

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

Returns:

the policy definition.

createOrUpdateAtManagementGroupAsync

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

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

Parameters:

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

Returns:

the policy definition on successful completion of Mono.

createOrUpdateAtManagementGroupWithResponse

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

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

Parameters:

policyDefinitionName - The name of the policy definition to create.
managementGroupId - The ID of the management group.
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> createOrUpdateAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)

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

Parameters:

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

Returns:

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

createOrUpdateWithResponse

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

Creates or updates a policy definition in a subscription. 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 create.
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> createOrUpdateWithResponseAsync(String policyDefinitionName, PolicyDefinitionInner parameters)

Creates or updates a policy definition in a subscription. 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 create.
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)

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

Parameters:

policyDefinitionName - The name of the policy definition to delete.

deleteAsync

public abstract Mono deleteAsync(String policyDefinitionName)

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

Parameters:

policyDefinitionName - The name of the policy definition to delete.

Returns:

A Mono that completes when a successful response is received.

deleteAtManagementGroup

public abstract void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId)

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

Parameters:

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

deleteAtManagementGroupAsync

public abstract Mono deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)

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

Parameters:

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

Returns:

A Mono that completes when a successful response is received.

deleteAtManagementGroupWithResponse

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

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

Parameters:

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

Returns:

deleteAtManagementGroupWithResponseAsync

public abstract Mono> deleteAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)

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

Parameters:

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

Returns:

the Response<T> on successful completion of Mono.

deleteWithResponse

public abstract Response deleteWithResponse(String policyDefinitionName, Context context)

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

Parameters:

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

Returns:

deleteWithResponseAsync

public abstract Mono> deleteWithResponseAsync(String policyDefinitionName)

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

Parameters:

policyDefinitionName - The name of the policy definition to delete.

Returns:

the Response<T> on successful completion of Mono.

get

public abstract PolicyDefinitionInner get(String policyDefinitionName)

Retrieves a policy definition in a subscription. 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 getAsync(String policyDefinitionName)

Retrieves a policy definition in a subscription. 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 policyDefinitionName, String managementGroupId)

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

Parameters:

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

Returns:

the policy definition.

getAtManagementGroupAsync

public abstract Mono getAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)

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

Parameters:

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

Returns:

the policy definition on successful completion of Mono.

getAtManagementGroupWithResponse

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

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

Parameters:

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

Returns:

the policy definition along with Response<T>.

getAtManagementGroupWithResponseAsync

public abstract Mono> getAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)

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

Parameters:

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

Returns:

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

getBuiltIn

public abstract PolicyDefinitionInner getBuiltIn(String policyDefinitionName)

Retrieves a built-in policy definition. 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 getBuiltInAsync(String policyDefinitionName)

Retrieves a built-in policy definition. 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 getBuiltInWithResponse(String policyDefinitionName, Context context)

Retrieves a built-in policy definition. 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> getBuiltInWithResponseAsync(String policyDefinitionName)

Retrieves a built-in policy definition. 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 getWithResponse(String policyDefinitionName, Context context)

Retrieves a policy definition in a subscription. 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> getWithResponseAsync(String policyDefinitionName)

Retrieves a policy definition in a subscription. 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 list()

Retrieves policy definitions in a subscription 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:

list of policy definitions as paginated response with PagedIterable<T>.

list

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

Retrieves policy definitions in a subscription 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:

list of policy definitions as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync()

Retrieves policy definitions in a subscription 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:

list of policy definitions as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux listAsync(String filter, Integer top)

Retrieves policy definitions in a subscription 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:

list of policy definitions as paginated response with PagedFlux<T>.

listBuiltIn

public abstract PagedIterable listBuiltIn()

Retrieve built-in policy definitions 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:

list of policy definitions as paginated response with PagedIterable<T>.

listBuiltIn

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

Retrieve built-in policy definitions 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:

list of policy definitions as paginated response with PagedIterable<T>.

listBuiltInAsync

public abstract PagedFlux listBuiltInAsync()

Retrieve built-in policy definitions 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:

list of policy definitions as paginated response with PagedFlux<T>.

listBuiltInAsync

public abstract PagedFlux listBuiltInAsync(String filter, Integer top)

Retrieve built-in policy definitions 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:

list of policy definitions as paginated response with PagedFlux<T>.

listByManagementGroup

public abstract PagedIterable listByManagementGroup(String managementGroupId)

Retrieve policy definitions in a management group 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:

list of policy definitions as paginated response with PagedIterable<T>.

listByManagementGroup

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

Retrieve policy definitions in a management group 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:

list of policy definitions as paginated response with PagedIterable<T>.

listByManagementGroupAsync

public abstract PagedFlux listByManagementGroupAsync(String managementGroupId)

Retrieve policy definitions in a management group 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:

list of policy definitions as paginated response with PagedFlux<T>.

listByManagementGroupAsync

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

Retrieve policy definitions in a management group 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:

list of policy definitions as paginated response with PagedFlux<T>.

Applies to