Skip to content

feat: add portal audience management commands (#660)#727

Open
saiflayouni wants to merge 1 commit into
apigee:mainfrom
saiflayouni:fix/portal-audience-management
Open

feat: add portal audience management commands (#660)#727
saiflayouni wants to merge 1 commit into
apigee:mainfrom
saiflayouni:fix/portal-audience-management

Conversation

@saiflayouni

Copy link
Copy Markdown

Summary

  • Adds CRUD operations for Apigee integrated developer portal audiences — previously there was no programmatic access and it required click-ops in the UI
  • Adds developer membership management (add/remove by email) so teams can automate who has access to which portal pages as part of onboarding workflows
  • All new commands live under apigeecli sites audiences and reuse the existing --org persistent flag from the sites parent command

New commands:

# List all audiences for a portal
apigeecli sites --org $ORG audiences list --site $SITE_ID

# Get a specific audience
apigeecli sites --org $ORG audiences get --site $SITE_ID --name $AUDIENCE_ID

# Create audience from a JSON file
apigeecli sites --org $ORG audiences create --site $SITE_ID --file audience.json [--name $AUDIENCE_ID]

# Update an audience (full replace)
apigeecli sites --org $ORG audiences update --site $SITE_ID --name $AUDIENCE_ID --file audience.json

# Delete an audience
apigeecli sites --org $ORG audiences delete --site $SITE_ID --name $AUDIENCE_ID

# Add or remove a developer from an audience
apigeecli sites --org $ORG audiences managedev --site $SITE_ID --name $AUDIENCE_ID \
  --developer dev@example.com --action add|remove

Fixes #660

Test plan

  • Run apigeecli sites audiences list against a portal with existing audiences and verify the response
  • Create an audience with create, retrieve it with get, verify the response matches
  • Use managedev --action add to add a developer email, then get to confirm they appear
  • Use managedev --action remove to remove the developer

🤖 Generated with Claude Code

Adds CRUD operations for Apigee integrated developer portal audiences, plus a
command to add/remove a developer from an audience by email. This fills the
gap where audience management (and the portal/developer mapping) had no
programmatic access and required click-ops in the UI.

New commands:
  apigeecli sites audiences list --site <siteId>
  apigeecli sites audiences get --site <siteId> --name <audienceId>
  apigeecli sites audiences create --site <siteId> --file <path> [--name <audienceId>]
  apigeecli sites audiences update --site <siteId> --name <audienceId> --file <path>
  apigeecli sites audiences delete --site <siteId> --name <audienceId>
  apigeecli sites audiences managedev --site <siteId> --name <audienceId> --developer <email> --action add|remove

Fixes apigee#660
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.

[FR] Manage Audience on developers

1 participant