/scalemgmt/v3/filesystems/{filesystem}/policy: GET
Lists information about the file system policy.
Availability
Available on all IBM Storage Scale editions.
Description
The GET filesystems/{filesystem}/policy request lists information about the filesystem policy.
Request URL
https://<IP address or host name of API server>:<port>/scalemgmt/v3/filesystems/{filesystem}/policy
where- {filesystem}
- Specifies the name of the file system.
Request headers
Accept: application/json
Parameters
The following parameters can be used in the request URL to customize the
request:
Parameter name | Description and applicable keywords | Required/optional |
---|---|---|
filesystem | The name of the file system. | Required. |
X-StorageScaleDomain | The domain to be authorized against for the request. The default value is StorageScaleDomain. | Optional. |
Request data
No request data.
Response data
- A successful response displays the policy content.
- default: An unexpected error response.
{ "code": 0, "details": [ { "@type": "string", "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } ], "message": "string" }
Examples
The following example lists the policy details of the fs1 file system.
Request data:
curl -X 'GET' \
'https://localhost:46443/scalemgmt/v3/filesystems/fs1/policy' \
-H 'accept: application/json' \
-k -n
Response data: {
"policy_contents": "UlVMRSAnZGVsMScgREVMRVRFIEZST00gUE9PTCAnc3lzdGVtJyBXSEVSRSAoREFZUyhDVVJSRU5UX1RJTUVTVEFNUCkgLSBEQVlTKEFDQ0VTU19USU1FKSA+IDMwKSBBTkQgKGxvd2VyKE5BTUUpIExJS0UgJyUudG1wJyBPUiBQQVRIX05BTUUgTElLRSAnJS90bXAvJScpCg=="
}