Scrapes a repository for cookbooks and other RepositoryAssets.
Table of Contents
Prerequisite: Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.
Refetching performs a scrape to see if any changes have been made to the source repository. This action will pull in assets from a repository added to an account. You can then perform an Import Cookbooks from a Repository to bring cookbooks into your account and attach them when modifying a ServerTemplate. You can perform a Show Repository to view the fetch_status to see if the refetch completed successfully.
#!/bin/sh -e curl -i -H X_API_VERSION:1.5 -b mycookie -X POST https://my.rightscale.com/api/repositories/248925001/refetch.xml
HTTP/1.1 204 No Content Server: nginx/1.0.15 Date: Thu, 05 Sep 2013 20:30:23 GMT Connection: keep-alive Status: 204 No Content X-Runtime: 341 X-Request-Uuid: 0c3909a2c4ad4c47930d2df4aed2caee Set-Cookie: Cache-Control: no-cache
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.