ManagementPolicy is the Schema for the ManagementPolicys API. Manages an Azure Storage Account Management Policy.
Type
CRD
Group
storage.azure.upbound.io
Version
v1beta1
apiVersion: storage.azure.upbound.io/v1beta1
kind: ManagementPolicy
ManagementPolicySpec defines the desired state of ManagementPolicy
No description provided.
A rule block as documented below.
An actions block as documented below.
A base_blob block as documented below.
A snapshot block as documented below.
A version block as documented below.
A filters block as documented below.
An array of predefined values. Valid options are blockBlob and appendBlob.
An array of strings for prefixes to be matched.
Reference to a Account in storage to populate storageAccountId.
Policies for referencing.
Selector for a Account in storage to populate storageAccountId.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
ManagementPolicyStatus defines the observed state of ManagementPolicy.
No description provided.
A rule block as documented below.
An actions block as documented below.
A base_blob block as documented below.
A snapshot block as documented below.
A version block as documented below.
A filters block as documented below.
An array of predefined values. Valid options are blockBlob and appendBlob.
An array of strings for prefixes to be matched.
Conditions of the resource.
example
apiVersion: storage.azure.upbound.io/v1beta1
kind: ManagementPolicy
metadata:
annotations:
meta.upbound.io/example-id: storage/v1beta1/managementpolicy
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
rule:
- actions:
- baseBlob:
- deleteAfterDaysSinceModificationGreaterThan: 100
tierToArchiveAfterDaysSinceModificationGreaterThan: 50
tierToCoolAfterDaysSinceModificationGreaterThan: 10
snapshot:
- deleteAfterDaysSinceCreationGreaterThan: 30
enabled: true
filters:
- blobTypes:
- blockBlob
prefixMatch:
- container1/prefix1
name: rule1
- actions:
- baseBlob:
- deleteAfterDaysSinceModificationGreaterThan: 101
tierToArchiveAfterDaysSinceModificationGreaterThan: 51
tierToCoolAfterDaysSinceModificationGreaterThan: 11
snapshot:
- changeTierToArchiveAfterDaysSinceCreation: 90
changeTierToCoolAfterDaysSinceCreation: 23
deleteAfterDaysSinceCreationGreaterThan: 31
version:
- changeTierToArchiveAfterDaysSinceCreation: 9
changeTierToCoolAfterDaysSinceCreation: 90
deleteAfterDaysSinceCreation: 3
enabled: false
filters:
- blobTypes:
- blockBlob
prefixMatch:
- container2/prefix1
- container2/prefix2
name: rule2
storageAccountIdSelector:
matchLabels:
testing.upbound.io/example-name: example
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.