Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale API 1.5 > Examples > Repositories > Refetch Repository

Refetch Repository

Scrapes a repository for cookbooks and other RepositoryAssets.

icon_curl_v1.png    

Table of Contents

Curl

Prerequisite:  Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.

Example Call

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

Sample Output

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
You must to post a comment.
Last modified
12:17, 6 Sep 2013

Tags

This page has no custom tags.

Classifications

This page has no classifications.

Announcements

None


© 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.