Skip to main content

bookshelves

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

Overview

Namebookshelves
TypeResource
Idazure.discovery.bookshelves

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.
bookshelfUristringThe bookshelf data plane API URI.
customerManagedKeysstringWhether or not to use a customer managed key when encrypting data at rest. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
keyVaultPropertiesobjectThe key to use for encrypting data at rest when customer managed keys are enabled. Required if Customer Managed Keys is enabled.
locationstringThe geo-location where the resource lives. Required.
logAnalyticsClusterIdstringThe Log Analytics Cluster to use for debug logs. This is required when Customer Managed Keys are enabled.
managedOnBehalfOfConfigurationobjectManaged-On-Behalf-Of configuration properties. This configuration exists for the resources where a resource provider manages those resources on behalf of the resource owner.
managedResourceGroupstringThe resource group for resources managed on behalf of customer.
privateEndpointConnectionsarrayList of private endpoint connections.
privateEndpointSubnetIdstringPrivate Endpoint Subnet ID for private endpoint connections.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Provisioning, Updating, Deleting)
publicNetworkAccessstringWhether or not public network access is allowed for this resource. For security reasons, it is recommended to disable it whenever possible. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
searchSubnetIdstringSearch Subnet ID for search resources.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workloadIdentitiesobjectUser assigned identity IDs to be used by knowledgebase workloads. The key value must be the resource ID of the identity resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, bookshelf_name, subscription_idGet a Bookshelf.
list_by_resource_groupselectresource_group_name, subscription_idList Bookshelf resources by resource group.
list_by_subscriptionselectsubscription_idList Bookshelf resources by subscription ID.
create_or_updateinsertresource_group_name, bookshelf_name, subscription_id, locationCreate a Bookshelf.
updateupdateresource_group_name, bookshelf_name, subscription_id, locationUpdate a Bookshelf.
create_or_updatereplaceresource_group_name, bookshelf_name, subscription_id, locationCreate a Bookshelf.
deletedeleteresource_group_name, bookshelf_name, subscription_idDelete a Bookshelf.

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
bookshelf_namestringThe name of the Bookshelf. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a Bookshelf.

SELECT
id,
name,
bookshelfUri,
customerManagedKeys,
keyVaultProperties,
location,
logAnalyticsClusterId,
managedOnBehalfOfConfiguration,
managedResourceGroup,
privateEndpointConnections,
privateEndpointSubnetId,
provisioningState,
publicNetworkAccess,
searchSubnetId,
systemData,
tags,
type,
workloadIdentities
FROM azure.discovery.bookshelves
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND bookshelf_name = '{{ bookshelf_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Bookshelf.

INSERT INTO azure.discovery.bookshelves (
tags,
location,
properties,
resource_group_name,
bookshelf_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ bookshelf_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Bookshelf.

UPDATE azure.discovery.bookshelves
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND bookshelf_name = '{{ bookshelf_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a Bookshelf.

REPLACE azure.discovery.bookshelves
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND bookshelf_name = '{{ bookshelf_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Bookshelf.

DELETE FROM azure.discovery.bookshelves
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND bookshelf_name = '{{ bookshelf_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;