1. Packages
  2. Azure Native
  3. API Docs
  4. containerservice
  5. getDeploymentSafeguard
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

azure-native.containerservice.getDeploymentSafeguard

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

    Fetch a deployment safeguard by name

    Uses Azure REST API version 2025-04-02-preview.

    Other available API versions: 2025-04-01, 2025-05-02-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerservice [ApiVersion]. See the version guide for details.

    Using getDeploymentSafeguard

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDeploymentSafeguard(args: GetDeploymentSafeguardArgs, opts?: InvokeOptions): Promise<GetDeploymentSafeguardResult>
    function getDeploymentSafeguardOutput(args: GetDeploymentSafeguardOutputArgs, opts?: InvokeOptions): Output<GetDeploymentSafeguardResult>
    def get_deployment_safeguard(resource_uri: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDeploymentSafeguardResult
    def get_deployment_safeguard_output(resource_uri: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentSafeguardResult]
    func LookupDeploymentSafeguard(ctx *Context, args *LookupDeploymentSafeguardArgs, opts ...InvokeOption) (*LookupDeploymentSafeguardResult, error)
    func LookupDeploymentSafeguardOutput(ctx *Context, args *LookupDeploymentSafeguardOutputArgs, opts ...InvokeOption) LookupDeploymentSafeguardResultOutput

    > Note: This function is named LookupDeploymentSafeguard in the Go SDK.

    public static class GetDeploymentSafeguard 
    {
        public static Task<GetDeploymentSafeguardResult> InvokeAsync(GetDeploymentSafeguardArgs args, InvokeOptions? opts = null)
        public static Output<GetDeploymentSafeguardResult> Invoke(GetDeploymentSafeguardInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeploymentSafeguardResult> getDeploymentSafeguard(GetDeploymentSafeguardArgs args, InvokeOptions options)
    public static Output<GetDeploymentSafeguardResult> getDeploymentSafeguard(GetDeploymentSafeguardArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:containerservice:getDeploymentSafeguard
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    ResourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    resourceUri String
    The fully qualified Azure Resource manager identifier of the resource.
    resourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    resource_uri str
    The fully qualified Azure Resource manager identifier of the resource.
    resourceUri String
    The fully qualified Azure Resource manager identifier of the resource.

    getDeploymentSafeguard Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    If 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.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Level string
    The deployment safeguards level. Possible values are Warn and Enforce
    Name string
    The name of the resource
    ProvisioningState string
    Provisioning State
    SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    SystemExcludedNamespaces List<string>
    System 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
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ExcludedNamespaces List<string>
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    If 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.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Level string
    The deployment safeguards level. Possible values are Warn and Enforce
    Name string
    The name of the resource
    ProvisioningState string
    Provisioning State
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    SystemExcludedNamespaces []string
    System 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
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ExcludedNamespaces []string
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    If 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.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    level String
    The deployment safeguards level. Possible values are Warn and Enforce
    name String
    The name of the resource
    provisioningState String
    Provisioning State
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    systemExcludedNamespaces List<String>
    System 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
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    excludedNamespaces List<String>
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
    azureApiVersion string
    The Azure API version of the resource.
    eTag string
    If 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.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    level string
    The deployment safeguards level. Possible values are Warn and Enforce
    name string
    The name of the resource
    provisioningState string
    Provisioning State
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    systemExcludedNamespaces string[]
    System 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
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    excludedNamespaces string[]
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
    azure_api_version str
    The Azure API version of the resource.
    e_tag str
    If 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.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    level str
    The deployment safeguards level. Possible values are Warn and Enforce
    name str
    The name of the resource
    provisioning_state str
    Provisioning State
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    system_excluded_namespaces Sequence[str]
    System 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
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    excluded_namespaces Sequence[str]
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    If 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.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    level String
    The deployment safeguards level. Possible values are Warn and Enforce
    name String
    The name of the resource
    provisioningState String
    Provisioning State
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    systemExcludedNamespaces List<String>
    System 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
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    excludedNamespaces List<String>
    User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards

    Supporting Types

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi