cloudflare
Version:
The official TypeScript library for the Cloudflare API
67 lines • 2.34 kB
TypeScript
import { APIResource } from "../../../../core/resource.js";
import * as WARPAPI from "./warp.js";
import { APIPromise } from "../../../../core/api-promise.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseInitialResolvedIP extends APIResource {
static readonly _key: readonly ['zeroTrust', 'networks', 'subnets', 'initialResolvedIP'];
/**
* Updates the CIDR for the account's default Initial Resolved IP Subnet of the
* given address family. The new CIDR must not conflict with existing private
* routes in the account.
*
* @example
* ```ts
* const subnet =
* await client.zeroTrust.networks.subnets.initialResolvedIP.update(
* 'v4',
* { account_id: '699d98642c564d2e855e9661899b7252' },
* );
* ```
*/
update(addressFamily: 'v4' | 'v6', params: InitialResolvedIPUpdateParams, options?: RequestOptions): APIPromise<WARPAPI.Subnet>;
/**
* Returns the account's default Initial Resolved IP Subnet for the given address
* family.
*
* @example
* ```ts
* const subnet =
* await client.zeroTrust.networks.subnets.initialResolvedIP.get(
* 'v4',
* { account_id: '699d98642c564d2e855e9661899b7252' },
* );
* ```
*/
get(addressFamily: 'v4' | 'v6', params: InitialResolvedIPGetParams, options?: RequestOptions): APIPromise<WARPAPI.Subnet>;
}
export declare class InitialResolvedIP extends BaseInitialResolvedIP {
}
export interface InitialResolvedIPUpdateParams {
/**
* Path param: Cloudflare account ID
*/
account_id: string;
/**
* Body param: An optional description of the subnet.
*/
comment?: string;
/**
* Body param: A user-friendly name for the subnet.
*/
name?: string;
/**
* Body param: The private IPv4 or IPv6 range defining the subnet, in CIDR
* notation.
*/
network?: string;
}
export interface InitialResolvedIPGetParams {
/**
* Cloudflare account ID
*/
account_id: string;
}
export declare namespace InitialResolvedIP {
export { type InitialResolvedIPUpdateParams as InitialResolvedIPUpdateParams, type InitialResolvedIPGetParams as InitialResolvedIPGetParams, };
}
//# sourceMappingURL=initial-resolved-ip.d.ts.map