Create and edit attributes

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

  1. API hub must be provisioned in a Google Cloud project to which you have access. SeeProvision API hub.
  2. 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.

  1. In the Google Cloud console, go to theSettings page inAPI hub.

    Go to API hub
  2. In theSystem attributes section, click the Edit icon in theLifecycle row.
  3. In theAllowed values section, clickAdd item.
  4. In theValue field, enter a value for the attribute, such as "Production", and add a description in theDescription field.
  5. ClickSave.

Create user defined attributes

User defined attributes are name/value pairs defined by you based on your requirements. To learn more, seeUser attributes.

  1. In theUser Defined Attributes section of theSettings page, clickCreate attribute.
  2. In theAdd a new attribute form, edit the Allowed values as follows:
    FieldValue
    NameEnter a name for the attribute. For example: Latency
    Description Enter a brief description of the attribute.
    Maximum allowed valuesSpecify the number of elements the attribute can hold. An element can have a minimum of one attribute, and a maximum of 20.
    Resource typeSelect 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 includeString,Enum, andJSON. If theEnum data type is selected, click+ Add item, and enter the allowed values for the attribute.Notes:
    • If you select theEnum data type, you must enter at least one allowed value.
    • If you select theJSON data type, you must enter a valid JSON value for the attribute.
  3. ClickCreate.

Add more user-defined attributes before continuing to the next quickstart, if you wish.

Next step

Create an Eventarc trigger

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.