Home > developer > content development > Create a Custom Payload
To get configuration data from other parts of your assembly, you can add a custom payload definition to the resource in a circuit.
Prerequisite: You must understand the bom, manifest, and base models.
Let’s start with an sample payload that gets all the computes in an environment for the Cassandra component.
'computes' => {
'description' => 'computes',
'definition' => '{
"returnObject": false,
"returnRelation": false,
"relationName": "base.RealizedAs",
"direction": "to",
"targetClassName": "manifest.oneops.1.Cassandra",
"relations": [
{ "returnObject": false,
"returnRelation": false,
"relationName": "manifest.DependsOn",
"direction": "from",
"targetClassName": "manifest.oneops.1.Compute",
"relations": [
{ "returnObject": true,
"returnRelation": false,
"relationName": "base.RealizedAs",
"direction": "from",
"targetClassName": "bom.oneops.1.Compute"
}
]
}
]
}'
}
There are many examples of payloads in the circuits. Most likely there is an existing payload you can reuse by changing a few classes.