Open Context Protocol is live! 🚀 Read the launch post
getStartupScript

getStartupScript

Get Startup Script

Details

  • Method: GET
  • Path: /startup-scripts/{startup-id}
  • Operation ID: get-startup-script

Parameters

{}

Response Schema

{
  "type": "object",
  "properties": {
    "startup_script": {
      "title": "startup",
      "type": "object",
      "x-tags": [
        "startup"
      ],
      "description": "Startup Script information.",
      "x-examples": {
        "startup": {
          "id": "cb676a46-66fd-4dfb-b839-443f2e6c0b60",
          "date_created": "2020-10-10T01:56:20+00:00",
          "date_modified": "2020-10-10T01:59:20+00:00",
          "name": "Example Startup Script",
          "type": "pxe",
          "script": "QmFzZTY0IEV4YW1wbGUgRGF0YQ=="
        }
      },
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique ID for the Startup Script."
        },
        "date_created": {
          "type": "string",
          "description": "The date the Startup Script was created."
        },
        "date_modified": {
          "type": "string",
          "description": "The date the Startup Script was last modified."
        },
        "name": {
          "type": "string",
          "description": "The user-supplied name of the Startup Script."
        },
        "script": {
          "type": "string",
          "description": "The base-64 encoded Startup Script."
        },
        "type": {
          "type": "string",
          "description": "The Startup Script type.\n\n* boot\n* pxe"
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('vultr')

# Call this tool
result = await agent.call_tool('getStartupScript', {
    # Add required parameters here
})