This section explains the REST operations for copying resources that have been secured with Basic Auth.
Query parameters
The following terms explain the meaning of the query parameters passed with the following REST URIs:
Parameter | Explanation |
---|---|
path | Path of the resource |
destination | Target location |
start | Start page number (optional) |
size | Number of comments to be fetched (optional) |
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 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
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