Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

PowerScale OneFS API Reference

PDF

Create a replication policy

You can create a replication policy on the file system.

Request example

POST	/platform/14/sync/policies
Authorization: Basic QWxhZGRpbjpvcGVuIHN1c2FtZQ==

	{
		'log_level': 'fatal', 
		'name': 'myNewPolicy', 
		'schedule': 'every 3 weeks', 
		'source_root_path': '/ifs/data/sync2', 
		'target_path': '/ifs/data/sync/target2', 
		'action': 'copy', 
		'report_max_count': 144, 
		'source_exclude_directories': ['/ifs/data/sync2/exclude'], 
		'source_include_directories': ['/ifs/data/sync2/include'], 
		'target_host': 'localhost'
	}

Response examples

In the following example, the request was successful and a replication policy ID is returned for the created object.

201 Created
Content-type: application/json, 
Allow: 'DELETE, GET, POST, HEAD'

	{
		"id":"a33006f364842eefb629fc6b95c92559"
	}

In following example, the replication policy was not created and an error was returned.

	500 Internal Server Error
Content-type: application/json, 
Allow: 'DELETE, GET, POST, HEAD'
	
	{
		"errors":[
			{
			"code":"AEC_EXCEPTION",
			"message":"duplicate policy <name,type> entry with id=\'(null)\', name=\'myNewPolicy\'"
			}
		]
	}

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\