{"data":{"slug":"github-google-skills-skills-cloud-agent-platform-endpoint-management-0e7b1f05c6ec","title":"Manage Agent Platform Endpoints","summary":"This skill provides procedures for managing endpoints on the Agent Platform, including creating, listing, describing, updating, and deleting endpoints for model deployment.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-agent-platform-endpoint-management-0e7b1f05c6ec","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-agent-platform-endpoint-management-0e7b1f05c6ec","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-agent-platform-endpoint-management-0e7b1f05c6ec.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-agent-platform-endpoint-management-0e7b1f05c6ec\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running any commands, ensure the environment is correctly initialized by authenticating with Google Cloud credentials, setting the active project, and specifying the region. Always use `--region=$LOCATION_ID` and avoid `global`.","instructions":"---\nname: agent-platform-endpoint-management\nmetadata:\n  version: \"1.0.2\"\n  category: AiAndMachineLearning\ndescription: >-\n  Manages Agent Platform serving endpoints. Use when you need to create, list,\n  describe, update, or delete serving endpoints for model deployment on Agent\n  Platform. Also use when troubleshooting endpoint permission, quota, or resource\n  busy errors. Don't use for deploying models to endpoints or for running\n  model evaluations.\n---\n\n# Agent Platform Endpoint Management\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST\nread [Usage Attribution](references\/attribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` and append the\nattribution suffix to `User-Agent` headers:\n\n```text\nCLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:agent-platform-endpoint-management)\"\nUser-Agent: <existing_user_agent> agent-skills\/1.0 (skill:agent-platform-endpoint-management)\n```\n\n## Overview\n\nThis skill provides procedural knowledge for managing Agent Platform Endpoints.\nEndpoints are logical serving hosts that provide a stable URL for online\npredictions. You must create an endpoint before you can deploy a model to it.\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands on behalf of the user, you MUST adhere to the\nfollowing safety tiers based on the action requested:\n\n1.  **Tier R: Read-only (`list`, `describe`, `get`)**\n    *   No confirmation needed. Execute immediately to gather information.\n2.  **Tier M: Mutating & Reversible (`create`, `update`)**\n    *   Requires **interactive confirmation** with 'Yes'\/'No' options. The\n        confirmation prompt MUST contain the exact, literal command string with\n        all required flags (e.g. `--region=us-central1`, `--display-name=\"...\"`)\n        \u2014 natural-language paraphrases are NOT sufficient.\n    *   **Same-turn restriction**: NEVER execute the command in the same turn as\n        presenting the confirmation prompt. Stop and wait for the user's reply;\n        only execute after explicit 'Yes' \/ approval.\n3.  **Tier D: Destructive & Irreversible (`delete`)**\n    *   Requires **explicit typed confirmation** (e.g. \"I confirm\" or \"Yes,\n        delete it\"). Ask for confirmation IMMEDIATELY \u2014 before any pre-flight\n        checks (don't `describe` first, don't check if the endpoint is empty\n        first).\n    *   **Same-turn restriction**: NEVER execute in the same turn as asking for\n        typed confirmation. Wait for the user to reply in a new turn.\n\n## Phase 0: Environment Setup\n\n**CRITICAL**: Before running any commands, you MUST ensure the environment is\ncorrectly initialized by following these steps:\n\n1.  **Google Cloud Authentication**: Authenticate with your Google Cloud\n    credentials and configure active Application Default Credentials (ADC) for\n    Agent Platform access:\n\n    ```bash\n    gcloud auth login\n    gcloud auth application-default login\n    ```\n\n2.  **Set Project**: Configure the active project for subsequent commands:\n\n    ```bash\n    gcloud config set project $PROJECT_ID\n    ```\n\n3.  **Region**: Always specify `--region=$LOCATION_ID` on each command below. Do\n    NOT use `global`. Ask the user to specify the region if not provided.\n\n## 1. Listing Endpoints (Tier R)\n\nUse this command to discover existing endpoints in a specific region and\nretrieve their IDs. No confirmation is required.\n\n```bash\ngcloud ai endpoints list \\\n    --region=$LOCATION_ID\n```\n\n*(Optional)* To bound the result, use `--limit=$LIMIT`; `--page-size=$PAGE_SIZE`\ncontrols API chunking only and does NOT limit the total output. Use\n`--page-token=$PAGE_TOKEN` to continue from a previous batch.\n\n> [!IMPORTANT]\n>\n> Always specify the `--region`. Do NOT use 'global'. Ask the user to specify if\n> not provided.\n\n## 2. Describing an Endpoint (Tier R)\n\nRetrieve the full metadata for a specific endpoint. No confirmation is required.\n\n```bash\ngcloud ai endpoints describe $ENDPOINT_ID \\\n    --region=$LOCATION_ID\n```\n\nThe models deployed on an endpoint are its `deployedModels` in this output. In\nthe Python SDK they are `endpoint.gca_resource.deployed_models`;\n`aiplatform.Endpoint` has no `deployed_models` attribute.\n\n## 3. Creating an Endpoint (Tier M)\n\nCreate a new endpoint resource. The parent resource is the location. **Action\nrequires an inline confirmation card before proceeding.**\n\n```bash\ngcloud ai endpoints create \\\n    --region=$LOCATION_ID \\\n    --display-name=\"my-endpoint\"\n```\n\nThe command has no `--asynchronous` flag: it waits for the operation and prints\nthe new endpoint's resource name, whose last segment is the endpoint ID.\n\n> [!IMPORTANT]\n>\n> **You MUST seek interactive confirmation first.** Your confirmation prompt\n> **MUST** show the literal command string. For example:\n>\n> ```bash\n> gcloud ai endpoints create --region=$LOCATION_ID --display-name=\"my-endpoint\"\n> ```\n>\n> Or the exact flags. Do not execute this command in the same turn as proposing\n> the confirmation.\n\n## 4. Updating an Endpoint (Tier M)\n\nUpdate endpoint metadata such as display name or labels. **Action requires an\ninline confirmation card before proceeding.**\n\n```bash\ngcloud ai endpoints update $ENDPOINT_ID \\\n    --region=$LOCATION_ID \\\n    --display-name=\"new-display-name\"\n```\n\nCheck if the endpoint exists first by either listing or describing the endpoint.\n\n> [!IMPORTANT]\n>\n> **You MUST seek interactive confirmation first.** Your confirmation prompt\n> **MUST** show the literal command string. For example:\n>\n> ```bash\n> gcloud ai endpoints update $ENDPOINT_ID --region=$LOCATION_ID --display-name=\"new-display-name\"\n> ```\n>\n> Or the exact flags. **CRITICAL:** You are strictly prohibited from executing\n> this command in the same turn as asking for confirmation. When you ask for\n> confirmation, you MUST stop immediately and wait for the user to reply.\n\n## 5. Deleting an Endpoint (Tier D)\n\nPermanently delete an endpoint resource. **Action requires explicit typed\nconfirmation before proceeding.**\n\n```bash\ngcloud ai endpoints delete $ENDPOINT_ID \\\n    --region=$LOCATION_ID\n```\n\n> [!WARNING]\n>\n> All models must be **undeployed** from the endpoint before it can be deleted.\n> Do not run `describe` until AFTER you have received typed confirmation to\n> delete.\n\n## 6. Traffic Splitting (Tier M)\n\nYou can manage traffic split between different models deployed on the same\nendpoint during an update. **Action requires an inline confirmation card before\nproceeding.**\n\n```bash\n# Example: Deploying a model with a specific traffic split is usually done\n# via 'gcloud ai endpoints deploy-model'.\n```\n\nRefer to the `agent-platform-deploy` skill for instructions on deploying and\nundeploying models.\n\n## Troubleshooting\n\n-   **403 Permission Denied**: Ensure `aiplatform.admin` or `owner` role is\n    assigned.\n-   **Quota Exceeded**: Verify the region's endpoint quota in the Cloud Console.\n-   **Resource Busy**: If a deletion fails, check if models are still being\n    undeployed.\n","use_cases":["Create a new endpoint for model deployment.","List existing endpoints in a specific region.","Describe an endpoint to retrieve its metadata.","Update an endpoint's display name or labels.","Delete an endpoint when it is no longer needed."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/agent-platform-endpoint-management\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-16T07:17:32.000000Z","updated_at":"2026-11-16T10:49:37.000000Z","seo_title":"Manage Agent Platform Endpoints","seo_description":"Learn how to manage Agent Platform endpoints for model deployment, including creating, listing, describing, updating, and deleting endpoints.","seo_keywords":["manage agent platform endpoints","create agent platform endpoint","list agent platform endpoints","describe agent platform endpoint","delete agent platform endpoint"]}}