Method: projects.locations.extensions.get

Gets an Extension.

Endpoint

get https: / /{endpoint} /v1beta1 /{name}

Where {service-endpoint} is one of the supported service endpoints .

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 .