Spectra Logic
1-800-833-1132 : 1-303-449-6400


Advanced Bucket Management Operations : Data Policy Operations : Get Data Persistence Rules

Get Data Persistence Rules
Description
Get information about all data persistence rules. Use parameters as selection criteria to return a subset of the list.
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/data_persistence_rule[?data_policy_id={string}][&isolation_level=STANDARD|BUCKET_ISOLATED][&last_page][&page_length={32‑bit integer}][&page_offset={32‑bit integer}][&page_start_marker={string}][&state=NORMAL][&storage_domain_id={string}][&type=PERMANENT|TEMPORARY|RETIRED]
Request Parameters 
Values: STANDARD, BUCKET_ISOLATED
See isolation_level for descriptions.
Notes:  
§
Specifying both page_offset and page_start_marker causes an error.
§
If neither page_offset, nor page_start_marker are specified, the page_offset default is used.
The state of the persistence rule. Value: NORMAL — The persistence rule is in a normal, included state.
Values: PERMANENT, RETIRED, TEMPORARY. See Type for descriptions.
Responses
Response Elements
<Data>
   <DataPersistenceRule>
      <DataPolicyId>{
string}</DataPolicyId>
      <Id>{string}</Id>
      <IsolationLevel>STANDARD|BUCKET_ISOLATED</IsolationLevel>
      <MinimumDaysToRetain>{32‑bit integer}</MinimumDaysToRetain>
      <State>NORMAL|INCLSUION_IN_PROGRESS</State>
      <StorageDomainId>{string}</StorageDomainId>
      <Type>PERMANENT|TEMPORARY|RETIRED</Type>
   </DataPersistenceRule>
   ...
</Data>
where the response elements are defined as follows:
The state of the persistence rule. Value: NORMAL — The persistence rule is in a normal, included state.
Values: PERMANENT, TEMPORARY, RETIRED. See Type for descriptions.
Example
Sample Request
This request gets information about all data persistence rules on the BlackPearl system.
GET http://blackpearl-hostname/_rest_/data_persistence_rule/ HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <DataPersistenceRule>
      <DataPolicyId>
         b1b60034-046d-4006-8fb0-dc73188d1d66
      </DataPolicyId>
      <Id>b67587bb-d7a9-4f7a-85e1-f7010760053a</Id>
      <IsolationLevel>STANDARD</IsolationLevel>
      <MinimumDaysToRetain/>
      <State>NORMAL</State>
      <StorageDomainId>
         b843e63a-e718-4350-a8e7-56600b91547a
      </StorageDomainId>
      <Type>PERMANENT</Type>
   </DataPersistenceRule>
   ...
</Data>