Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Esta página se aplica a Apigee y Apigee Hybrid.
Descripción general
Las entidades que creas en el concentrador de API, como los recursos de API, las versiones y las implementaciones, pueden tener asociados atributos definidos por el sistema y el usuario. Se recomienda comenzar tu recorrido al concentrador de APIs mediante la configuración y la edición de atributos clave que se alineen con las necesidades y los estándares de tu organización. Cuando registras APIs, creas versiones y realizas otras acciones, puedes aplicar atributos y valores para compilar entidades que se pueden buscar y con muchos metadatos.
El concentrador de APIs predefine los atributos del sistema para cada tipo de recurso. Si bien los atributos están predefinidos, puedes editar sus valores predeterminados. Para obtener más información, consulta Atributos del sistema.
En la consola de Google Cloud, ve a la página Configuración en el Concentrador de APIs.
En la sección Atributos del sistema, haz clic en el ícono de edición en la fila Ciclo de vida.
En la sección Valores permitidos, haz clic en Agregar elemento.
En el campo Valor, ingresa un valor para el atributo, como "Producción", y agrega una descripción en el campo Descripción.
Haz clic en Guardar.
Crea atributos definidos por el usuario
Los atributos definidos por el usuario son pares nombre-valor que tú defines según tus requisitos. Para obtener más información, consulta Atributos del usuario.
En la sección User Defined Attributes de la página Ajustes, haz clic en Crear atributo.
En el formulario Agregar un atributo nuevo, edita los valores permitidos de la siguiente manera:
Campo
Valor
Nombre
Ingresa un nombre para el atributo. Por ejemplo: Latencia
Descripción
Ingresa una descripción breve del atributo.
Valores máximos permitidos
Especifica la cantidad de elementos que puede contener el atributo. Un elemento puede tener un mínimo de un atributo y un máximo de 20.
Tipo de recurso
Selecciona el tipo de recurso del concentrador de APIs al que se puede asociar el atributo. Las opciones válidas son: versión, especificación, operación, implementación y dependencia.
Tipo de datos
Especifica el tipo de datos de los valores del atributo. Las opciones válidas son Enum, Json o String.
Haz clic en Crear.
Si lo deseas, agrega más atributos definidos por el usuario antes de continuar con el siguiente instructivo.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eThis guide covers managing system and user-defined attributes within API hub for Apigee and Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eSystem attributes are predefined by API hub, but their default values can be edited to align with organizational standards.\u003c/p\u003e\n"],["\u003cp\u003eUser-defined attributes are custom name/value pairs that you create to add metadata to API hub resources, allowing for enhanced searchability.\u003c/p\u003e\n"],["\u003cp\u003eCreating user-defined attributes involves specifying a name, description, maximum allowed values, associated resource type, and data type, with options like String, Enum, and JSON.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure API hub is provisioned in a Google Cloud project and you have selected the correct project in the Google Cloud console.\u003c/p\u003e\n"]]],[],null,["# Create and edit attributes\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\nOverview\n--------\n\nThe entities you create in API hub, such as API resources, versions, and deployments, can have\nsystem and user-defined attributes associated with them. It's a good practice to start off your API hub journey by setting up\nand editing key attributes\nthat align with your\norganizational needs and standards. When you register APIs, create versions, and perform other\nactions, you can apply attributes and values to build metadata-rich, searchable entities.\n\nBefore you begin\n----------------\n\n1. API hub must be provisioned in a Google Cloud project to which you have access. See [Provision API hub](/apigee/docs/apihub/provision).\n2. In the Google Cloud console, on the project selector page, select the project in which API\n hub is provisioned.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\nEdit system attributes\n----------------------\n\nSystem attributes are predefined by API hub for each resource type. While the attributes\nthemselves are predefined, you can edit their default values. To learn more, see [System attributes](./manage-attributes#system-attributes).\n\n1. In the Google Cloud console, go to the **Settings** page in **API hub**.\n\n [Go to API hub](https://console.cloud.google.com/apigee/api-hub/settings)\n2. In the **System attributes** section, click the Edit icon in the **Lifecycle** row.\n3. In the **Allowed values** section, click **Add item**.\n4. In the **Value** field, enter a value for the attribute, such as \"Production\", and add a description in the **Description** field.\n5. Click **Save**.\n\nCreate user defined attributes\n------------------------------\n\nUser defined attributes are name/value pairs defined by you based on your requirements. To\nlearn more, see [User attributes](./manage-attributes#user-attributes).\n\n1. In the **User Defined Attributes** section of the **Settings** page, click **Create attribute**.\n2. In the **Add a new attribute** form, edit the Allowed values as follows:\n\n3. Click **Create**.\n\nAdd more user-defined attributes before continuing to the next quickstart, if you wish.\n\nNext step\n---------\n\n[Create an Eventarc trigger](./quickstart-create-event-triggers)"]]