NSX-T Data Center REST API

PolicyAttributes (type)

{
  "additionalProperties": false,
  "id": "PolicyAttributes",
  "module_id": "PolicyContextProfile",
  "properties": {
    "attribute_source": {
      "default": "SYSTEM",
      "enum": [
        "SYSTEM",
        "CUSTOM"
      ],
      "required": false,
      "title": "Source of attribute value i.e whether system defined or custom value",
      "type": "string"
    },
    "custom_url_partial_match": {
      "description": "True value for this flag will be treated as a partial match for custom url",
      "required": false,
      "title": "true value would be treated as a partial match for custom url",
      "type": "boolean"
    },
    "datatype": {
      "enum": [
        "STRING"
      ],
      "required": true,
      "title": "Datatype for attribute",
      "type": "string"
    },
    "description": {
      "required": false,
      "title": "Description for attribute value",
      "type": "string"
    },
    "isALGType": {
      "description": "Describes whether the APP_ID value is ALG type or not.",
      "required": false,
      "title": "Is the value ALG type",
      "type": "boolean"
    },
    "key": {
      "description": "Policy Attribute Key - Denotes the type of attribute we are adding to the context profile or the L7 access profile. The keys has to be one  of the enums defined for this field.",
      "enum": [
        "APP_ID",
        "DOMAIN_NAME",
        "URL_CATEGORY",
        "URL_REPUTATION",
        "CUSTOM_URL"
      ],
      "required": true,
      "title": "Key for attribute",
      "type": "string"
    },
    "metadata": {
      "description": "This is optional part that can hold additional data about the attribute key/values. Example - For URL CATEGORY key , it specified super category for url category value. This is generic array and can hold multiple meta information about key/values in future",
      "items": {
        "$ref": "ContextProfileAttributesMetadata"
      },
      "required": false,
      "title": "Provide additional meta information about key/values",
      "type": "array"
    },
    "sub_attributes": {
      "items": {
        "$ref": "PolicySubAttributes"
      },
      "required": false,
      "title": "Reference to sub attributes for the attribute",
      "type": "array"
    },
    "value": {
      "description": "Multiple attribute values can be specified as elements of array.",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "required": true,
      "title": "Value for attribute key",
      "type": "array",
      "uniqueItems": true
    }
  },
  "title": "Policy Attributes data holder",
  "type": "object"
}