Skip to content

Agent Pools using non-existent endpoints and failing to add allowed workspaces. #99

@benjamin-lykins

Description

@benjamin-lykins

python-tfe version

0.1.2

Description

These functions will fail to run:

https://github.com/hashicorp/python-tfe/blob/main/src/pytfe/resources/agent_pools.py#L372-L432

No endpoints exist for POST /api/v2/agent-pools/{agent_pool_id}/relationships/workspaces or DELETE to that path.

See for agent pool endpoint: https://developer.hashicorp.com/terraform/cloud-docs/api-docs/agents

Expected Behavior

POST or PATCH should send a list of workspace ids to assign to that pool.

POST /organizations/:organization_name/agent-pools

When agent pools are created, workspace(s) can be passed for allowed workspace(s).

PATCH /agent-pools/:id

When updating, workspace(s) can be passed to add or remove workspace(s).

Actual Behavior

Failing to add workspaces to agent pools.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions