This section explains the REST operations for copying and moving resources that have been secured with Basic Auth.
Table of Contents | ||
---|---|---|
|
Query parameters
The following terms explain the meaning of the query parameters passed with the following REST URIs:
...
For details on security (the authorization header) and the URI syntax (port, context, etc.), see Registry REST API.
Copy resource
Attributes | Values |
---|---|
HTTP Method | POST |
Request URI | /copy?path={ resource path }&destination={ target path} |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Description | Copy resouce to target path |
Response Type | application/json |
Response | HTTP 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
Attributes | Values |
---|---|
HTTP Method | POST |
Request URI | /move?path={ resource path }&destination={ target path} |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Description | Move resouce to target path |
Response Type | application/json |
Response | HTTP 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