Apigee · Schema

Attribute

A custom attribute definition.

Advanced API SecurityAgentic AIAnalyticsAPI GatewayAPI GovernanceAPI HubAPI ManagementDeveloper PortalEnterpriseGenerative AIHybridIntegrationsMicroservicesMCPModel Context ProtocolMonetization

Properties

Name Type Description
name string Output only. Resource name of the attribute.
displayName string Required. Display name for the attribute.
description string Description of the attribute.
definitionType string Type of the attribute definition.
scope string Scope of the attribute.
dataType string Data type of the attribute values.
allowedValues array Allowed values for ENUM data type.
cardinality integer Maximum number of values for the attribute.
mandatory boolean Whether the attribute is mandatory.
createTime string Output only. Time the attribute was created.
updateTime string Output only. Time the attribute was last updated.
View JSON Schema on GitHub

JSON Schema

apigee-attribute-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Attribute",
  "title": "Attribute",
  "type": "object",
  "description": "A custom attribute definition.",
  "properties": {
    "name": {
      "type": "string",
      "description": "Output only. Resource name of the attribute.",
      "readOnly": true
    },
    "displayName": {
      "type": "string",
      "description": "Required. Display name for the attribute."
    },
    "description": {
      "type": "string",
      "description": "Description of the attribute."
    },
    "definitionType": {
      "type": "string",
      "description": "Type of the attribute definition.",
      "enum": [
        "DEFINITION_TYPE_UNSPECIFIED",
        "SYSTEM_DEFINED",
        "USER_DEFINED"
      ]
    },
    "scope": {
      "type": "string",
      "description": "Scope of the attribute.",
      "enum": [
        "SCOPE_UNSPECIFIED",
        "API",
        "VERSION",
        "SPEC",
        "API_OPERATION",
        "DEPLOYMENT",
        "DEPENDENCY"
      ]
    },
    "dataType": {
      "type": "string",
      "description": "Data type of the attribute values.",
      "enum": [
        "DATA_TYPE_UNSPECIFIED",
        "ENUM",
        "JSON",
        "STRING"
      ]
    },
    "allowedValues": {
      "type": "array",
      "description": "Allowed values for ENUM data type.",
      "items": {
        "$ref": "#/components/schemas/AllowedValue"
      }
    },
    "cardinality": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of values for the attribute."
    },
    "mandatory": {
      "type": "boolean",
      "description": "Whether the attribute is mandatory."
    },
    "createTime": {
      "type": "string",
      "format": "date-time",
      "description": "Output only. Time the attribute was created.",
      "readOnly": true
    },
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Output only. Time the attribute was last updated.",
      "readOnly": true
    }
  }
}