gcloud apihub plugins create (PLUGIN : --location=LOCATION) --display-name=DISPLAY_NAME [--actions-config=[description=DESCRIPTION],[displayName=DISPLAYNAME],[id=ID],[triggerMode=TRIGGERMODE]] [--description=DESCRIPTION] [--documentation-external-uri=DOCUMENTATION_EXTERNAL_URI] [--gateway-type=GATEWAY_TYPE] [--hosting-service-uri=HOSTING_SERVICE_URI] [--plugin-category=PLUGIN_CATEGORY] [--auth-config-template-supported-types=[AUTH_CONFIG_TEMPLATE_SUPPORTED_TYPES,…] --config-template-additional=[description=DESCRIPTION],[enumOptions=ENUMOPTIONS],[id=ID],[multiSelectOptions=MULTISELECTOPTIONS],[required=REQUIRED],[validationRegex=VALIDATIONREGEX],[valueType=VALUETYPE]] [--enum-values=[description=DESCRIPTION],[displayName=DISPLAYNAME],[id=ID],[immutable=IMMUTABLE] | --json-values=[JSON_VALUES,…] | --string-values=[STRING_VALUES,…] | --uri-values=[URI_VALUES,…]] [GCLOUD_WIDE_FLAG …]
my-plugin, run:
gcloud apihub plugins create --plugin=my-plugin --display-name="My Plugin" --type=apigee --project=my-project --location=us-central1projects/{project}/locations/{location}/plugins/{plugin} The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the project attribute:
plugin on the command line with a fully
specified name;
--project on the command line;
core/project.
PLUGIN
To set the plugin attribute:
plugin on the command line.
--location=LOCATIONlocation attribute:
plugin on the command line with a fully
specified name;
--location on the command line.
--display-name=DISPLAY_NAME--actions-config=[description=DESCRIPTION],[displayName=DISPLAYNAME],[id=ID],[triggerMode=TRIGGERMODE]descriptiondisplayNameidtriggerModeShorthand Example:
--actions-config=description=string,displayName=string,id=string,triggerMode=string --actions-config=description=string,displayName=string,id=string,triggerMode=string
JSON Example:
--actions-config='[{"description": "string", "displayName": "string", "id": "string", "triggerMode": "string"}]'
File Example:
--actions-config=path_to_file.(yaml|json)
--description=DESCRIPTION--documentation-external-uri=DOCUMENTATION_EXTERNAL_URI--gateway-type=GATEWAY_TYPEGATEWAY_TYPE must be one of:
api-discoveryapigee-edge-private-cloudapigee-edge-public-cloudapigee-x-and-hybridcloud-api-gatewaycloud-endpointsothers--hosting-service-uri=HOSTING_SERVICE_URI--plugin-category=PLUGIN_CATEGORYPLUGIN_CATEGORY must
be one of:
api-gatewayapi-producer--auth-config-template-supported-types=[AUTH_CONFIG_TEMPLATE_SUPPORTED_TYPES,…]AUTH_CONFIG_TEMPLATE_SUPPORTED_TYPES must be one of:
api-keygoogle-service-accountno-authoauth2-client-credentialsuser-password--config-template-additional=[description=DESCRIPTION],[enumOptions=ENUMOPTIONS],[id=ID],[multiSelectOptions=MULTISELECTOPTIONS],[required=REQUIRED],[validationRegex=VALIDATIONREGEX],[valueType=VALUETYPE]descriptionenumOptionsValueType is ENUM.
descriptiondisplayNameididmultiSelectOptionsValueType is
MULTI_SELECT.
descriptiondisplayNameidrequiredConfigVariable must be provided for a
PluginInstance.
validationRegexvalue of a
ConfigVariable.
valueTypeShorthand Example:
--config-template-additional=description=string,enumOptions=[{description=string,displayName=string,id=string}],id=string,multiSelectOptions=[{description=string,displayName=string,id=string}],required=boolean,validationRegex=string,valueType=string --config-template-additional=description=string,enumOptions=[{description=string,displayName=string,id=string}],id=string,multiSelectOptions=[{description=string,displayName=string,id=string}],required=boolean,validationRegex=string,valueType=string
JSON Example:
--config-template-additional='[{"description": "string", "enumOptions": [{"description": "string", "displayName": "string", "id": "string"}], "id": "string", "multiSelectOptions": [{"description": "string", "displayName": "string", "id": "string"}], "required": boolean, "validationRegex": "string", "valueType": "string"}]'
File Example:
--config-template-additional=path_to_file.(yaml|json)
--enum-values=[description=DESCRIPTION],[displayName=DISPLAYNAME],[id=ID],[immutable=IMMUTABLE]descriptiondisplayNameidThis value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
immutableShorthand Example:
--enum-values=description=string,displayName=string,id=string,immutable=boolean --enum-values=description=string,displayName=string,id=string,immutable=boolean
JSON Example:
--enum-values='[{"description": "string", "displayName": "string", "id": "string", "immutable": boolean}]'
File Example:
--enum-values=path_to_file.(yaml|json)
--json-values=[JSON_VALUES,…]--string-values=[STRING_VALUES,…]--uri-values=[URI_VALUES,…]--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
apihub/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/apigee/docs/api-hub/what-is-api-hub
gcloud alpha apihub plugins create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.