UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

105 lines (104 loc) 3.54 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets information about multiple Load Balancer ACLs. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/acls/) or [API reference](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-acls-get-an-acl). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find acls that share the same frontend ID * const byFrontID = scaleway.loadbalancers.getAcls({ * frontendId: frt01.id, * }); * // Find acls by frontend ID and name * const byFrontIDAndName = scaleway.loadbalancers.getAcls({ * frontendId: frt01.id, * name: "tf-acls-datasource", * }); * ``` */ export declare function getAcls(args: GetAclsArgs, opts?: pulumi.InvokeOptions): Promise<GetAclsResult>; /** * A collection of arguments for invoking getAcls. */ export interface GetAclsArgs { /** * The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed. * > **Important:** LB frontend IDs are zoned, which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111` */ frontendId: string; /** * The ACL name to filter for. ACLs with a matching name are listed. */ name?: string; projectId?: string; /** * `zone`) The zone in which the ACLs exist. */ zone?: string; } /** * A collection of values returned by getAcls. */ export interface GetAclsResult { /** * List of retrieved ACLs */ readonly acls: outputs.loadbalancers.GetAclsAcl[]; readonly frontendId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; readonly organizationId: string; readonly projectId: string; readonly zone: string; } /** * Gets information about multiple Load Balancer ACLs. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/acls/) or [API reference](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-acls-get-an-acl). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find acls that share the same frontend ID * const byFrontID = scaleway.loadbalancers.getAcls({ * frontendId: frt01.id, * }); * // Find acls by frontend ID and name * const byFrontIDAndName = scaleway.loadbalancers.getAcls({ * frontendId: frt01.id, * name: "tf-acls-datasource", * }); * ``` */ export declare function getAclsOutput(args: GetAclsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAclsResult>; /** * A collection of arguments for invoking getAcls. */ export interface GetAclsOutputArgs { /** * The frontend ID this ACL is attached to. ACLs with a matching frontend ID are listed. * > **Important:** LB frontend IDs are zoned, which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111` */ frontendId: pulumi.Input<string>; /** * The ACL name to filter for. ACLs with a matching name are listed. */ name?: pulumi.Input<string>; projectId?: pulumi.Input<string>; /** * `zone`) The zone in which the ACLs exist. */ zone?: pulumi.Input<string>; }