import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to list API Security operations for a Fastly service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const svc1 = new fastly.ServiceVcl("svc1", { * name: "test-svc-1-example", * forceDestroy: true, * backends: [{ * address: "example.com", * name: "tf-test-backend-1", * }], * }); * // Optional: create an operation (so the data source returns something predictable) * const example = new fastly.ApiSecurityOperation("example", { * serviceId: svc1.id, * method: "GET", * domain: "api.example.com", * path: "/v1/things", * description: "Retrieve things", * }); * const ops = fastly.getApiSecurityOperationsOutput({ * serviceId: svc1.id, * methods: ["GET"], * domains: ["api.example.com"], * path: "/v1/things", * }); * export const apiSecurityOperations = ops.apply(ops => ops.operations); * export const apiSecurityOperationsTotal = ops.apply(ops => ops.total); * ``` */ export declare function getApiSecurityOperations(args: GetApiSecurityOperationsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getApiSecurityOperations. */ export interface GetApiSecurityOperationsArgs { /** * Filter by one or more domains (exact match). */ domains?: string[]; /** * Filter by one or more HTTP methods. */ methods?: string[]; /** * Filter by path (exact match). */ path?: string; /** * Service ID. */ serviceId: string; /** * Filter by tag ID. */ tagId?: string; } /** * A collection of values returned by getApiSecurityOperations. */ export interface GetApiSecurityOperationsResult { /** * Filter by one or more domains (exact match). */ readonly domains?: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Filter by one or more HTTP methods. */ readonly methods?: string[]; /** * Matching API Security operations. */ readonly operations: outputs.GetApiSecurityOperationsOperation[]; /** * Filter by path (exact match). */ readonly path?: string; /** * Service ID. */ readonly serviceId: string; /** * Filter by tag ID. */ readonly tagId?: string; /** * Total number of matching results, as returned by the API. */ readonly total: number; } /** * Use this data source to list API Security operations for a Fastly service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const svc1 = new fastly.ServiceVcl("svc1", { * name: "test-svc-1-example", * forceDestroy: true, * backends: [{ * address: "example.com", * name: "tf-test-backend-1", * }], * }); * // Optional: create an operation (so the data source returns something predictable) * const example = new fastly.ApiSecurityOperation("example", { * serviceId: svc1.id, * method: "GET", * domain: "api.example.com", * path: "/v1/things", * description: "Retrieve things", * }); * const ops = fastly.getApiSecurityOperationsOutput({ * serviceId: svc1.id, * methods: ["GET"], * domains: ["api.example.com"], * path: "/v1/things", * }); * export const apiSecurityOperations = ops.apply(ops => ops.operations); * export const apiSecurityOperationsTotal = ops.apply(ops => ops.total); * ``` */ export declare function getApiSecurityOperationsOutput(args: GetApiSecurityOperationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getApiSecurityOperations. */ export interface GetApiSecurityOperationsOutputArgs { /** * Filter by one or more domains (exact match). */ domains?: pulumi.Input[] | undefined>; /** * Filter by one or more HTTP methods. */ methods?: pulumi.Input[] | undefined>; /** * Filter by path (exact match). */ path?: pulumi.Input; /** * Service ID. */ serviceId: pulumi.Input; /** * Filter by tag ID. */ tagId?: pulumi.Input; } //# sourceMappingURL=getApiSecurityOperations.d.ts.map