Method: projects.locations.extensions.get

Gets an Extension.

Endpoint

get https://aiplatform.googleapis.com/v1beta1/{name}

Path parameters

name string

Required. The name of the Extension resource. Format: projects/{project}/locations/{location}/extensions/{extension}

Request body

The request body must be empty.

Example request

Python

import vertexai
from vertexai.preview import extensions

# TODO(developer): Update and un-comment below lines
# PROJECT_ID = "your-project-id"
# extension_id = "your-extension-id"
vertexai.init(project=PROJECT_ID, location="us-central1")

extension = extensions.Extension(extension_id)
print(extension.resource_name)
# Example response:
# projects/[PROJECT_ID]/locations/us-central1/extensions/12345678901234567

Response body

If successful, the response body contains an instance of Extension.