Skip to main content

deployment_safeguards

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

Overview

Namedeployment_safeguards
TypeResource
Idazure.container_service_safeguards.deployment_safeguards

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.
eTagstringIf eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
excludedNamespacesarrayUser defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards.
levelstringThe deployment safeguards level. Possible values are Warn and Enforce. Required. Known values are: "Warn" and "Enforce". (Warn, Enforce)
podSecurityStandardsLevelstringThe pod security standards level. Known values are: "Privileged", "Baseline", and "Restricted". (Privileged, Baseline, Restricted)
provisioningStatestringProvisioning State. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
systemExcludedNamespacesarraySystem defined list of namespaces excluded from Deployment Safeguards. These are determined by the underlying provider (such as AKS), and cannot be changed. Deployments in these namespaces will not be checked. Required.
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_uriFetch a deployment safeguard by name.
createinsertresource_uriCreates or updates a deploymentSafeguard.
deletedeleteresource_uriDelete DeploymentSafeguards.
list_rawexecresource_uriList DeploymentSafeguards by parent resource.

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_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Fetch a deployment safeguard by name.

SELECT
id,
name,
eTag,
excludedNamespaces,
level,
podSecurityStandardsLevel,
provisioningState,
systemData,
systemExcludedNamespaces,
type
FROM azure.container_service_safeguards.deployment_safeguards
WHERE resource_uri = '{{ resource_uri }}' -- required
;

INSERT examples

Creates or updates a deploymentSafeguard.

INSERT INTO azure.container_service_safeguards.deployment_safeguards (
properties,
resource_uri
)
SELECT
'{{ properties }}',
'{{ resource_uri }}'
RETURNING
id,
name,
eTag,
properties,
systemData,
type
;

DELETE examples

Delete DeploymentSafeguards.

DELETE FROM azure.container_service_safeguards.deployment_safeguards
WHERE resource_uri = '{{ resource_uri }}' --required
;

Lifecycle Methods

List DeploymentSafeguards by parent resource.

EXEC azure.container_service_safeguards.deployment_safeguards.list_raw 
@resource_uri='{{ resource_uri }}' --required
;