Skip to main content

buckets

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

Overview

Namebuckets
TypeResource
Idazure.netapp.buckets

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.
akvDetailsobjectSpecifies the Azure Key Vault settings. These are used when a) retrieving the bucket server certificate, and b) storing the bucket credentials Notes: 1. If a bucket certificate was previously provided directly using the certificateObject property, it is possible to subsequently use the Azure Key Vault for certificate management by using these 'akvDetails' properties. However, once Azure Key Vault is configured, it is no longer possible to provide the certificate directly via the certificateObject property. 2. These properties are mutually exclusive with the server.certificateObject property.
fileSystemUserobjectFile System user having access to volume data. For Unix, this is the user's uid and gid. For Windows, this is the user's username. Note that the Unix and Windows user details are mutually exclusive, meaning one or other must be supplied, but not both.
pathstringThe volume path mounted inside the bucket. The default is the root path '/' if no value is provided when the bucket is created.
permissionsstringAccess permissions for the bucket. Either ReadOnly or ReadWrite. The default is ReadOnly if no value is provided during bucket creation. Known values are: "ReadOnly" and "ReadWrite". (ReadOnly, ReadWrite)
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Patching", "Updating", "Deleting", "Moving", "Failed", and "Succeeded". (Accepted, Creating, Patching, Updating, Deleting, Moving, Failed, Succeeded)
serverobjectProperties of the server managing the lifecycle of volume buckets.
statusstringThe bucket credentials status. There states: "NoCredentialsSet": Access and Secret key pair have not been generated. "CredentialsExpired": Access and Secret key pair have expired. "Active": The certificate has been installed and credentials are unexpired. Known values are: "NoCredentialsSet", "CredentialsExpired", and "Active". (NoCredentialsSet, CredentialsExpired, Active)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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, account_name, pool_name, volume_name, bucket_name, subscription_idGet the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.
listselectresource_group_name, account_name, pool_name, volume_name, subscription_idDescribes all buckets belonging to a volume. Buckets allow additional services, such as AI services, connect to the volume data contained in those buckets.
create_or_updateinsertresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idCreates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.
updateupdateresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idUpdates the details of a volume bucket.
create_or_updatereplaceresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idCreates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.
deletedeleteresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idDelete a volume's bucket.
generate_credentialsexecresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idGenerate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC).
generate_akv_credentialsexecresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idGenerate the access key and secret key used for accessing the specified volume bucket and store in Azure Key Vault.
refresh_certificateexecresource_group_name, account_name, pool_name, volume_name, bucket_name, subscription_idThis operation will fetch the certificate from Azure Key Vault and install it on the bucket server.

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
account_namestringThe name of the NetApp account. Required.
bucket_namestringThe name of the bucket. Required.
pool_namestringThe name of the capacity pool. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
volume_namestringThe name of the volume. Required.

SELECT examples

Get the details of the specified volume's bucket. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.

SELECT
id,
name,
akvDetails,
fileSystemUser,
path,
permissions,
provisioningState,
server,
status,
systemData,
type
FROM azure.netapp.buckets
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND volume_name = '{{ volume_name }}' -- required
AND bucket_name = '{{ bucket_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.

INSERT INTO azure.netapp.buckets (
properties,
resource_group_name,
account_name,
pool_name,
volume_name,
bucket_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ pool_name }}',
'{{ volume_name }}',
'{{ bucket_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates the details of a volume bucket.

UPDATE azure.netapp.buckets
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND volume_name = '{{ volume_name }}' --required
AND bucket_name = '{{ bucket_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates or updates a bucket for a volume. A bucket allows additional services, such as AI services, connect to the volume data contained in those buckets.

REPLACE azure.netapp.buckets
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND volume_name = '{{ volume_name }}' --required
AND bucket_name = '{{ bucket_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a volume's bucket.

DELETE FROM azure.netapp.buckets
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND volume_name = '{{ volume_name }}' --required
AND bucket_name = '{{ bucket_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Generate the access key and secret key used for accessing the specified volume bucket. Also return expiry date and time of key pair (in UTC).

EXEC azure.netapp.buckets.generate_credentials 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@volume_name='{{ volume_name }}' --required,
@bucket_name='{{ bucket_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"keyPairExpiryDays": {{ keyPairExpiryDays }}
}'
;