import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to retrieve information about a security group in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const sg = ovh.getCloudSecurityGroup({ * serviceName: "", * id: "", * }); * export const securityGroupName = sg.then(sg => sg.name); * ``` */ export declare function getCloudSecurityGroup(args: GetCloudSecurityGroupArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudSecurityGroup. */ export interface GetCloudSecurityGroupArgs { /** * Security group ID. */ id: string; /** * Service name of the resource representing the id of the cloud project. */ serviceName: string; } /** * A collection of values returned by getCloudSecurityGroup. */ export interface GetCloudSecurityGroupResult { /** * Computed hash representing the current target specification value. */ readonly checksum: string; /** * Creation date of the security group. */ readonly createdAt: string; /** * Current state of the security group: */ readonly currentState: outputs.GetCloudSecurityGroupCurrentState; /** * Description of the rule. */ readonly description: string; /** * Rule ID. */ readonly id: string; /** * Location details: */ readonly location: outputs.GetCloudSecurityGroupLocation; /** * Name of the security group. */ readonly name: string; /** * Security group readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: string; /** * List of security group rules. Each rule exports: */ readonly rules: outputs.GetCloudSecurityGroupRule[]; readonly serviceName: string; /** * Last update date of the security group. */ readonly updatedAt: string; } /** * Use this data source to retrieve information about a security group in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const sg = ovh.getCloudSecurityGroup({ * serviceName: "", * id: "", * }); * export const securityGroupName = sg.then(sg => sg.name); * ``` */ export declare function getCloudSecurityGroupOutput(args: GetCloudSecurityGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudSecurityGroup. */ export interface GetCloudSecurityGroupOutputArgs { /** * Security group ID. */ id: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. */ serviceName: pulumi.Input; }