Create a device posture integration
client.zeroTrust.devices.posture.integrations.create(IntegrationCreateParams { account_id, config, interval, 2 more } params, RequestOptionsoptions?): Integration { id, config, interval, 2 more } | null
POST/accounts/{account_id}/devices/posture/integration
Create a new device posture integration.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Create a device posture integration
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const integration = await client.zeroTrust.devices.posture.integrations.create({
account_id: '699d98642c564d2e855e9661899b7252',
config: {
api_url: 'https://as123.awmdm.com/API',
auth_url: 'https://na.uemauth.workspaceone.com/connect/token',
client_id: 'example client id',
client_secret: 'example client secret',
},
interval: '10m',
name: 'My Workspace One Integration',
type: 'workspace_one',
});
console.log(integration.id);{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"config": {
"api_url": "https://as123.awmdm.com/API",
"auth_url": "https://na.uemauth.workspaceone.com/connect/token",
"client_id": "example client id"
},
"interval": "10m",
"name": "My Workspace One Integration",
"type": "workspace_one"
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": {
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"config": {
"api_url": "https://as123.awmdm.com/API",
"auth_url": "https://na.uemauth.workspaceone.com/connect/token",
"client_id": "example client id"
},
"interval": "10m",
"name": "My Workspace One Integration",
"type": "workspace_one"
},
"success": true
}