- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- ApiViewType
- ApiView
- FlattenedApiVersionDeploymentView
- FlattenedApiVersionOperationDeploymentView
Retrieve API views.
HTTP request
GET https://apihub.googleapis.com/v1/{parent=projects/*/locations/*}:retrieveApiViews
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource name. Format: |
Query parameters
| Parameters | |
|---|---|
filter |
Optional. The filter expression. |
pageSize |
Optional. The maximum number of results to return. Default to 100. |
pageToken |
Optional. A page token, received from a previous |
view |
Required. The view type to return. |
Request body
The request body must be empty.
Response body
The [locations.retrieveApiViews][ApiHubInternal.RetrieveApiViews] method's response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"apiViews": [
{
object ( |
| Fields | |
|---|---|
apiViews[] |
The list of API views. |
nextPageToken |
Next page token. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permissions on the parent resource:
apihub.apiOperations.listAllapihub.apis.listapihub.deployments.listapihub.specs.listAllapihub.versions.listAll
For more information, see the IAM documentation.
ApiViewType
The view type of API.
| Enums | |
|---|---|
API_VIEW_TYPE_UNSPECIFIED |
The default view type. |
MCP_SERVER |
The MCP server view in API hub. |
MCP_TOOL |
The MCP tool view in API hub. |
ApiView
The view of an API.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field view. API view. view can be only one of the following: |
|
mcpServerView |
Output only. MCP server view. |
mcpToolView |
Output only. MCP tools view. |
FlattenedApiVersionDeploymentView
A flattened view of an API, its version and one of the linked deployments.
| JSON representation |
|---|
{ "api": { object ( |
| Fields | |
|---|---|
api |
The API. |
version |
The version. |
deployment |
The deployment. |
FlattenedApiVersionOperationDeploymentView
A flattened view of an API, its version, one of its operations and one of the linked deployments. If there are no deployments linked to the operation then the result will be empty.
| JSON representation |
|---|
{ "api": { object ( |
| Fields | |
|---|---|
api |
The API. |
version |
The version. |
apiOperation |
The API operation. |
deployment |
The deployment. |