This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi
azure-native.storage.getBlobContainerImmutabilityPolicy
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi
Gets the existing immutability policy along with the corresponding ETag in response headers and body. Azure REST API version: 2022-09-01.
Other available API versions: 2019-04-01, 2023-01-01, 2023-04-01, 2023-05-01.
Using getBlobContainerImmutabilityPolicy
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 getBlobContainerImmutabilityPolicy(args: GetBlobContainerImmutabilityPolicyArgs, opts?: InvokeOptions): Promise<GetBlobContainerImmutabilityPolicyResult>
function getBlobContainerImmutabilityPolicyOutput(args: GetBlobContainerImmutabilityPolicyOutputArgs, opts?: InvokeOptions): Output<GetBlobContainerImmutabilityPolicyResult>
def get_blob_container_immutability_policy(account_name: Optional[str] = None,
container_name: Optional[str] = None,
immutability_policy_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBlobContainerImmutabilityPolicyResult
def get_blob_container_immutability_policy_output(account_name: Optional[pulumi.Input[str]] = None,
container_name: Optional[pulumi.Input[str]] = None,
immutability_policy_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBlobContainerImmutabilityPolicyResult]
func LookupBlobContainerImmutabilityPolicy(ctx *Context, args *LookupBlobContainerImmutabilityPolicyArgs, opts ...InvokeOption) (*LookupBlobContainerImmutabilityPolicyResult, error)
func LookupBlobContainerImmutabilityPolicyOutput(ctx *Context, args *LookupBlobContainerImmutabilityPolicyOutputArgs, opts ...InvokeOption) LookupBlobContainerImmutabilityPolicyResultOutput
> Note: This function is named LookupBlobContainerImmutabilityPolicy
in the Go SDK.
public static class GetBlobContainerImmutabilityPolicy
{
public static Task<GetBlobContainerImmutabilityPolicyResult> InvokeAsync(GetBlobContainerImmutabilityPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetBlobContainerImmutabilityPolicyResult> Invoke(GetBlobContainerImmutabilityPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBlobContainerImmutabilityPolicyResult> getBlobContainerImmutabilityPolicy(GetBlobContainerImmutabilityPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:storage:getBlobContainerImmutabilityPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Container
Name string - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- Immutability
Policy stringName - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- Container
Name string - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- Immutability
Policy stringName - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- container
Name String - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- immutability
Policy StringName - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- container
Name string - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- immutability
Policy stringName - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- account_
name str - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- container_
name str - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- immutability_
policy_ strname - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- resource_
group_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- container
Name String - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- immutability
Policy StringName - The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
getBlobContainerImmutabilityPolicy Result
The following output properties are available:
- Etag string
- Resource Etag.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- State string
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Allow
Protected boolAppend Writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- Allow
Protected boolAppend Writes All - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- Immutability
Period intSince Creation In Days - The immutability period for the blobs in the container since the policy creation, in days.
- Etag string
- Resource Etag.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Name string
- The name of the resource
- State string
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Allow
Protected boolAppend Writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- Allow
Protected boolAppend Writes All - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- Immutability
Period intSince Creation In Days - The immutability period for the blobs in the container since the policy creation, in days.
- etag String
- Resource Etag.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- state String
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allow
Protected BooleanAppend Writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- allow
Protected BooleanAppend Writes All - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- immutability
Period IntegerSince Creation In Days - The immutability period for the blobs in the container since the policy creation, in days.
- etag string
- Resource Etag.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name string
- The name of the resource
- state string
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allow
Protected booleanAppend Writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- allow
Protected booleanAppend Writes All - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- immutability
Period numberSince Creation In Days - The immutability period for the blobs in the container since the policy creation, in days.
- etag str
- Resource Etag.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name str
- The name of the resource
- state str
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allow_
protected_ boolappend_ writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- allow_
protected_ boolappend_ writes_ all - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- immutability_
period_ intsince_ creation_ in_ days - The immutability period for the blobs in the container since the policy creation, in days.
- etag String
- Resource Etag.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name String
- The name of the resource
- state String
- The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allow
Protected BooleanAppend Writes - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- allow
Protected BooleanAppend Writes All - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
- immutability
Period NumberSince Creation In Days - The immutability period for the blobs in the container since the policy creation, in days.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.69.0 published on Monday, Oct 28, 2024 by Pulumi