Create and edit attributes Stay organized with collections Save and categorize content based on your preferences.
This pageapplies toApigee andApigee hybrid.
Overview
The entities you create in API hub, such as API resources, versions, and deployments, can have system and user-defined attributes associated with them. It's a good practice to start off your API hub journey by setting up and editing key attributes that align with yourorganizational needs and standards. When you register APIs, create versions, and perform otheractions, you can apply attributes and values to build metadata-rich, searchable entities.
Before you begin
- API hub must be provisioned in a Google Cloud project to which you have access. SeeProvision API hub.
In the Google Cloud console, on the project selector page, select the project in which API hub is provisioned.
Go to project selector
Edit system attributes
System attributes are predefined by API hub for each resource type. While the attributes themselves are predefined, you can edit their default values. To learn more, seeSystem attributes.
In the Google Cloud console, go to theSettings page inAPI hub.
Go to API hub- In theSystem attributes section, click the Edit icon in theLifecycle row.
- In theAllowed values section, clickAdd item.
- In theValue field, enter a value for the attribute, such as "Production", and add a description in theDescription field.
- ClickSave.
Create user defined attributes
User defined attributes are name/value pairs defined by you based on your requirements. To learn more, seeUser attributes.
- In theUser Defined Attributes section of theSettings page, clickCreate attribute.
- In theAdd a new attribute form, edit the Allowed values as follows:
Field Value Name Enter a name for the attribute. For example: Latency Description Enter a brief description of the attribute. Maximum allowed values Specify the number of elements the attribute can hold. An element can have a minimum of one attribute, and a maximum of 20. Resource type Select the type of API hub resource to which the attribute can be associated. Valid choices are: Version, Spec, Operation, Deployment, and Dependency. Data type Choose the data type for the attribute. Data types include String,Enum, andJSON. If theEnumdata type is selected, click+ Add item, and enter the allowed values for the attribute.Notes:- If you select the
Enumdata type, you must enter at least one allowed value. - If you select the
JSONdata type, you must enter a valid JSON value for the attribute.
- If you select the
- ClickCreate.
Add more user-defined attributes before continuing to the next quickstart, if you wish.
Next step
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-18 UTC.