import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to list API Security discovered operations for a Fastly service. * * Discovered operations depend on observed traffic and may be empty. * * ## 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", * }], * }); * // Discovered operations depend on traffic and may legitimately be empty. * const discovered = fastly.getApiSecurityDiscoveredOperationsOutput({ * serviceId: svc1.id, * status: "SAVED", * methods: ["GET"], * domains: ["api.example.com"], * path: "/v1/things", * }); * export const apiSecurityDiscoveredOperations = discovered.apply(discovered => discovered.operations); * export const apiSecurityDiscoveredOperationsTotal = discovered.apply(discovered => discovered.total); * ``` */ export declare function getApiSecurityDiscoveredOperations(args: GetApiSecurityDiscoveredOperationsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getApiSecurityDiscoveredOperations. */ export interface GetApiSecurityDiscoveredOperationsArgs { /** * Filter by one or more fully-qualified 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 discovered operations by status. Accepted values are `DISCOVERED`, `SAVED`, and `IGNORED`. */ status?: string; } /** * A collection of values returned by getApiSecurityDiscoveredOperations. */ export interface GetApiSecurityDiscoveredOperationsResult { /** * Filter by one or more fully-qualified 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[]; /** * Discovered operations. */ readonly operations: outputs.GetApiSecurityDiscoveredOperationsOperation[]; /** * Filter by path (exact match). */ readonly path?: string; /** * Service ID. */ readonly serviceId: string; /** * Filter discovered operations by status. Accepted values are `DISCOVERED`, `SAVED`, and `IGNORED`. */ readonly status?: string; /** * Total number of matching results, as returned by the API. */ readonly total: number; } /** * Use this data source to list API Security discovered operations for a Fastly service. * * Discovered operations depend on observed traffic and may be empty. * * ## 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", * }], * }); * // Discovered operations depend on traffic and may legitimately be empty. * const discovered = fastly.getApiSecurityDiscoveredOperationsOutput({ * serviceId: svc1.id, * status: "SAVED", * methods: ["GET"], * domains: ["api.example.com"], * path: "/v1/things", * }); * export const apiSecurityDiscoveredOperations = discovered.apply(discovered => discovered.operations); * export const apiSecurityDiscoveredOperationsTotal = discovered.apply(discovered => discovered.total); * ``` */ export declare function getApiSecurityDiscoveredOperationsOutput(args: GetApiSecurityDiscoveredOperationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getApiSecurityDiscoveredOperations. */ export interface GetApiSecurityDiscoveredOperationsOutputArgs { /** * Filter by one or more fully-qualified 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 discovered operations by status. Accepted values are `DISCOVERED`, `SAVED`, and `IGNORED`. */ status?: pulumi.Input; } //# sourceMappingURL=getApiSecurityDiscoveredOperations.d.ts.map