GovernanceAssignments Interface

public interface GovernanceAssignments

Resource collection API of GovernanceAssignments.

Method Summary

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

Begins definition for a new GovernanceAssignment resource.

abstract void delete(String scope, String assessmentName, String assignmentKey)

Delete a GovernanceAssignment over a given scope.

abstract void deleteById(String id)

Delete a GovernanceAssignment over a given scope.

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

Delete a GovernanceAssignment over a given scope.

abstract Response<Void> deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Delete a GovernanceAssignment over a given scope.

abstract GovernanceAssignment get(String scope, String assessmentName, String assignmentKey)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

abstract GovernanceAssignment getById(String id)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

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

Get a specific governanceAssignment for the requested scope by AssignmentKey.

abstract Response<GovernanceAssignment> getWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

abstract PagedIterable<GovernanceAssignment> list(String scope, String assessmentName)

Get governance assignments on all of your resources inside a scope.

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

Get governance assignments on all of your resources inside a scope.

Method Details

define

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

Begins definition for a new GovernanceAssignment resource.

Parameters:

name - resource name.

Returns:

the first stage of the new GovernanceAssignment definition.

delete

public abstract void delete(String scope, String assessmentName, String assignmentKey)

Delete a GovernanceAssignment over a given scope.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.
assignmentKey - The governance assignment key - the assessment key of the required governance assignment.

deleteById

public abstract void deleteById(String id)

Delete a GovernanceAssignment over a given scope.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response deleteByIdWithResponse(String id, Context context)

Delete a GovernanceAssignment over a given scope.

Parameters:

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

Returns:

deleteWithResponse

public abstract Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Delete a GovernanceAssignment over a given scope.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.
assignmentKey - The governance assignment key - the assessment key of the required governance assignment.
context - The context to associate with this operation.

Returns:

get

public abstract GovernanceAssignment get(String scope, String assessmentName, String assignmentKey)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.
assignmentKey - The governance assignment key - the assessment key of the required governance assignment.

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey.

getById

public abstract GovernanceAssignment getById(String id)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

id - the resource ID.

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey along with Response<T>.

getByIdWithResponse

public abstract Response getByIdWithResponse(String id, Context context)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

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

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey along with Response<T>.

getWithResponse

public abstract Response getWithResponse(String scope, String assessmentName, String assignmentKey, Context context)

Get a specific governanceAssignment for the requested scope by AssignmentKey.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.
assignmentKey - The governance assignment key - the assessment key of the required governance assignment.
context - The context to associate with this operation.

Returns:

a specific governanceAssignment for the requested scope by AssignmentKey along with Response<T>.

list

public abstract PagedIterable list(String scope, String assessmentName)

Get governance assignments on all of your resources inside a scope.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.

Returns:

governance assignments on all of your resources inside a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String scope, String assessmentName, Context context)

Get governance assignments on all of your resources inside a scope.

Parameters:

scope - The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
assessmentName - The Assessment Key - A unique key for the assessment type.
context - The context to associate with this operation.

Returns:

governance assignments on all of your resources inside a scope as paginated response with PagedIterable<T>.

Applies to