Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

ParameterExplanation
pathPath of the resource
destinationTarget location
startStart page number (optional)
sizeNumber 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

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

  • No labels