StandardAssignments Interface

public interface StandardAssignments

Resource collection API of StandardAssignments.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new StandardAssignment resource.

abstract void deleteById(String id)

Deletes a standard assignment.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Deletes a standard assignment.

abstract void deleteByResourceGroup(String resourceId, String standardAssignmentName)

Deletes a standard assignment.

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

Deletes a standard assignment.

abstract StandardAssignment get(String resourceId, String standardAssignmentName)

Retrieves a standard assignment.

abstract StandardAssignment getById(String id)

Retrieves a standard assignment.

abstract Response<StandardAssignment> getByIdWithResponse(String id, Context context)

Retrieves a standard assignment.

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

Retrieves a standard assignment.

abstract PagedIterable<StandardAssignment> list(String scope)

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

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

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

Method Details

define

public abstract StandardAssignment.DefinitionStages.Blank define(String name)

Begins definition for a new StandardAssignment resource.

Parameters:

name - resource name.

Returns:

the first stage of the new StandardAssignment definition.

deleteById

public abstract void deleteById(String id)

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:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, 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:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(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.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(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 StandardAssignment 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.

getById

public abstract StandardAssignment getById(String id)

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

Parameters:

id - the resource ID.

Returns:

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

getByIdWithResponse

public abstract Response<StandardAssignment> getByIdWithResponse(String id, Context context)

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

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

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

getWithResponse

public abstract Response<StandardAssignment> 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<StandardAssignment> 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<StandardAssignment> 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