workspaces
Creates, updates, deletes, gets or lists a workspaces resource.
Overview
| Name | workspaces |
| Type | Resource |
| Id | azure_extras.health_data_services.workspaces |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list_by_subscription
| 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. |
etag | string | An etag associated with the resource, used for optimistic concurrency when editing it. |
location | string | The common properties for any location based resource, tracked or proxy. |
privateEndpointConnections | array | The list of private endpoint connections that are set up for this resource. |
provisioningState | string | The provisioning state. Known values are: "Deleting", "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", "Deprovisioned", "Moving", "Suspended", "Warned", and "SystemMaintenance". (Deleting, Succeeded, Creating, Accepted, Verifying, Updating, Failed, Canceled, Deprovisioned, Moving, Suspended, Warned, SystemMaintenance) |
publicNetworkAccess | string | Control permission for data plane traffic coming from public networks while private endpoint is enabled. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | The common properties of tracked resources in the service. |
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. |
etag | string | An etag associated with the resource, used for optimistic concurrency when editing it. |
location | string | The common properties for any location based resource, tracked or proxy. |
privateEndpointConnections | array | The list of private endpoint connections that are set up for this resource. |
provisioningState | string | The provisioning state. Known values are: "Deleting", "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", "Deprovisioned", "Moving", "Suspended", "Warned", and "SystemMaintenance". (Deleting, Succeeded, Creating, Accepted, Verifying, Updating, Failed, Canceled, Deprovisioned, Moving, Suspended, Warned, SystemMaintenance) |
publicNetworkAccess | string | Control permission for data plane traffic coming from public networks while private endpoint is enabled. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | The common properties of tracked resources in the service. |
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. |
etag | string | An etag associated with the resource, used for optimistic concurrency when editing it. |
location | string | The common properties for any location based resource, tracked or proxy. |
privateEndpointConnections | array | The list of private endpoint connections that are set up for this resource. |
provisioningState | string | The provisioning state. Known values are: "Deleting", "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", "Deprovisioned", "Moving", "Suspended", "Warned", and "SystemMaintenance". (Deleting, Succeeded, Creating, Accepted, Verifying, Updating, Failed, Canceled, Deprovisioned, Moving, Suspended, Warned, SystemMaintenance) |
publicNetworkAccess | string | Control permission for data plane traffic coming from public networks while private endpoint is enabled. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | The common properties of tracked resources in the service. |
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, subscription_id | Gets the properties of the specified workspace. | |
list_by_resource_group | select | resource_group_name, subscription_id | Lists all the available workspaces under the specified resource group. | |
list_by_subscription | select | subscription_id | Lists all the available workspaces under the specified subscription. | |
create_or_update | insert | resource_group_name, workspace_name, subscription_id | Creates or updates a workspace resource with the specified parameters. | |
update | update | resource_group_name, workspace_name, subscription_id | Patch workspace details. | |
create_or_update | replace | resource_group_name, workspace_name, subscription_id | Creates or updates a workspace resource with the specified parameters. | |
delete | delete | resource_group_name, workspace_name, subscription_id | Deletes a specified workspace. |
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 |
|---|---|---|
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 workspace resource. Required. |
SELECT examples
- get
- list_by_resource_group
- list_by_subscription
Gets the properties of the specified workspace.
SELECT
id,
name,
etag,
location,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
systemData,
tags,
type
FROM azure_extras.health_data_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists all the available workspaces under the specified resource group.
SELECT
id,
name,
etag,
location,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
systemData,
tags,
type
FROM azure_extras.health_data_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists all the available workspaces under the specified subscription.
SELECT
id,
name,
etag,
location,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
systemData,
tags,
type
FROM azure_extras.health_data_services.workspaces
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates a workspace resource with the specified parameters.
INSERT INTO azure_extras.health_data_services.workspaces (
properties,
tags,
location,
etag,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: workspaces
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the workspaces resource.
- name: workspace_name
value: "{{ workspace_name }}"
description: Required parameter for the workspaces resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the workspaces resource.
- name: properties
description: |
Workspaces resource specific properties.
value:
provisioningState: "{{ provisioningState }}"
privateEndpointConnections:
- id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
systemData:
createdBy: "{{ createdBy }}"
createdByType: "{{ createdByType }}"
createdAt: "{{ createdAt }}"
lastModifiedBy: "{{ lastModifiedBy }}"
lastModifiedByType: "{{ lastModifiedByType }}"
lastModifiedAt: "{{ lastModifiedAt }}"
properties:
privateEndpoint:
id: "{{ id }}"
privateLinkServiceConnectionState:
status: "{{ status }}"
description: "{{ description }}"
actionsRequired: "{{ actionsRequired }}"
provisioningState: "{{ provisioningState }}"
publicNetworkAccess: "{{ publicNetworkAccess }}"
- name: tags
value: "{{ tags }}"
description: |
The common properties of tracked resources in the service.
- name: location
value: "{{ location }}"
description: |
The common properties for any location based resource, tracked or proxy.
- name: etag
value: "{{ etag }}"
description: |
An etag associated with the resource, used for optimistic concurrency when editing it.
UPDATE examples
- update
Patch workspace details.
UPDATE azure_extras.health_data_services.workspaces
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;
REPLACE examples
- create_or_update
Creates or updates a workspace resource with the specified parameters.
REPLACE azure_extras.health_data_services.workspaces
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Deletes a specified workspace.
DELETE FROM azure_extras.health_data_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;