Cloud Management API 1.5

RepositoryAssets

A RepositoryAsset represents an item discovered in a Repository. These assets represent only a view of the Repository the last time it was scraped. In order to use these assets, you must import them into your account.

Actions

index

List a repository's current assets.

Repository assests are the cookbook details that were scraped from a given repository.

URLs
GET /api/repositories/:repository_id/repository_assets
HTTP response code
200 OK
Content-type
application/vnd.rightscale.repository_asset;type=collection

Required roles

Parameters

name required type values regexp blank? description
view no String default * no Specifies how many attributes and/or expanded nested relationships to include.

Example Responses

Click on a format below to see an example response:

JSON XML
[{
  "id": "1",
  "links": [
    {"rel":"self","href":"/api/repositories/1/repository_assets/1"}
  ],
  "actions": [

  ],
  "name": "pending_cookbook_3240729010",
  "version": "1.2.3"
},{
  "id": "2",
  "links": [
    {"rel":"self","href":"/api/repositories/2/repository_assets/2"}
  ],
  "actions": [

  ],
  "name": "pending_cookbook_2590545037",
  "version": "1.2.3"
}]
<?xml version="1.0" encoding="UTF-8"?>
<repository_assets>
  <repository_asset>
    <id>1</id>
    <links>
      <link rel="self" href="/api/repositories/1/repository_assets/1"/>
    </links>
    <actions/>
    <name>pending_cookbook_3240729010</name>
    <version>1.2.3</version>
  </repository_asset>
  <repository_asset>
    <id>2</id>
    <links>
      <link rel="self" href="/api/repositories/2/repository_assets/2"/>
    </links>
    <actions/>
    <name>pending_cookbook_2590545037</name>
    <version>1.2.3</version>
  </repository_asset>
</repository_assets>

show

Show information about a single asset.

A repository assest are the cookbook details that were scraped from a repository.

URLs
GET /api/repositories/:repository_id/repository_assets/:id
HTTP response code
200 OK
Content-type
application/vnd.rightscale.repository_asset

Required roles

Parameters

name required type values regexp blank? description
view no String default * no Specifies how many attributes and/or expanded nested relationships to include.

Example Responses

Click on a format below to see an example response:

JSON XML
{
  "id": "1",
  "links": [
    {"rel":"self","href":"/api/repositories/1/repository_assets/1"}
  ],
  "actions": [

  ],
  "name": "pending_cookbook_3240729010",
  "version": "1.2.3"
}
<?xml version="1.0" encoding="UTF-8"?>
<repository_asset>
  <id>1</id>
  <links>
    <link rel="self" href="/api/repositories/1/repository_assets/1"/>
  </links>
  <actions/>
  <name>pending_cookbook_3240729010</name>
  <version>1.2.3</version>
</repository_asset>