Skip to content

Add cloudos project members command for /api/v1/projects/{id}/members#330

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/added-get-api-v1-projects-id-members
Draft

Add cloudos project members command for /api/v1/projects/{id}/members#330
Copilot wants to merge 2 commits into
mainfrom
copilot/added-get-api-v1-projects-id-members

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown

Overview

Adds CLI support for the newly introduced GET /api/v1/projects/{id}/members endpoint so project member retrieval is available from cloudos project.
Also updates release metadata to keep endpoint manifest, versioning, and changelog aligned with the API contract change.

JIRA

Please add here as many related tasks this PR covers with its brief description, if more than one ticket

Changes

  • CLI surface
    • Adds cloudos project members with --project-id, --apikey, --cloudos-url, SSL/profile options.
  • API client
    • Adds Cloudos.get_project_members(project_id, verify=True) calling /api/v1/projects/{id}/members with existing error semantics (BadRequestException on non-2xx).
  • Contract/release metadata
    • Bumps patch version to 2.91.1.
    • Adds top changelog entry for the new command.
    • Adds/updates supported-endpoints.json with:
      • projects-create (existing)
      • projects-members-list (new)
# new client method shape
def get_project_members(self, project_id, verify=True):
    r = retry_requests_get(
        f"{self.cloudos_url}/api/v1/projects/{project_id}/members",
        headers={"Content-type": "application/json", "apikey": self.apikey},
        verify=verify,
    )
    if r.status_code >= 400:
        raise BadRequestException(r)
    return json.loads(r.content)

Acceptance Criteria

Please add here as many scenarios as in the Story

Normally this acceptance criteria is tested in ADAPT workspace in PROD

Scenario 1 - proof this scenario passes

cloudos project members --help exposes the new command and required --project-id argument under project.

Scenario 2 - proof this scenario passes

Valid project ID invokes GET /api/v1/projects/{id}/members and returns member payload to stdout (JSON).

Scenario X - proof this scenario passes

Non-2xx responses from /api/v1/projects/{id}/members propagate through existing error handling (BadRequestException path).

DEV

This Environment is interchangable with PROD if the acceptance criteria can only be tested in DEV for example. If that is the case please name this section PROD (or any new environment)

Proof this feature/patch works in this environment

cloudos project members command is registered and wired to the new Cloudos client method in DEV CLI runtime.

AZURE

Proof this feature/patch works in this environment

Endpoint/CLI contract update is runtime-agnostic; no Azure-specific behavior introduced.

Interactive Analysis

Proof this feature/patch works in this environment

No Interactive Analysis behavior changes; command addition is scoped to project member retrieval.

Copilot AI linked an issue Jun 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add GET /api/v1/projects/{id}/members endpoint Add cloudos project members command for /api/v1/projects/{id}/members Jun 9, 2026
Copilot AI requested a review from danielboloc June 9, 2026 17:23
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.

added: GET /api/v1/projects/{id}/members

2 participants