Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
HTTP request
POST https://apihub.googleapis.com/v1/{parent=projects/*/locations/*}/plugins
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent
|
Required. The parent resource where this plugin will be created. Format: |
Query parameters
pluginId
string
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
- If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.
Request body
The request body contains an instance of Plugin
.
Response body
If successful, the response body contains a newly created instance of Plugin
.
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform

