powerscale.FilepoolPolicy
Explore with Pulumi AI
This resource is used to manage the File Pool Policy entity of PowerScale Array. We can Create, Update and Delete the File Pool Policy using this resource. We can also import an existing File Pool Policy from PowerScale array. PowerScale File Pool Policy can identify logical groups of files and specify storage operations for these files.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.FilepoolPolicy;
import com.pulumi.powerscale.FilepoolPolicyArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyActionArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyActionDataStoragePolicyActionArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyActionSnapshotStoragePolicyActionArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyActionCloudpoolPolicyActionArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyActionCloudpoolPolicyActionCacheArgs;
import com.pulumi.powerscale.inputs.FilepoolPolicyFileMatchingPatternArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// PowerScale File Pool Policy can identify logical groups of files and specify storage operations for these files.
var exampleFilepoolPolicy = new FilepoolPolicy("exampleFilepoolPolicy", FilepoolPolicyArgs.builder()
.actions(
FilepoolPolicyActionArgs.builder()
.actionType("set_data_access_pattern")
.dataAccessPatternAction("concurrency")
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("apply_data_storage_policy")
.dataStoragePolicyAction(FilepoolPolicyActionDataStoragePolicyActionArgs.builder()
.ssdStrategy("metadata")
.storagepool("anywhere")
.build())
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("apply_snapshot_storage_policy")
.snapshotStoragePolicyAction(FilepoolPolicyActionSnapshotStoragePolicyActionArgs.builder()
.ssdStrategy("metadata")
.storagepool("anywhere")
.build())
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("set_requested_protection")
.requestedProtectionAction("default")
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("enable_coalescer")
.enableCoalescerAction(true)
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("enable_packing")
.enablePackingAction(true)
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("set_cloudpool_policy")
.cloudpoolPolicyAction(FilepoolPolicyActionCloudpoolPolicyActionArgs.builder()
.archiveSnapshotFiles(true)
.cache(FilepoolPolicyActionCloudpoolPolicyActionCacheArgs.builder()
.expiration(86400)
.readAhead("partial")
.type("cached")
.build())
.compression(true)
.dataRetention(604800)
.encryption(true)
.fullBackupRetention(145152000)
.incrementalBackupRetention(145152000)
.pool("cloudPool_policy")
.writebackFrequency(32400)
.build())
.build())
.applyOrder(1)
.description("filePoolPolicySample description")
.fileMatchingPattern(FilepoolPolicyFileMatchingPatternArgs.builder()
.or_criteria(
%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.isDefaultPolicy(false)
.build());
// PowerScale Default File Pool Policy applies to all files not selected by higher-priority and can specify storage operations for these files.
var exampleDefaultPolicy = new FilepoolPolicy("exampleDefaultPolicy", FilepoolPolicyArgs.builder()
.actions(
FilepoolPolicyActionArgs.builder()
.actionType("set_data_access_pattern")
.dataAccessPatternAction("concurrency")
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("apply_data_storage_policy")
.dataStoragePolicyAction(FilepoolPolicyActionDataStoragePolicyActionArgs.builder()
.ssdStrategy("metadata")
.storagepool("anywhere")
.build())
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("apply_snapshot_storage_policy")
.snapshotStoragePolicyAction(FilepoolPolicyActionSnapshotStoragePolicyActionArgs.builder()
.ssdStrategy("metadata")
.storagepool("anywhere")
.build())
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("set_requested_protection")
.requestedProtectionAction("default")
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("enable_coalescer")
.enableCoalescerAction(true)
.build(),
FilepoolPolicyActionArgs.builder()
.actionType("enable_packing")
.enablePackingAction(true)
.build())
.isDefaultPolicy(true)
.build());
}
}
resources:
# PowerScale File Pool Policy can identify logical groups of files and specify storage operations for these files.
exampleFilepoolPolicy:
type: powerscale:FilepoolPolicy
properties:
# A list of actions to be taken for matching files. (Update Supported)
actions:
- actionType: set_data_access_pattern
dataAccessPatternAction: concurrency
- actionType: apply_data_storage_policy
dataStoragePolicyAction:
ssdStrategy: metadata
storagepool: anywhere
- actionType: apply_snapshot_storage_policy
snapshotStoragePolicyAction:
ssdStrategy: metadata
storagepool: anywhere
- actionType: set_requested_protection
requestedProtectionAction: default
- actionType: enable_coalescer
enableCoalescerAction: true
- actionType: enable_packing
enablePackingAction: true
- actionType: set_cloudpool_policy
cloudpoolPolicyAction:
archiveSnapshotFiles: true
cache:
expiration: 86400
readAhead: partial
type: cached
compression: true
dataRetention: 604800
encryption: true
fullBackupRetention: 1.45152e+08
incrementalBackupRetention: 1.45152e+08
pool: cloudPool_policy
writebackFrequency: 32400
# The order in which this policy should be applied (relative to other policies). (Update Supported)
applyOrder: 1
# A description for this policy. (Update Supported)
description: filePoolPolicySample description
# Optional params for creating and updating.
# // Specifies the file matching rules for determining which files will be managed by this policy. (Update Supported)
fileMatchingPattern:
or_criteria:
- andCriteria:
- operator: '>'
type: size
units: B
value: '1073741824'
- operator: '>'
type: birth_time
useRelativeTime: true
value: '20'
- operator: '>'
type: metadata_changed_time
useRelativeTime: false
value: '1704742200'
- operator: <
type: accessed_time
useRelativeTime: true
value: '20'
- andCriteria:
- operator: <
type: changed_time
useRelativeTime: false
value: '1704820500'
- attributeExists: false
field: test
type: custom_attribute
value: ""
- operator: '!='
type: file_type
value: directory
- beginsWith: false
caseSensitive: true
operator: '!='
type: path
value: test
- caseSensitive: true
operator: '!='
type: name
value: test
# Optional is_default_policy for creating. Specifies if the policy is default policy.
# // Default policy applies to all files not selected by higher-priority policies.
isDefaultPolicy: false
# PowerScale Default File Pool Policy applies to all files not selected by higher-priority and can specify storage operations for these files.
exampleDefaultPolicy:
type: powerscale:FilepoolPolicy
properties:
# Optional actions when creating and updating.
# // A list of actions to be taken for matching files. (Update Supported)
actions:
- actionType: set_data_access_pattern
dataAccessPatternAction: concurrency
- actionType: apply_data_storage_policy
dataStoragePolicyAction:
ssdStrategy: metadata
storagepool: anywhere
- actionType: apply_snapshot_storage_policy
snapshotStoragePolicyAction:
ssdStrategy: metadata
storagepool: anywhere
- actionType: set_requested_protection
requestedProtectionAction: default
- actionType: enable_coalescer
enableCoalescerAction: true
- actionType: enable_packing
enablePackingAction: true
# Optional is_default_policy for creating. Specifies if the policy is default policy.
# // Default policy applies to all files not selected by higher-priority policies.
isDefaultPolicy: true
Create FilepoolPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FilepoolPolicy(name: string, args?: FilepoolPolicyArgs, opts?: CustomResourceOptions);
@overload
def FilepoolPolicy(resource_name: str,
args: Optional[FilepoolPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FilepoolPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[FilepoolPolicyActionArgs]] = None,
apply_order: Optional[float] = None,
description: Optional[str] = None,
file_matching_pattern: Optional[FilepoolPolicyFileMatchingPatternArgs] = None,
is_default_policy: Optional[bool] = None,
name: Optional[str] = None)
func NewFilepoolPolicy(ctx *Context, name string, args *FilepoolPolicyArgs, opts ...ResourceOption) (*FilepoolPolicy, error)
public FilepoolPolicy(string name, FilepoolPolicyArgs? args = null, CustomResourceOptions? opts = null)
public FilepoolPolicy(String name, FilepoolPolicyArgs args)
public FilepoolPolicy(String name, FilepoolPolicyArgs args, CustomResourceOptions options)
type: powerscale:FilepoolPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FilepoolPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FilepoolPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FilepoolPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FilepoolPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FilepoolPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var filepoolPolicyResource = new Powerscale.FilepoolPolicy("filepoolPolicyResource", new()
{
Actions = new[]
{
new Powerscale.Inputs.FilepoolPolicyActionArgs
{
ActionType = "string",
CloudpoolPolicyAction = new Powerscale.Inputs.FilepoolPolicyActionCloudpoolPolicyActionArgs
{
Pool = "string",
ArchiveSnapshotFiles = false,
Cache = new Powerscale.Inputs.FilepoolPolicyActionCloudpoolPolicyActionCacheArgs
{
Expiration = 0,
ReadAhead = "string",
Type = "string",
},
Compression = false,
DataRetention = 0,
Encryption = false,
FullBackupRetention = 0,
IncrementalBackupRetention = 0,
WritebackFrequency = 0,
},
DataAccessPatternAction = "string",
DataStoragePolicyAction = new Powerscale.Inputs.FilepoolPolicyActionDataStoragePolicyActionArgs
{
SsdStrategy = "string",
Storagepool = "string",
},
EnableCoalescerAction = false,
EnablePackingAction = false,
RequestedProtectionAction = "string",
SnapshotStoragePolicyAction = new Powerscale.Inputs.FilepoolPolicyActionSnapshotStoragePolicyActionArgs
{
SsdStrategy = "string",
Storagepool = "string",
},
},
},
ApplyOrder = 0,
Description = "string",
FileMatchingPattern = new Powerscale.Inputs.FilepoolPolicyFileMatchingPatternArgs
{
OrCriterias = new[]
{
new Powerscale.Inputs.FilepoolPolicyFileMatchingPatternOrCriteriaArgs
{
AndCriterias = new[]
{
new Powerscale.Inputs.FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteriaArgs
{
Type = "string",
AttributeExists = false,
BeginsWith = false,
CaseSensitive = false,
Field = "string",
Operator = "string",
Units = "string",
UseRelativeTime = false,
Value = "string",
},
},
},
},
},
IsDefaultPolicy = false,
Name = "string",
});
example, err := powerscale.NewFilepoolPolicy(ctx, "filepoolPolicyResource", &powerscale.FilepoolPolicyArgs{
Actions: powerscale.FilepoolPolicyActionArray{
&powerscale.FilepoolPolicyActionArgs{
ActionType: pulumi.String("string"),
CloudpoolPolicyAction: &powerscale.FilepoolPolicyActionCloudpoolPolicyActionArgs{
Pool: pulumi.String("string"),
ArchiveSnapshotFiles: pulumi.Bool(false),
Cache: &powerscale.FilepoolPolicyActionCloudpoolPolicyActionCacheArgs{
Expiration: pulumi.Float64(0),
ReadAhead: pulumi.String("string"),
Type: pulumi.String("string"),
},
Compression: pulumi.Bool(false),
DataRetention: pulumi.Float64(0),
Encryption: pulumi.Bool(false),
FullBackupRetention: pulumi.Float64(0),
IncrementalBackupRetention: pulumi.Float64(0),
WritebackFrequency: pulumi.Float64(0),
},
DataAccessPatternAction: pulumi.String("string"),
DataStoragePolicyAction: &powerscale.FilepoolPolicyActionDataStoragePolicyActionArgs{
SsdStrategy: pulumi.String("string"),
Storagepool: pulumi.String("string"),
},
EnableCoalescerAction: pulumi.Bool(false),
EnablePackingAction: pulumi.Bool(false),
RequestedProtectionAction: pulumi.String("string"),
SnapshotStoragePolicyAction: &powerscale.FilepoolPolicyActionSnapshotStoragePolicyActionArgs{
SsdStrategy: pulumi.String("string"),
Storagepool: pulumi.String("string"),
},
},
},
ApplyOrder: pulumi.Float64(0),
Description: pulumi.String("string"),
FileMatchingPattern: &powerscale.FilepoolPolicyFileMatchingPatternArgs{
OrCriterias: powerscale.FilepoolPolicyFileMatchingPatternOrCriteriaArray{
&powerscale.FilepoolPolicyFileMatchingPatternOrCriteriaArgs{
AndCriterias: powerscale.FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteriaArray{
&powerscale.FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteriaArgs{
Type: pulumi.String("string"),
AttributeExists: pulumi.Bool(false),
BeginsWith: pulumi.Bool(false),
CaseSensitive: pulumi.Bool(false),
Field: pulumi.String("string"),
Operator: pulumi.String("string"),
Units: pulumi.String("string"),
UseRelativeTime: pulumi.Bool(false),
Value: pulumi.String("string"),
},
},
},
},
},
IsDefaultPolicy: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var filepoolPolicyResource = new FilepoolPolicy("filepoolPolicyResource", FilepoolPolicyArgs.builder()
.actions(FilepoolPolicyActionArgs.builder()
.actionType("string")
.cloudpoolPolicyAction(FilepoolPolicyActionCloudpoolPolicyActionArgs.builder()
.pool("string")
.archiveSnapshotFiles(false)
.cache(FilepoolPolicyActionCloudpoolPolicyActionCacheArgs.builder()
.expiration(0)
.readAhead("string")
.type("string")
.build())
.compression(false)
.dataRetention(0)
.encryption(false)
.fullBackupRetention(0)
.incrementalBackupRetention(0)
.writebackFrequency(0)
.build())
.dataAccessPatternAction("string")
.dataStoragePolicyAction(FilepoolPolicyActionDataStoragePolicyActionArgs.builder()
.ssdStrategy("string")
.storagepool("string")
.build())
.enableCoalescerAction(false)
.enablePackingAction(false)
.requestedProtectionAction("string")
.snapshotStoragePolicyAction(FilepoolPolicyActionSnapshotStoragePolicyActionArgs.builder()
.ssdStrategy("string")
.storagepool("string")
.build())
.build())
.applyOrder(0)
.description("string")
.fileMatchingPattern(FilepoolPolicyFileMatchingPatternArgs.builder()
.orCriterias(FilepoolPolicyFileMatchingPatternOrCriteriaArgs.builder()
.andCriterias(FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteriaArgs.builder()
.type("string")
.attributeExists(false)
.beginsWith(false)
.caseSensitive(false)
.field("string")
.operator("string")
.units("string")
.useRelativeTime(false)
.value("string")
.build())
.build())
.build())
.isDefaultPolicy(false)
.name("string")
.build());
filepool_policy_resource = powerscale.FilepoolPolicy("filepoolPolicyResource",
actions=[{
"action_type": "string",
"cloudpool_policy_action": {
"pool": "string",
"archive_snapshot_files": False,
"cache": {
"expiration": 0,
"read_ahead": "string",
"type": "string",
},
"compression": False,
"data_retention": 0,
"encryption": False,
"full_backup_retention": 0,
"incremental_backup_retention": 0,
"writeback_frequency": 0,
},
"data_access_pattern_action": "string",
"data_storage_policy_action": {
"ssd_strategy": "string",
"storagepool": "string",
},
"enable_coalescer_action": False,
"enable_packing_action": False,
"requested_protection_action": "string",
"snapshot_storage_policy_action": {
"ssd_strategy": "string",
"storagepool": "string",
},
}],
apply_order=0,
description="string",
file_matching_pattern={
"or_criterias": [{
"and_criterias": [{
"type": "string",
"attribute_exists": False,
"begins_with": False,
"case_sensitive": False,
"field": "string",
"operator": "string",
"units": "string",
"use_relative_time": False,
"value": "string",
}],
}],
},
is_default_policy=False,
name="string")
const filepoolPolicyResource = new powerscale.FilepoolPolicy("filepoolPolicyResource", {
actions: [{
actionType: "string",
cloudpoolPolicyAction: {
pool: "string",
archiveSnapshotFiles: false,
cache: {
expiration: 0,
readAhead: "string",
type: "string",
},
compression: false,
dataRetention: 0,
encryption: false,
fullBackupRetention: 0,
incrementalBackupRetention: 0,
writebackFrequency: 0,
},
dataAccessPatternAction: "string",
dataStoragePolicyAction: {
ssdStrategy: "string",
storagepool: "string",
},
enableCoalescerAction: false,
enablePackingAction: false,
requestedProtectionAction: "string",
snapshotStoragePolicyAction: {
ssdStrategy: "string",
storagepool: "string",
},
}],
applyOrder: 0,
description: "string",
fileMatchingPattern: {
orCriterias: [{
andCriterias: [{
type: "string",
attributeExists: false,
beginsWith: false,
caseSensitive: false,
field: "string",
operator: "string",
units: "string",
useRelativeTime: false,
value: "string",
}],
}],
},
isDefaultPolicy: false,
name: "string",
});
type: powerscale:FilepoolPolicy
properties:
actions:
- actionType: string
cloudpoolPolicyAction:
archiveSnapshotFiles: false
cache:
expiration: 0
readAhead: string
type: string
compression: false
dataRetention: 0
encryption: false
fullBackupRetention: 0
incrementalBackupRetention: 0
pool: string
writebackFrequency: 0
dataAccessPatternAction: string
dataStoragePolicyAction:
ssdStrategy: string
storagepool: string
enableCoalescerAction: false
enablePackingAction: false
requestedProtectionAction: string
snapshotStoragePolicyAction:
ssdStrategy: string
storagepool: string
applyOrder: 0
description: string
fileMatchingPattern:
orCriterias:
- andCriterias:
- attributeExists: false
beginsWith: false
caseSensitive: false
field: string
operator: string
type: string
units: string
useRelativeTime: false
value: string
isDefaultPolicy: false
name: string
FilepoolPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FilepoolPolicy resource accepts the following input properties:
- Actions
List<Filepool
Policy Action> - A list of actions to be taken for matching files.
- Apply
Order double - The order in which this policy should be applied (relative to other policies).
- Description string
- A description for this File Pool Policy.
- File
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- Is
Default boolPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- Name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- Actions
[]Filepool
Policy Action Args - A list of actions to be taken for matching files.
- Apply
Order float64 - The order in which this policy should be applied (relative to other policies).
- Description string
- A description for this File Pool Policy.
- File
Matching FilepoolPattern Policy File Matching Pattern Args - Specifies the file matching rules for determining which files will be managed by this policy.
- Is
Default boolPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- Name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- actions
List<Filepool
Policy Action> - A list of actions to be taken for matching files.
- apply
Order Double - The order in which this policy should be applied (relative to other policies).
- description String
- A description for this File Pool Policy.
- file
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default BooleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name String
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- actions
Filepool
Policy Action[] - A list of actions to be taken for matching files.
- apply
Order number - The order in which this policy should be applied (relative to other policies).
- description string
- A description for this File Pool Policy.
- file
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default booleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- actions
Sequence[Filepool
Policy Action Args] - A list of actions to be taken for matching files.
- apply_
order float - The order in which this policy should be applied (relative to other policies).
- description str
- A description for this File Pool Policy.
- file_
matching_ Filepoolpattern Policy File Matching Pattern Args - Specifies the file matching rules for determining which files will be managed by this policy.
- is_
default_ boolpolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name str
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- actions List<Property Map>
- A list of actions to be taken for matching files.
- apply
Order Number - The order in which this policy should be applied (relative to other policies).
- description String
- A description for this File Pool Policy.
- file
Matching Property MapPattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default BooleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name String
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
Outputs
All input properties are implicitly available as output properties. Additionally, the FilepoolPolicy resource produces the following output properties:
- Birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- State
Details string - Gives further information to describe the state of this policy.
- Birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- State
Details string - Gives further information to describe the state of this policy.
- birth
Cluster StringId - The guid assigned to the cluster on which the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details String - Gives further information to describe the state of this policy.
- birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details string - Gives further information to describe the state of this policy.
- birth_
cluster_ strid - The guid assigned to the cluster on which the policy was created.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state_
details str - Gives further information to describe the state of this policy.
- birth
Cluster StringId - The guid assigned to the cluster on which the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details String - Gives further information to describe the state of this policy.
Look up Existing FilepoolPolicy Resource
Get an existing FilepoolPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FilepoolPolicyState, opts?: CustomResourceOptions): FilepoolPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[FilepoolPolicyActionArgs]] = None,
apply_order: Optional[float] = None,
birth_cluster_id: Optional[str] = None,
description: Optional[str] = None,
file_matching_pattern: Optional[FilepoolPolicyFileMatchingPatternArgs] = None,
is_default_policy: Optional[bool] = None,
name: Optional[str] = None,
state: Optional[str] = None,
state_details: Optional[str] = None) -> FilepoolPolicy
func GetFilepoolPolicy(ctx *Context, name string, id IDInput, state *FilepoolPolicyState, opts ...ResourceOption) (*FilepoolPolicy, error)
public static FilepoolPolicy Get(string name, Input<string> id, FilepoolPolicyState? state, CustomResourceOptions? opts = null)
public static FilepoolPolicy get(String name, Output<String> id, FilepoolPolicyState state, CustomResourceOptions options)
resources: _: type: powerscale:FilepoolPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions
List<Filepool
Policy Action> - A list of actions to be taken for matching files.
- Apply
Order double - The order in which this policy should be applied (relative to other policies).
- Birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- Description string
- A description for this File Pool Policy.
- File
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- Is
Default boolPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- Name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- State string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- State
Details string - Gives further information to describe the state of this policy.
- Actions
[]Filepool
Policy Action Args - A list of actions to be taken for matching files.
- Apply
Order float64 - The order in which this policy should be applied (relative to other policies).
- Birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- Description string
- A description for this File Pool Policy.
- File
Matching FilepoolPattern Policy File Matching Pattern Args - Specifies the file matching rules for determining which files will be managed by this policy.
- Is
Default boolPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- Name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- State string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- State
Details string - Gives further information to describe the state of this policy.
- actions
List<Filepool
Policy Action> - A list of actions to be taken for matching files.
- apply
Order Double - The order in which this policy should be applied (relative to other policies).
- birth
Cluster StringId - The guid assigned to the cluster on which the policy was created.
- description String
- A description for this File Pool Policy.
- file
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default BooleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name String
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- state String
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details String - Gives further information to describe the state of this policy.
- actions
Filepool
Policy Action[] - A list of actions to be taken for matching files.
- apply
Order number - The order in which this policy should be applied (relative to other policies).
- birth
Cluster stringId - The guid assigned to the cluster on which the policy was created.
- description string
- A description for this File Pool Policy.
- file
Matching FilepoolPattern Policy File Matching Pattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default booleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name string
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- state string
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details string - Gives further information to describe the state of this policy.
- actions
Sequence[Filepool
Policy Action Args] - A list of actions to be taken for matching files.
- apply_
order float - The order in which this policy should be applied (relative to other policies).
- birth_
cluster_ strid - The guid assigned to the cluster on which the policy was created.
- description str
- A description for this File Pool Policy.
- file_
matching_ Filepoolpattern Policy File Matching Pattern Args - Specifies the file matching rules for determining which files will be managed by this policy.
- is_
default_ boolpolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name str
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- state str
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state_
details str - Gives further information to describe the state of this policy.
- actions List<Property Map>
- A list of actions to be taken for matching files.
- apply
Order Number - The order in which this policy should be applied (relative to other policies).
- birth
Cluster StringId - The guid assigned to the cluster on which the policy was created.
- description String
- A description for this File Pool Policy.
- file
Matching Property MapPattern - Specifies the file matching rules for determining which files will be managed by this policy.
- is
Default BooleanPolicy - Specifies if the policy is default policy. Default policy applies to all files not selected by higher-priority policies. Cannot be updated.
- name String
- A unique name for this policy. If the policy is default policy, its name should be "Default policy".
- state String
- Indicates whether this policy is in a good state ("OK") or disabled ("disabled").
- state
Details String - Gives further information to describe the state of this policy.
Supporting Types
FilepoolPolicyAction, FilepoolPolicyActionArgs
- Action
Type string - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- Cloudpool
Policy FilepoolAction Policy Action Cloudpool Policy Action - Action for setcloudpoolpolicy type.
- Data
Access stringPattern Action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- Data
Storage FilepoolPolicy Action Policy Action Data Storage Policy Action - Action for applydatastorage*policy.
- Enable
Coalescer boolAction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- Enable
Packing boolAction - Action for enablepacking type. True to enable enablepacking action.
- Requested
Protection stringAction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- Snapshot
Storage FilepoolPolicy Action Policy Action Snapshot Storage Policy Action - Action for applysnapshotstorage*policy.
- Action
Type string - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- Cloudpool
Policy FilepoolAction Policy Action Cloudpool Policy Action - Action for setcloudpoolpolicy type.
- Data
Access stringPattern Action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- Data
Storage FilepoolPolicy Action Policy Action Data Storage Policy Action - Action for applydatastorage*policy.
- Enable
Coalescer boolAction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- Enable
Packing boolAction - Action for enablepacking type. True to enable enablepacking action.
- Requested
Protection stringAction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- Snapshot
Storage FilepoolPolicy Action Policy Action Snapshot Storage Policy Action - Action for applysnapshotstorage*policy.
- action
Type String - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- cloudpool
Policy FilepoolAction Policy Action Cloudpool Policy Action - Action for setcloudpoolpolicy type.
- data
Access StringPattern Action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- data
Storage FilepoolPolicy Action Policy Action Data Storage Policy Action - Action for applydatastorage*policy.
- enable
Coalescer BooleanAction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- enable
Packing BooleanAction - Action for enablepacking type. True to enable enablepacking action.
- requested
Protection StringAction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- snapshot
Storage FilepoolPolicy Action Policy Action Snapshot Storage Policy Action - Action for applysnapshotstorage*policy.
- action
Type string - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- cloudpool
Policy FilepoolAction Policy Action Cloudpool Policy Action - Action for setcloudpoolpolicy type.
- data
Access stringPattern Action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- data
Storage FilepoolPolicy Action Policy Action Data Storage Policy Action - Action for applydatastorage*policy.
- enable
Coalescer booleanAction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- enable
Packing booleanAction - Action for enablepacking type. True to enable enablepacking action.
- requested
Protection stringAction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- snapshot
Storage FilepoolPolicy Action Policy Action Snapshot Storage Policy Action - Action for applysnapshotstorage*policy.
- action_
type str - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- cloudpool_
policy_ Filepoolaction Policy Action Cloudpool Policy Action - Action for setcloudpoolpolicy type.
- data_
access_ strpattern_ action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- data_
storage_ Filepoolpolicy_ action Policy Action Data Storage Policy Action - Action for applydatastorage*policy.
- enable_
coalescer_ boolaction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- enable_
packing_ boolaction - Action for enablepacking type. True to enable enablepacking action.
- requested_
protection_ straction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- snapshot_
storage_ Filepoolpolicy_ action Policy Action Snapshot Storage Policy Action - Action for applysnapshotstorage*policy.
- action
Type String - actiontype Acceptable values: setrequestedprotection, setdataaccesspattern, enablecoalescer, applydatastoragepolicy, applysnapshotstoragepolicy, setcloudpoolpolicy, enablepacking.
- cloudpool
Policy Property MapAction - Action for setcloudpoolpolicy type.
- data
Access StringPattern Action - Action for setdataaccess_pattern type. Set data access pattern optimization. Acceptable values: random, concurrency, streaming.
- data
Storage Property MapPolicy Action - Action for applydatastorage*policy.
- enable
Coalescer BooleanAction - Action for enable_coalescer type. Set write performance optimization. True to enable SmartCache action.
- enable
Packing BooleanAction - Action for enablepacking type. True to enable enablepacking action.
- requested
Protection StringAction - Action for setrequestedprotection type. Acceptable values: default, +1n, +2d:1n, +2n, +3d:1n, +3d:1n1d, +3n, +4d:1n, +4d:2n, +4n, 2x, 3x, 4x, 5x, 6x, 7x, 8x.
- snapshot
Storage Property MapPolicy Action - Action for applysnapshotstorage*policy.
FilepoolPolicyActionCloudpoolPolicyAction, FilepoolPolicyActionCloudpoolPolicyActionArgs
- Pool string
- Specifies the cloudPool storage target.
- Archive
Snapshot boolFiles - Specifies if files with snapshots should be archived.
- Cache
Filepool
Policy Action Cloudpool Policy Action Cache - Specifies default cloudpool cache settings for new filepool policies.
- Compression bool
- Specifies if files should be compressed.
- Data
Retention double - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- Encryption bool
- Specifies if files should be encrypted.
- Full
Backup doubleRetention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- Incremental
Backup doubleRetention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- Writeback
Frequency double - The minimum amount of time to wait before updating cloud data with local changes.
- Pool string
- Specifies the cloudPool storage target.
- Archive
Snapshot boolFiles - Specifies if files with snapshots should be archived.
- Cache
Filepool
Policy Action Cloudpool Policy Action Cache - Specifies default cloudpool cache settings for new filepool policies.
- Compression bool
- Specifies if files should be compressed.
- Data
Retention float64 - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- Encryption bool
- Specifies if files should be encrypted.
- Full
Backup float64Retention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- Incremental
Backup float64Retention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- Writeback
Frequency float64 - The minimum amount of time to wait before updating cloud data with local changes.
- pool String
- Specifies the cloudPool storage target.
- archive
Snapshot BooleanFiles - Specifies if files with snapshots should be archived.
- cache
Filepool
Policy Action Cloudpool Policy Action Cache - Specifies default cloudpool cache settings for new filepool policies.
- compression Boolean
- Specifies if files should be compressed.
- data
Retention Double - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- encryption Boolean
- Specifies if files should be encrypted.
- full
Backup DoubleRetention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- incremental
Backup DoubleRetention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- writeback
Frequency Double - The minimum amount of time to wait before updating cloud data with local changes.
- pool string
- Specifies the cloudPool storage target.
- archive
Snapshot booleanFiles - Specifies if files with snapshots should be archived.
- cache
Filepool
Policy Action Cloudpool Policy Action Cache - Specifies default cloudpool cache settings for new filepool policies.
- compression boolean
- Specifies if files should be compressed.
- data
Retention number - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- encryption boolean
- Specifies if files should be encrypted.
- full
Backup numberRetention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- incremental
Backup numberRetention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- writeback
Frequency number - The minimum amount of time to wait before updating cloud data with local changes.
- pool str
- Specifies the cloudPool storage target.
- archive_
snapshot_ boolfiles - Specifies if files with snapshots should be archived.
- cache
Filepool
Policy Action Cloudpool Policy Action Cache - Specifies default cloudpool cache settings for new filepool policies.
- compression bool
- Specifies if files should be compressed.
- data_
retention float - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- encryption bool
- Specifies if files should be encrypted.
- full_
backup_ floatretention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- incremental_
backup_ floatretention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- writeback_
frequency float - The minimum amount of time to wait before updating cloud data with local changes.
- pool String
- Specifies the cloudPool storage target.
- archive
Snapshot BooleanFiles - Specifies if files with snapshots should be archived.
- cache Property Map
- Specifies default cloudpool cache settings for new filepool policies.
- compression Boolean
- Specifies if files should be compressed.
- data
Retention Number - Specifies the minimum amount of time archived data will be retained in the cloud after deletion.
- encryption Boolean
- Specifies if files should be encrypted.
- full
Backup NumberRetention - The minimum amount of time cloud files will be retained after the creation of a full NDMP backup. (Used with NDMP backups only. Not applicable to SyncIQ.)
- incremental
Backup NumberRetention - The minimum amount of time cloud files will be retained after the creation of a SyncIQ backup or an incremental NDMP backup. (Used with SyncIQ and NDMP backups.)
- writeback
Frequency Number - The minimum amount of time to wait before updating cloud data with local changes.
FilepoolPolicyActionCloudpoolPolicyActionCache, FilepoolPolicyActionCloudpoolPolicyActionCacheArgs
- Expiration double
- Specifies cache expiration.
- Read
Ahead string - Specifies cache read ahead type. Acceptable values: partial, full.
- Type string
- Specifies cache type. Acceptable values: cached, no-cache.
- Expiration float64
- Specifies cache expiration.
- Read
Ahead string - Specifies cache read ahead type. Acceptable values: partial, full.
- Type string
- Specifies cache type. Acceptable values: cached, no-cache.
- expiration Double
- Specifies cache expiration.
- read
Ahead String - Specifies cache read ahead type. Acceptable values: partial, full.
- type String
- Specifies cache type. Acceptable values: cached, no-cache.
- expiration number
- Specifies cache expiration.
- read
Ahead string - Specifies cache read ahead type. Acceptable values: partial, full.
- type string
- Specifies cache type. Acceptable values: cached, no-cache.
- expiration float
- Specifies cache expiration.
- read_
ahead str - Specifies cache read ahead type. Acceptable values: partial, full.
- type str
- Specifies cache type. Acceptable values: cached, no-cache.
- expiration Number
- Specifies cache expiration.
- read
Ahead String - Specifies cache read ahead type. Acceptable values: partial, full.
- type String
- Specifies cache type. Acceptable values: cached, no-cache.
FilepoolPolicyActionDataStoragePolicyAction, FilepoolPolicyActionDataStoragePolicyActionArgs
- Ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- Storagepool string
- Specifies the storage target.
- Ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- Storagepool string
- Specifies the storage target.
- ssd
Strategy String - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool String
- Specifies the storage target.
- ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool string
- Specifies the storage target.
- ssd_
strategy str - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool str
- Specifies the storage target.
- ssd
Strategy String - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool String
- Specifies the storage target.
FilepoolPolicyActionSnapshotStoragePolicyAction, FilepoolPolicyActionSnapshotStoragePolicyActionArgs
- Ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- Storagepool string
- Specifies the snapshot storage target.
- Ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- Storagepool string
- Specifies the snapshot storage target.
- ssd
Strategy String - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool String
- Specifies the snapshot storage target.
- ssd
Strategy string - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool string
- Specifies the snapshot storage target.
- ssd_
strategy str - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool str
- Specifies the snapshot storage target.
- ssd
Strategy String - Specifies the SSD strategy. Acceptable values: metadata, metadata-write, data, avoid.
- storagepool String
- Specifies the snapshot storage target.
FilepoolPolicyFileMatchingPattern, FilepoolPolicyFileMatchingPatternArgs
- Or
Criterias List<FilepoolPolicy File Matching Pattern Or Criteria> - List of or*criteria file matching rules for this policy.
- Or
Criterias []FilepoolPolicy File Matching Pattern Or Criteria - List of or*criteria file matching rules for this policy.
- or
Criterias List<FilepoolPolicy File Matching Pattern Or Criteria> - List of or*criteria file matching rules for this policy.
- or
Criterias FilepoolPolicy File Matching Pattern Or Criteria[] - List of or*criteria file matching rules for this policy.
- or_
criterias Sequence[FilepoolPolicy File Matching Pattern Or Criteria] - List of or*criteria file matching rules for this policy.
- or
Criterias List<Property Map> - List of or*criteria file matching rules for this policy.
FilepoolPolicyFileMatchingPatternOrCriteria, FilepoolPolicyFileMatchingPatternOrCriteriaArgs
- And
Criterias List<FilepoolPolicy File Matching Pattern Or Criteria And Criteria> - List of and*criteria file matching rules for this policy.
- And
Criterias []FilepoolPolicy File Matching Pattern Or Criteria And Criteria - List of and*criteria file matching rules for this policy.
- and
Criterias List<FilepoolPolicy File Matching Pattern Or Criteria And Criteria> - List of and*criteria file matching rules for this policy.
- and
Criterias FilepoolPolicy File Matching Pattern Or Criteria And Criteria[] - List of and*criteria file matching rules for this policy.
- and_
criterias Sequence[FilepoolPolicy File Matching Pattern Or Criteria And Criteria] - List of and*criteria file matching rules for this policy.
- and
Criterias List<Property Map> - List of and*criteria file matching rules for this policy.
FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteria, FilepoolPolicyFileMatchingPatternOrCriteriaAndCriteriaArgs
- Type string
- The file attribute to be compared to a given value.
- Attribute
Exists bool - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- Begins
With bool - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- Case
Sensitive bool - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- Field string
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- Operator string
- The comparison operator to use while comparing an attribute with its value.
- Units string
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- Use
Relative boolTime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- Value string
- The value to be compared against a file attribute.
- Type string
- The file attribute to be compared to a given value.
- Attribute
Exists bool - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- Begins
With bool - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- Case
Sensitive bool - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- Field string
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- Operator string
- The comparison operator to use while comparing an attribute with its value.
- Units string
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- Use
Relative boolTime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- Value string
- The value to be compared against a file attribute.
- type String
- The file attribute to be compared to a given value.
- attribute
Exists Boolean - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- begins
With Boolean - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- case
Sensitive Boolean - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- field String
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- operator String
- The comparison operator to use while comparing an attribute with its value.
- units String
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- use
Relative BooleanTime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- value String
- The value to be compared against a file attribute.
- type string
- The file attribute to be compared to a given value.
- attribute
Exists boolean - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- begins
With boolean - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- case
Sensitive boolean - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- field string
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- operator string
- The comparison operator to use while comparing an attribute with its value.
- units string
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- use
Relative booleanTime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- value string
- The value to be compared against a file attribute.
- type str
- The file attribute to be compared to a given value.
- attribute_
exists bool - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- begins_
with bool - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- case_
sensitive bool - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- field str
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- operator str
- The comparison operator to use while comparing an attribute with its value.
- units str
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- use_
relative_ booltime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- value str
- The value to be compared against a file attribute.
- type String
- The file attribute to be compared to a given value.
- attribute
Exists Boolean - Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute').
- begins
With Boolean - True to match the path exactly, False to match any subtree. (valid only with 'type' = 'path').
- case
Sensitive Boolean - True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path').
- field String
- File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute').
- operator String
- The comparison operator to use while comparing an attribute with its value.
- units String
- Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size').
- use
Relative BooleanTime - Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessedtime, birthtime, changedtime or metadatachanged_time}.
- value String
- The value to be compared against a file attribute.
Import
Copyright (c) 2023-2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The command is
$ pulumi import powerscale:index/filepoolPolicy:FilepoolPolicy example_filepool_policy <policyID>
Example1:
$ pulumi import powerscale:index/filepoolPolicy:FilepoolPolicy example_filepool_policy filePoolPolicySample
Example2, for default policy, policyID should be “is_default_policy=true”:
$ pulumi import powerscale:index/filepoolPolicy:FilepoolPolicy example_filepool_policy is_default_policy=true
after running this command, populate the name field and other required parameters in the config file to start managing this resource.
Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscale
Terraform Provider.