cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.62 kB
text/typescript
import { APIResource } from "../../../core/resource.mjs";
import { PagePromise, SinglePage } from "../../../core/pagination.mjs";
import { RequestOptions } from "../../../internal/request-options.mjs";
export declare class BaseReferences extends APIResource {
static readonly _key: readonly ['loadBalancers', 'monitorGroups', 'references'];
/**
* Get the list of resources that reference the provided monitor group.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const referenceGetResponse of client.loadBalancers.monitorGroups.references.get(
* 'f1aba936b94213e5b8dca0c0dbf1f9cc',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
* ```
*/
get(monitorGroupID: string, params: ReferenceGetParams, options?: RequestOptions): PagePromise<ReferenceGetResponsesSinglePage, ReferenceGetResponse>;
}
export declare class References extends BaseReferences {
}
export type ReferenceGetResponsesSinglePage = SinglePage<ReferenceGetResponse>;
export interface ReferenceGetResponse {
reference_type?: '*' | 'referral' | 'referrer';
resource_id?: string;
resource_name?: string;
resource_type?: string;
}
export interface ReferenceGetParams {
/**
* Identifier.
*/
account_id: string;
}
export declare namespace References {
export { type ReferenceGetResponse as ReferenceGetResponse, type ReferenceGetResponsesSinglePage as ReferenceGetResponsesSinglePage, type ReferenceGetParams as ReferenceGetParams, };
}
//# sourceMappingURL=references.d.mts.map