Layer 4 to Layer 7 service graphs can be deployed for endpoint security groups (ESGs) through the REST API.
REST API configurations for deploying service graphs with endpoint groups (EPGs) also apply to ESGs. For an ESG deployment, associate the contract with the ESG instead of the EPG.
REST API examples
For REST API service graph deployment examples, see the Cisco APIC Layer 4 to Layer 7 Services Deployment Guide .