Get deployment group
client.ZeroTrust.Devices.DeploymentGroups.Get(ctx, groupID, query) (*DeploymentGroup, error)
GET/accounts/{account_id}/devices/deployment-groups/{group_id}
Fetches a single deployment group by its ID. This endpoint is in Beta.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Get deployment group
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/cloudflare-go"
"github.com/stainless-sdks/cloudflare-go/option"
"github.com/stainless-sdks/cloudflare-go/zero_trust"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
deploymentGroup, err := client.ZeroTrust.Devices.DeploymentGroups.Get(
context.TODO(),
"group_id",
zero_trust.DeviceDeploymentGroupGetParams{
AccountID: cloudflare.F("account_id"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", deploymentGroup.ID)
}
{
"errors": [
{
"code": 0,
"message": "message"
}
],
"messages": [
{
"code": 0,
"message": "message"
}
],
"result": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2026-02-14T13:17:00.123456789Z",
"name": "Engineering Ring 0",
"updated_at": "2026-02-14T13:17:00.123456789Z",
"version_config": [
{
"target_environment": "windows",
"version": "2026.6.234.0"
}
],
"policy_ids": [
"policy-uuid-1",
"policy-uuid-2"
]
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 0,
"message": "message"
}
],
"messages": [
{
"code": 0,
"message": "message"
}
],
"result": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"created_at": "2026-02-14T13:17:00.123456789Z",
"name": "Engineering Ring 0",
"updated_at": "2026-02-14T13:17:00.123456789Z",
"version_config": [
{
"target_environment": "windows",
"version": "2026.6.234.0"
}
],
"policy_ids": [
"policy-uuid-1",
"policy-uuid-2"
]
},
"success": true
}