Your submission was sent successfully! Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

API Endpoints: Scripts

GET /scripts

Get stored scripts associated with the current account.

Path parameters:

  • None

Query parameters:

  • limit: The maximum number of results returned by the method. It defaults to 1000.
  • offset: The offset inside the list of results.

Example request:

curl -X GET   -H "Authorization: Bearer $JWT" "https://landscape.canonical.com/api/v2/scripts"

Example output:

{
  "count": 1,
  "results": [
	{
  	"id": 2,
  	"access_group": "server",
  	"creator": {
    	"name": "John Allen Smith",
    	"email": "john@example.com",
    	"id": 1
  	},
  	"title": "Execute python attachment",
  	"time_limit": 20,
  	"username": "user",
  	"attachments": [
    	"run.py"
  	]
	}
}

This page was last modified 5 months ago. Help improve this document in the forum.