StandardAssignmentsClient Interface

public interface StandardAssignmentsClient

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

Method Summary

Modifier and Type Method and Description
abstract StandardAssignmentInner create(String resourceId, String standardAssignmentName, StandardAssignmentInner standardAssignment)

Creates or updates a standard assignment.

abstract Response<StandardAssignmentInner> createWithResponse(String resourceId, String standardAssignmentName, StandardAssignmentInner standardAssignment, Context context)

Creates or updates a standard assignment.

abstract void delete(String resourceId, String standardAssignmentName)

Deletes a standard assignment.

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

Deletes a standard assignment.

abstract StandardAssignmentInner get(String resourceId, String standardAssignmentName)

Retrieves a standard assignment.

abstract Response<StandardAssignmentInner> getWithResponse(String resourceId, String standardAssignmentName, Context context)

Retrieves a standard assignment.

abstract PagedIterable<StandardAssignmentInner> list(String scope)

Get a list of all relevant standard assignments over a scope.

abstract PagedIterable<StandardAssignmentInner> list(String scope, Context context)

Get a list of all relevant standard assignments over a scope.

Method Details

create

public abstract StandardAssignmentInner create(String resourceId, String standardAssignmentName, StandardAssignmentInner standardAssignment)

Creates or updates a standard assignment. This operation creates or updates a standard assignment with the given scope and name. standard assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.
standardAssignment - Custom standard assignment over a pre-defined scope.

Returns:

security Assignment on a resource group over a given scope.

createWithResponse

public abstract Response<StandardAssignmentInner> createWithResponse(String resourceId, String standardAssignmentName, StandardAssignmentInner standardAssignment, Context context)

Creates or updates a standard assignment. This operation creates or updates a standard assignment with the given scope and name. standard assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.
standardAssignment - Custom standard assignment over a pre-defined scope.
context - The context to associate with this operation.

Returns:

security Assignment on a resource group over a given scope along with Response<T>.

delete

public abstract void delete(String resourceId, String standardAssignmentName)

Deletes a standard assignment. This operation deletes a standard assignment, given its name and the scope it was created in. The scope of a standard assignment is the part of its ID preceding '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.

deleteWithResponse

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

Deletes a standard assignment. This operation deletes a standard assignment, given its name and the scope it was created in. The scope of a standard assignment is the part of its ID preceding '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.
context - The context to associate with this operation.

Returns:

get

public abstract StandardAssignmentInner get(String resourceId, String standardAssignmentName)

Retrieves a standard assignment. This operation retrieves a single standard assignment, given its name and the scope it was created at.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.

Returns:

security Assignment on a resource group over a given scope.

getWithResponse

public abstract Response<StandardAssignmentInner> getWithResponse(String resourceId, String standardAssignmentName, Context context)

Retrieves a standard assignment. This operation retrieves a single standard assignment, given its name and the scope it was created at.

Parameters:

resourceId - The identifier of the resource.
standardAssignmentName - The standard assignments assignment key - unique key for the standard assignment.
context - The context to associate with this operation.

Returns:

security Assignment on a resource group over a given scope along with Response<T>.

list

public abstract PagedIterable<StandardAssignmentInner> list(String scope)

Get a list of all relevant standard assignments over a scope.

Parameters:

scope - The scope of the standard assignment. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.

Returns:

a list of all relevant standard assignments over a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<StandardAssignmentInner> list(String scope, Context context)

Get a list of all relevant standard assignments over a scope.

Parameters:

scope - The scope of the standard assignment. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
context - The context to associate with this operation.

Returns:

a list of all relevant standard assignments over a scope as paginated response with PagedIterable<T>.

Applies to