office_consents
Creates, updates, deletes, gets or lists an office_consents resource.
Overview
| Name | office_consents |
| Type | Resource |
| Id | azure.security_insight.office_consents |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
consentId | string | Help to easily cascade among the data layers. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tenantId | string | The tenantId of the Office365 with the consent. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
consentId | string | Help to easily cascade among the data layers. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tenantId | string | The tenantId of the Office365 with the consent. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, workspace_name, consent_id, subscription_id | Gets an office365 consent. | |
list | select | resource_group_name, workspace_name, subscription_id | Gets all office365 consents. | |
delete | delete | resource_group_name, workspace_name, consent_id, subscription_id | Delete the office365 consent. |
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.
| Name | Datatype | Description |
|---|---|---|
consent_id | string | consent ID. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
workspace_name | string | The name of the workspace. Required. |
SELECT examples
- get
- list
Gets an office365 consent.
SELECT
id,
name,
consentId,
systemData,
tenantId,
type
FROM azure.security_insight.office_consents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND consent_id = '{{ consent_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all office365 consents.
SELECT
id,
name,
consentId,
systemData,
tenantId,
type
FROM azure.security_insight.office_consents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
DELETE examples
- delete
Delete the office365 consent.
DELETE FROM azure.security_insight.office_consents
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND consent_id = '{{ consent_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;