title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerscale_synciq_policy data source |
powerscale_synciq_policy |
powerscale_synciq_policy Data Source - terraform-provider-powerscale |
This datasource is used to query the existing SyncIQ Policies from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. |
This datasource is used to query the existing SyncIQ Policies from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block.
/*
Copyright (c) 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.
*/
# PowerScale SyncIQ Policy allows you to get a list of SyncIQ Policies or a policy by its ID.
# Returns a list of PowerScale SyncIQ Policies
data "powerscale_synciq_policy" "all_policies" {
}
# Returns a the PowerScale SyncIQ Policy with given ID
data "powerscale_synciq_policy" "one_policy" {
id = "g23j9a1f83h12n5j4"
}
# Output value of above block by executing 'terraform output' command.
# The user can use the fetched information by the variable data.powerscale_synciq_policy.all_policies.policies
output "powerscale_synciq_all_policies" {
value = data.powerscale_synciq_policy.all_policies.policies
}
# The user can use the fetched policy by ID by the variable data.powerscale_synciq_policy.one_policy.policies[0]
output "policyByID" {
value = data.powerscale_synciq_policy.one_policy.one_policy[0]
}
# Get syncIQ policy by name
# Step 1: We shall use the datasource to get all the policies as shown above
# Step 2: We index them by name
locals {
policiesByName = { for policy in data.powerscale_synciq_policy.all_policies.policies : policy.name => policy }
}
# Step 3: The user can use the fetched policy by name by the variable local.policiesByName["<name>"]
output "policiesByName" {
value = {
"aut" = local.policiesByName["aut_synciq_report_policy_01"]
"but" = local.policiesByName["but_synciq_report_policy_01"]
"cut" = local.policiesByName["cut_synciq_report_policy_01"]
}
}
# After the successful execution of above said block, We can see the output value by executing 'terraform output' command.
id
(String) ID
policies
(Attributes List) Policies (see below for nested schema)
Read-Only:
accelerated_failback
(Boolean) Accelerated Failbackaction
(String) Actionallow_copy_fb
(Boolean) Allow Copy Fbbandwidth_reservation
(Number) Bandwidth Reservationchangelist
(Boolean) Changelistcheck_integrity
(Boolean) Check Integritycloud_deep_copy
(String) Cloud Deep Copyconflicted
(Boolean) Conflicteddatabase_mirrored
(Boolean) Database Mirroreddelete_quotas
(Boolean) Delete Quotasdescription
(String) Descriptiondisable_file_split
(Boolean) Disable File Splitdisable_fofb
(Boolean) Disable Fofbdisable_quota_tmp_dir
(Boolean) Disable Quota Tmp Dirdisable_stf
(Boolean) Disable Stfenable_hash_tmpdir
(Boolean) Enable Hash Tmpdirenabled
(Boolean) Enabledencrypted
(Boolean) Encryptedencryption_cipher_list
(String) Encryption Cipher Listexpected_dataloss
(Boolean) Expected Datalossfile_matching_pattern
(Attributes) File Matching Pattern (see below for nested schema)force_interface
(Boolean) Force Interfacehas_sync_state
(Boolean) Has Sync Stateid
(String) Idignore_recursive_quota
(Boolean) Ignore Recursive Quotajob_delay
(Number) Job Delaylast_job_state
(String) Last Job Statelast_started
(Number) Last Startedlast_success
(Number) Last Successlinked_service_policies
(List of String) Linked Service Policieslog_level
(String) Log Levellog_removed_files
(Boolean) Log Removed Filesname
(String) Namenext_run
(Number) Next Runocsp_address
(String) Ocsp Addressocsp_issuer_certificate_id
(String) Ocsp Issuer Certificate Idpassword_set
(Boolean) Password Setpriority
(Number) Priorityreport_max_age
(Number) Report Max Agereport_max_count
(Number) Report Max Countrestrict_target_network
(Boolean) Restrict Target Networkrpo_alert
(Number) Rpo Alertschedule
(String) Scheduleservice_policy
(Boolean) Service Policyskip_lookup
(Boolean) Skip Lookupskip_when_source_unmodified
(Boolean) Skip When Source Unmodifiedsnapshot_sync_existing
(Boolean) Snapshot Sync Existingsnapshot_sync_pattern
(String) Snapshot Sync Patternsource_certificate_id
(String) Source Certificate Idsource_domain_marked
(Boolean) Source Domain Markedsource_exclude_directories
(List of String) Source Exclude Directoriessource_include_directories
(List of String) Source Include Directoriessource_network
(Attributes) Source Network (see below for nested schema)source_root_path
(String) Source Root Pathsource_snapshot_archive
(Boolean) Source Snapshot Archivesource_snapshot_expiration
(Number) Source Snapshot Expirationsource_snapshot_pattern
(String) Source Snapshot Patternsync_existing_snapshot_expiration
(Boolean) Sync Existing Snapshot Expirationsync_existing_target_snapshot_pattern
(String) Sync Existing Target Snapshot Patterntarget_certificate_id
(String) Target Certificate Idtarget_compare_initial_sync
(Boolean) Target Compare Initial Synctarget_detect_modifications
(Boolean) Target Detect Modificationstarget_host
(String) Target Hosttarget_path
(String) Target Pathtarget_snapshot_alias
(String) Target Snapshot Aliastarget_snapshot_archive
(Boolean) Target Snapshot Archivetarget_snapshot_expiration
(Number) Target Snapshot Expirationtarget_snapshot_pattern
(String) Target Snapshot Patternworkers_per_node
(Number) Workers Per Node
Read-Only:
or_criteria
(Attributes List) Or Criteria (see below for nested schema)
Read-Only:
and_criteria
(Attributes List) And Criteria (see below for nested schema)
Read-Only:
attribute_exists
(Boolean) Attribute Existscase_sensitive
(Boolean) Case Sensitivefield
(String) Fieldoperator
(String) Operatortype
(String) Typevalue
(String) Valuewhole_word
(Boolean) Whole Word
Read-Only:
pool
(String) Poolsubnet
(String) Subnet