Update WARP Connector HA configuration
client.zeroTrust.tunnels.warpConnector.configurations.update(stringtunnelId, ConfigurationUpdateParams { account_id, ha_mode, config } params, RequestOptionsoptions?): ConfigurationUpdateResponse { configuration_version, created_at, ha_mode, 3 more }
PUT/accounts/{account_id}/warp_connector/{tunnel_id}/configurations
Adds or updates the high-availability configuration for a WARP Connector tunnel.
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)
Update WARP Connector HA configuration
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const configuration = await client.zeroTrust.tunnels.warpConnector.configurations.update(
'f70ff985-a4ef-4643-bbbc-4a0ed4fc8415',
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', ha_mode: 'aws' },
);
console.log(configuration.tunnel_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"
}
}
],
"success": true,
"result": {
"configuration_version": 0,
"created_at": "2021-01-25T18:22:34.317854Z",
"ha_mode": "aws",
"tunnel_id": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"config": {
"fnr_id": "eni-0123456789abcdef0"
},
"updated_at": "2021-01-25T18:22:34.317854Z"
}
}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"
}
}
],
"success": true,
"result": {
"configuration_version": 0,
"created_at": "2021-01-25T18:22:34.317854Z",
"ha_mode": "aws",
"tunnel_id": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"config": {
"fnr_id": "eni-0123456789abcdef0"
},
"updated_at": "2021-01-25T18:22:34.317854Z"
}
}