Skip to content

feat:added api command to support a GET request against any octopus api endpoint#586

Open
benPearce1 wants to merge 1 commit intomainfrom
bp/api-command
Open

feat:added api command to support a GET request against any octopus api endpoint#586
benPearce1 wants to merge 1 commit intomainfrom
bp/api-command

Conversation

@benPearce1
Copy link
Copy Markdown
Contributor

@benPearce1 benPearce1 commented Apr 6, 2026

Adds a new command: api

Will allow supporting OIDC login via the login command to access any endpoint URL

> octopus api /api/spaces/Spaces-1/tenants/Tenants-1

{
  "Id": "Tenants-1",
  "Name": "eyore",
  "TenantTags": [
    "tags/all"
  ],
  "CustomFields": [],
  "ProjectEnvironments": {
    "Projects-21": [
      "Environments-2"
    ]
  },
  "SpaceId": "Spaces-1",
  "ClonedFromTenantId": null,
  "Description": "",
  "Slug": "eyore",
  "IsDisabled": false,
  "Icon": null,
  "Links": {
    "Self": "/api/Spaces-1/tenants/Tenants-1",
    "Variables": "/api/Spaces-1/tenants/Tenants-1/variables",
    "Web": "/app#/Spaces-1/tenants/Tenants-1",
    "Logo": "/api/Spaces-1/tenants/Tenants-1/logo?cb=0.0.0-local"
  }
}
> octopus api /api/spaces/Spaces-1/tenants/Tenants-1 | jq -r '.Name'
eyore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant