Créer un plan de déploiement d'agents en masse
POST /api/v1/agent-deployments
L'UUID idempotent de l'appelant lie le plan exact, le créateur et le locataire. Approuve paramètres gérés, groupe du parc, capacité d'appareils et expiration sous sept jours. Les noms fournisseur décrivent la distribution prévue ; ne publie pas de packages et n'affecte pas d'appareils fournisseur. Intune, ConfigMgr et Group Policy sélectionnent actuellement Windows ; Jamf sélectionne macOS. La répétition de création ne peut pas modifier un plan.
Rôles autorisés : admin.
Authentification
Les alternatives OpenAPI suivantes décrivent les méthodes d'authentification acceptées. Les modifications depuis le navigateur nécessitent également l'en-tête Origin canonique.
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
Paramètres
[]
Corps de la requête
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"provider": {
"type": "string",
"enum": [
"intune",
"jamf",
"ansible",
"configmgr",
"group-policy"
]
},
"platform": {
"type": "string",
"enum": [
"windows",
"linux",
"macos"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"arm64"
]
},
"capabilities": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"enum": [
"tls",
"quic",
"ssh",
"code",
"capture",
"aws-kms",
"gcp-kms",
"azure-keyvault",
"runtime",
"windows-certificates"
]
}
},
"relay": {
"type": "object",
"properties": {
"relays": {
"minItems": 1,
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740990
}
},
"required": [
"id",
"expectedRevision"
],
"additionalProperties": false
}
},
"directFallback": {
"type": "string",
"enum": [
"disabled",
"when-unavailable"
]
}
},
"required": [
"relays",
"directFallback"
],
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"sshHostKeyProfile": {
"type": "string",
"enum": [
"baseline",
"host-keys-v1",
"host-keys-v2"
]
},
"enabled": {
"type": "boolean"
},
"pollSeconds": {
"type": "integer",
"minimum": 5,
"maximum": 120
},
"allowedQuicTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"allowedTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"allowedSshTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"repositoryRoots": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"captureRoots": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"allowedAwsKmsKeys": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^arn:(aws|aws-us-gov|aws-cn):kms:([a-z]{2}(?:-[a-z]+){1,3}-[0-9]+):[0-9]{12}:key\\/(?:[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}|mrk-[a-f0-9]{32})$"
}
},
"allowedGcpKmsVersions": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^projects\\/([a-z][a-z0-9-]{4,28}[a-z0-9]|[1-9][0-9]{0,19})\\/locations\\/[a-z][a-z0-9-]{0,62}\\/keyRings\\/[A-Za-z0-9_-]{1,63}\\/cryptoKeys\\/[A-Za-z0-9_-]{1,63}\\/cryptoKeyVersions\\/[1-9][0-9]{0,19}$"
}
},
"allowedAzureKeyVersions": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^https:\\/\\/([a-z][a-z0-9-]{1,22}[a-z0-9])\\.vault\\.azure\\.net\\/keys\\/[A-Za-z0-9-]{1,127}\\/[a-f0-9]{32}$"
}
},
"allowedRuntimeProcesses": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 100,
"pattern": "^[1-9][0-9]{0,6}:[0-9]{1,20}:[a-f0-9]{64}$"
}
},
"allowedWindowsCertificateStores": {
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:CurrentUser|LocalMachine)\\/(?:MY|ROOT|CA|TrustedPeople|TrustedPublisher|Disallowed)$"
}
}
},
"required": [
"enabled",
"pollSeconds",
"allowedTargets",
"allowedSshTargets",
"repositoryRoots"
],
"additionalProperties": false
},
"group": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^(?:[a-z0-9][a-z0-9._/-]*)?$"
},
"maxDevices": {
"type": "integer",
"minimum": 1,
"maximum": 100000
},
"expiresAt": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"id",
"name",
"provider",
"platform",
"architecture",
"capabilities",
"settings",
"maxDevices",
"expiresAt"
],
"additionalProperties": false
}
}
}
}
Réponses
{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
Les références telles que #/components/schemas/Asset sont résolues dans les schémas partagés. Téléchargez le contrat OpenAPI pour générer des clients. Cette page est générée ; elle décrit l'API de développement implémentée, et non des points de terminaison prévus.