---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / CdnZonesClient

# Type Alias: CdnZonesClient

> **CdnZonesClient** = `Client`\<`paths`\>

Defined in: [packages/b2c-tooling-sdk/src/clients/cdn-zones.ts:71](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/cdn-zones.ts#L71)

The typed CDN Zones client for eCDN management.

## Common Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/organizations/{organizationId}/zones/info` | List all zones |
| GET | `/organizations/{organizationId}/zones/{zoneId}/certificates` | Get zone certificates |
| POST | `/organizations/{organizationId}/zones/{zoneId}/cachepurge` | Purge cache |
| GET | `/organizations/{organizationId}/zones/{zoneId}/firewall/waf` | Get WAF settings |
| GET | `/organizations/{organizationId}/zones/{zoneId}/speed` | Get speed settings |

## Example

```typescript
import { createCdnZonesClient, toOrganizationId } from '@salesforce/b2c-tooling-sdk/clients';
import { OAuthStrategy } from '@salesforce/b2c-tooling-sdk/auth';

const auth = new OAuthStrategy({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

const client = createCdnZonesClient(
  { shortCode: 'kv7kzm78', tenantId: 'zzxy_prd' },
  auth
);

// List all zones
const { data, error } = await client.GET('/organizations/{organizationId}/zones/info', {
  params: { path: { organizationId: toOrganizationId('zzxy_prd') } }
});
```

## See

 - [createCdnZonesClient](../functions/createCdnZonesClient.md) for instantiation
 - [CDN Zones API Reference](https://developer.salesforce.com/docs/commerce/commerce-api/references/cdn-api-process-apis?meta=Summary)
