azure-native.containerservice.getDeploymentSafeguard
Explore with Pulumi AI
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:
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- resource_
uri str - The fully qualified Azure Resource manager identifier of the resource.
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
getDeploymentSafeguard Result
The following output properties are available:
- Azure
Api stringVersion - 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
- Provisioning
State string - Provisioning State
- System
Data Pulumi.Azure Native. Container Service. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- System
Excluded List<string>Namespaces - 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"
- Excluded
Namespaces List<string> - User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
- Azure
Api stringVersion - 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
- Provisioning
State string - Provisioning State
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- System
Excluded []stringNamespaces - 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"
- Excluded
Namespaces []string - User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
- azure
Api StringVersion - The Azure API version of the resource.
- e
Tag 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
- provisioning
State String - Provisioning State
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- system
Excluded List<String>Namespaces - 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"
- excluded
Namespaces List<String> - User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
- azure
Api stringVersion - The Azure API version of the resource.
- e
Tag 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
- provisioning
State string - Provisioning State
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- system
Excluded string[]Namespaces - 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"
- excluded
Namespaces string[] - User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
- azure_
api_ strversion - 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 SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- system_
excluded_ Sequence[str]namespaces - 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
- azure
Api StringVersion - The Azure API version of the resource.
- e
Tag 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
- provisioning
State String - Provisioning State
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- system
Excluded List<String>Namespaces - 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"
- excluded
Namespaces 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0