redhat_cloudforms_azure_arm.../ansible-netapp-qtree-provison/vars/requests.yml

67 lines
2.4 KiB
YAML
Executable File

# https://<cluster_mgmt_ip_address>/docs/api
getSvmEndpoint: "https://{{ netapp_svm_host }}/api/svm/svms"
getVolumesEndpoint: "https://{{ netapp_svm_host }}/api/storage/volumes"
postQtreeEndpoint: "https://{{ netapp_svm_host }}/api/storage/qtrees"
getJobEndpoint: "https://{{ netapp_svm_host }}/api/cluster/jobs/{{ job_uuid }}"
getQtreeEndpoint: "https://{{ netapp_svm_host }}/api/storage/qtrees"
postQuotaEndpoint: "https://{{ netapp_svm_host }}/api/storage/quota/rules"
toggleVolQuotaEndpoint: "https://{{ netapp_svm_host }}/api/storage/volumes/{{ volume_uuid }}"
postDACLPolicyEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/policy"
postDACLPolicyAttributesEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/ntfs/dacl/add"
postDACLPolicyTargetEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/policy/task/add"
postDACLPolicyApplyEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/apply"
deleteDACLPolicyEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/policy?policy_name={{ qtree_name }}"
deleteDACLPolicyAttributesEndpoint: "https://{{ netapp_svm_host }}/api/private/cli/vserver/security/file-directory/ntfs?ntfs_sd={{ qtree_name }}"
postQtree: {
"name": "{{ qtree_name }}",
"security_style": "ntfs",
"svm": {
"name": "{{ netapp_svm_name }}",
"uuid": "{{ svm_uuid }}"
},
"volume": {
"name": "{{ volume_name }}",
"uuid": "{{ volume_uuid }}"
}
}
toggleVolQuota: {
"quota": {
"enabled": "{{ toggle_quota }}"
}
}
postQuota: {
"qtree": {
"name": "{{ qtree_name }}"
},
"space": {
"hard_limit": "{{ quota_hard_limit}}",
"soft_limit": "{{ quota_soft_limit }}"
},
"svm": {
"name": "{{ netapp_svm_name }}"
},
"type": "tree",
"volume": {
"name": "{{ volume_name }}"
}
}
postDACLPolicy: {
"policy-name" : "{{ qtree_name }}"
}
postDACLPolicyAttributes: {
"ntfs-sd": "{{ qtree_name }}",
"access-type": "allow",
"account": "{{ ADPSuser }}",
"rights": "full-control",
"apply-to": ["this-folder", "sub-folders", "files"]
}
postDACLPolicyTarget: {
"policy-name": "{{ qtree_name }}",
"path": "/{{ volume_name }}/{{ qtree_name }}",
"ntfs-sd": ["{{ qtree_name }}"],
"ntfs-mode": "propagate",
"security-type": "ntfs"
}
postDACLPolicyApply: {
"policy-name": "{{ qtree_name }}"
}