cloudflare
Version:
The official TypeScript library for the Cloudflare API
43 lines • 1.5 kB
TypeScript
import { APIResource } from "../../../../core/resource.js";
import * as RoutesAPI from "./routes.js";
import { APIPromise } from "../../../../core/api-promise.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseIPs extends APIResource {
static readonly _key: readonly ['zeroTrust', 'networks', 'routes', 'ips'];
/**
* Fetches routes that contain the given IP address.
*
* @example
* ```ts
* const teamnet =
* await client.zeroTrust.networks.routes.ips.get(
* '10.1.0.137',
* { account_id: '699d98642c564d2e855e9661899b7252' },
* );
* ```
*/
get(ip: string, params: IPGetParams, options?: RequestOptions): APIPromise<RoutesAPI.Teamnet>;
}
export declare class IPs extends BaseIPs {
}
export interface IPGetParams {
/**
* Path param: Cloudflare account ID
*/
account_id: string;
/**
* Query param: When the virtual_network_id parameter is not provided the request
* filter will default search routes that are in the default virtual network for
* the account. If this parameter is set to false, the search will include routes
* that do not have a virtual network.
*/
default_virtual_network_fallback?: boolean;
/**
* Query param: UUID of the virtual network.
*/
virtual_network_id?: string;
}
export declare namespace IPs {
export { type IPGetParams as IPGetParams };
}
//# sourceMappingURL=ips.d.ts.map