Skip to main content

secret_syncs

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

Overview

Namesecret_syncs
TypeResource
Idazure.secrets_store_extension.secret_syncs

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.
extendedLocationobject:vartype extended_location: ~azure.mgmt.secretsstoreextension.models.ExtendedLocation
forceSynchronizationstringForceSynchronization can be used to force the secret synchronization. The secret synchronization is triggered by changing the value in this field. This field is not used to resolve synchronization conflicts.
kubernetesSecretTypestringType specifies the type of the Kubernetes secret object, e.g. "Opaque" or"kubernetes.io/tls". The controller must have permission to create secrets of the specified type. Required. Known values are: "Opaque" and "kubernetes.io/tls". (Opaque, kubernetes.io/tls)
locationstringThe geo-location where the resource lives. Required.
objectSecretMappingarrayAn array of SecretObjectData that maps secret data from the external secret provider to the Kubernetes secret. Each entry specifies the source secret in the external provider and the corresponding key in the Kubernetes secret. Required.
provisioningStatestringProvisioning state of the SecretSync instance. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
secretProviderClassNamestringSecretProviderClassName specifies the name of the SecretProviderClass resource, which contains the information needed to access the cloud provider secret store. Required.
serviceAccountNamestringServiceAccountName specifies the name of the service account used to access the cloud provider secret store. The audience field in the service account token must be passed as parameter in the controller configuration. The audience is used when requesting a token from the API server for the service account; the supported audiences are defined by each provider. Required.
statusobjectSecretSyncStatus defines the observed state of the secret synchronization process.
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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, secret_sync_name, subscription_idGets the properties of a SecretSync instance.
list_by_resource_groupselectresource_group_name, subscription_idLists the SecretSync instances within a resource group.
list_by_subscriptionselectsubscription_idLists the SecretSync instances within an Azure subscription.
create_or_updateinsertresource_group_name, secret_sync_name, subscription_id, locationCreates new or updates a SecretSync instance.
updateupdateresource_group_name, secret_sync_name, subscription_idUpdates a SecretSync instance.
create_or_updatereplaceresource_group_name, secret_sync_name, subscription_id, locationCreates new or updates a SecretSync instance.
deletedeleteresource_group_name, secret_sync_name, subscription_idDeletes a SecretSync instance.

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.
secret_sync_namestringThe name of the SecretSync. Required.
subscription_idstring

SELECT examples

Gets the properties of a SecretSync instance.

SELECT
id,
name,
extendedLocation,
forceSynchronization,
kubernetesSecretType,
location,
objectSecretMapping,
provisioningState,
secretProviderClassName,
serviceAccountName,
status,
systemData,
tags,
type
FROM azure.secrets_store_extension.secret_syncs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND secret_sync_name = '{{ secret_sync_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates new or updates a SecretSync instance.

INSERT INTO azure.secrets_store_extension.secret_syncs (
tags,
location,
properties,
extendedLocation,
resource_group_name,
secret_sync_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ secret_sync_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a SecretSync instance.

UPDATE azure.secrets_store_extension.secret_syncs
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND secret_sync_name = '{{ secret_sync_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates new or updates a SecretSync instance.

REPLACE azure.secrets_store_extension.secret_syncs
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND secret_sync_name = '{{ secret_sync_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a SecretSync instance.

DELETE FROM azure.secrets_store_extension.secret_syncs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND secret_sync_name = '{{ secret_sync_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;