Returns the deployment token and secret that enroll newly installed Wartiva agents into an Organization. The first call for an organization creates the secret; later calls return the same one. Treat the result as a credential: anyone holding it can enroll endpoints into the organization. Restricted to organization administrators, and fails when the organization has no deployment address configured.
Response
Returns an EndpointDeployTokenPayload!
Arguments
| Name | Description |
|---|---|
orgId - OrganizationId!
|
The Organization identifier. |
Example
Query
query endpointDeployToken($orgId: OrganizationId!) {
endpointDeployToken(orgId: $orgId) {
orgId
token
deploymentAddress
}
}
Variables
{"orgId": "615f3b3b28284380e28a7342"}
Response
{
"data": {
"endpointDeployToken": {
"orgId": "615f3b3b28284380e28a7342",
"token": "xyz789",
"deploymentAddress": "abc123"
}
}
}