Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Introduction

The /v2/request/new resource provides the list of submitted new requests. With this resource you can get further detail about all or any specific new virtual machine request. 

Remember, a new request is created for every POST request to a given Virtual Machine sub-resource.

(tick)
ResourceURIDescriptionGETPOSTPUTDELETEPATCH
New Request/request/newNew Request Management resource. (tick)   (tick)



New Request/request/new/<rquest<request_id>Specific New Request management resource(tick)  (tick)


(tick)
NR User data/request/new/<rquest<request_id>/user_-dataCloud config user data provided(tick)(tick)



NR Extra Config/request/new/<rquest<request_id>/extra_-configExtra config to inject in the VM config(tick)(tick)



NR Meta data/request/new/<rquest<request_id>/meta_-dataVirtual machine included metadata(tick)(tick)



NR Guest OS Customization Specification/request/new/<rquest<request_id>/custom_-specGuest OS customization specification(tick)(tick)





Panel

On this page:

Table of Contents
outlinetrue



http OPTIONS "

TK stores the Cloud API Token generated as a result of the following POST request to the /auth/request-token resource:

Note
titleOPTIONS HTTP method

Remember, you can get allowed methods, description, parameters, etc. by making a OPTIONS HTTP request to /v2/request/new.

Code Block
languagebash
Code Block
curl -X POST https://vss-api.eis.utoronto.ca/v2auth/request/new"
-token -u <username>

For example, extracting the token with the jq command:

Code Block
TK=$(curl -X OPTIONSPOST "https://vss-api.eis.utoronto.ca/v2/request/new"auth/request-token -u <username> | jq '.token')


List

To list your new requests, do a GET request to /request resource as follows:

Code Block
http GET https://vss-api.eis.utoronto.ca/v2/request/new "Authorization: Bearer $TK"
curl -X GET -H "Authorization: Bearer $TK" https://vss-api.eis.utoronto.ca/v2/request/new


Code Block
languagepy
titleResponse Body
collapsetrue
{
    "data": [
        "http://vss-api.eis.utoronto.ca/v2/request/new/6",
        "http://vss-api.eis.utoronto.ca/v2/request/new/1",
        "http://vss-api.eis.utoronto.ca/v2/request/new/4",
        "http://vss-api.eis.utoronto.ca/v2/request/new/2",
        "http://vss-api.eis.utoronto.ca/v2/request/new/7",
        "http://vss-api.eis.utoronto.ca/v2/request/new/3",
        "http://vss-api.eis.utoronto.ca/v2/request/new/5",
        "http://vss-api.eis.utoronto.ca/v2/request/new/9",
        "http://vss-api.eis.utoronto.ca/v2/request/new/26",
        "http://vss-api.eis.utoronto.ca/v2/request/new/8"
    ],
    "meta": {
        "_link": {
            "self": "http://vss-api.eis.utoronto.ca/v2/request/new"
        },
        "count": 10,
        "pages": {
            "first_url": "http://vss-api.eis.utoronto.ca/v2/request/new?per_page=10&page=1",
            "last_url": "http://vss-api.eis.utoronto.ca/v2/request/new?per_page=10&page=19",
            "next_url": "http://vss-api.eis.utoronto.ca/v2/request/new?per_page=10&page=2",
            "page": 1,
            "pages": 19,
            "per_page": 10,
            "prev_url": null,
            "total": 189
        },
        "time": "0.01800s",
        "user": "jm"
    }
}