cloudflare
Version:
The official TypeScript library for the Cloudflare API
17 lines • 833 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
export class BulkOperations extends APIResource {
/**
* Gets the current status of an asynchronous operation on a list.
*
* The `status` property can have one of the following values: `pending`,
* `running`, `completed`, or `failed`. If the status is `failed`, the `error`
* property will contain a message describing the error.
*/
get(accountIdentifier, operationId, options) {
return this._client.get(`/accounts/${accountIdentifier}/rules/lists/bulk_operations/${operationId}`, options)._thenUnwrap((obj) => obj.result);
}
}
(function (BulkOperations) {
})(BulkOperations || (BulkOperations = {}));
//# sourceMappingURL=bulk-operations.mjs.map