Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section explains the REST operations for copying and moving resources that have been secured with Basic Auth.

Table of Contents
maxLevel3

Query parameters

The following terms explain the meaning of the query parameters passed with the following REST URIs:

...

The {start page} and {number of records} can be any value greater than or equal to 0. The {start page} and {number of records} begin with 1. If both of them are 0, then all the comments records are retrieved. Note that start and size are optional parameters and will default to 0 by default.

For details on security (the authorization header) and the URI syntax (port, context, etc.), see Registry REST API.

Copy resource

AttributesValues

HTTP Method                

POST
Request URI/copy?path={ resource path }&destination={ target path}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionCopy resouce to target path
Response Typeapplication/json
ResponseHTTP 204 No Content.
Sample request

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/resource/1.0.0/copy?path=/_system/governance/trunk/soapservices/com/amazon/soap/1.0.0/AmazonSearchService&destination=/_system/governance/trunk/newdestination" -i -k

 

Move resource

AttributesValues

HTTP Method                

POST
Request URI/move?path={ resource path }&destination={ target path}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionMove resouce to target path
Response Typeapplication/json
ResponseHTTP 204 No Content.
Sample request

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/resource/1.0.0/move?path=/_system/governance/trunk/soapservices/com/amazon/soap/1.0.0/AmazonSearchService&destination=/_system/governance/trunk/newlocation" -i -k