Follow a cookbook that has been imported into an account.
Table of Contents
Prerequisite: Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.
When a cookbook is being followed, the new or updated versions of that cookbook that are fetched into the repositories section will automatically get imported into your account. You can only follow cookbooks that are in the alternate namespace. For more information about alternate namespaces, see Primary and Alternate Namespaces.
To get a cookbook ID, you need to perform a List Cookbooks.
Note: Repositories are automatically re-scraped roughly once a day.
#!/bin/sh -e curl -i -H X_API_VERSION:1.5 -b mycookie -X POST \ -d value=true \ https://my.rightscale.com/api/cookbooks/7460001/follow.xml
Note: Truncated XML output without headers included (to save space).
HTTP/1.1 204 No Content Server: nginx/1.0.14 Date: Fri, 06 Sep 2013 16:48:48 GMT Connection: keep-alive Status: 204 No Content X-Runtime: 1958 X-Request-Uuid: 96817b26fb5649ca9e153ec2f7d86f80 Set-Cookie: rs_gbl=eNotkEuPgjAYAP8BzzaxPD5akj2ID1RWWRVFvRhpKayuPLRdReN_X032PjOHeaA9ctGpQS0kLsh9IH1Jz8i1AQzybCHFkUtMh1oUiEFb6Fu86IQIWzJCMXHaCSYkNTEDR2CaCBOAWdSxxaun0n-XmebbfeWRx5cLYVTlQYtQZQOIjVqet3yqVUm7M74IKyYjvcmhd1zhaJmFO7-3scSq0BNoGIHfisttvF4f8O2nHXx61QiLgfKzYixTmTSizL-m88nMO2XNLB2em75_hW1XRUF3dOknsazvd1scp1BrMhzvRDFPwmt9yHpF3sQdfIRJREZ-gPPA63y8l9zeS_acl7pQyHWYbT2ff0DYXdc%3D; domain=.rightscale.com; path=/; HttpOnly 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.