Skip to main content

workspace_manager_assignments

Creates, updates, deletes, gets or lists a workspace_manager_assignments resource.

Overview

Nameworkspace_manager_assignments
TypeResource
Idazure.security_insight.workspace_manager_assignments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
etagstringResource Etag.
items_arrayList of resources included in this workspace manager assignment. Required.
lastJobEndTimestring (date-time)The time the last job associated to this assignment ended at.
lastJobProvisioningStatestringState of the last job associated to this assignment. Known values are: "Accepted", "InProgress", "Succeeded", "Failed", and "Canceled". (Accepted, InProgress, Succeeded, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetResourceNamestringThe resource name of the workspace manager group targeted by the workspace manager assignment. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, workspace_manager_assignment_name, subscription_idGets a workspace manager assignment.
listselectresource_group_name, workspace_name, subscription_id$orderby, $top, $skipTokenGet all workspace manager assignments for the Sentinel workspace manager.
create_or_updateinsertresource_group_name, workspace_name, workspace_manager_assignment_name, subscription_idCreates or updates a workspace manager assignment.
create_or_updatereplaceresource_group_name, workspace_name, workspace_manager_assignment_name, subscription_idCreates or updates a workspace manager assignment.
deletedeleteresource_group_name, workspace_name, workspace_manager_assignment_name, subscription_idDeletes a workspace manager assignment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_manager_assignment_namestringThe name of the workspace manager assignment. Required.
workspace_namestringThe name of the workspace. Required.
$orderbystringSorts the results. Optional. Default value is None.
$skipTokenstringSkiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional. Default value is None.
$topintegerReturns only the first n results. Optional. Default value is None.

SELECT examples

Gets a workspace manager assignment.

SELECT
id,
name,
etag,
items_,
lastJobEndTime,
lastJobProvisioningState,
systemData,
targetResourceName,
type
FROM azure.security_insight.workspace_manager_assignments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND workspace_manager_assignment_name = '{{ workspace_manager_assignment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workspace manager assignment.

INSERT INTO azure.security_insight.workspace_manager_assignments (
properties,
resource_group_name,
workspace_name,
workspace_manager_assignment_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ workspace_manager_assignment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a workspace manager assignment.

REPLACE azure.security_insight.workspace_manager_assignments
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND workspace_manager_assignment_name = '{{ workspace_manager_assignment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes a workspace manager assignment.

DELETE FROM azure.security_insight.workspace_manager_assignments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND workspace_manager_assignment_name = '{{ workspace_manager_assignment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;