@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
243 lines • 9.56 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## # f5bigip.GtmMonitorPostgresql Resource
*
* Provides a BIG-IP GTM (Global Traffic Manager) PostgreSQL Monitor resource. This resource allows you to configure and manage GTM PostgreSQL health monitors on a BIG-IP system.
*
* ## Description
*
* A GTM PostgreSQL monitor verifies PostgreSQL database services by connecting to a database and optionally executing a query and evaluating the response. PostgreSQL monitors support database-specific configuration including database name, username, password, and instance count.
*
* ## Example Usage
*
* ### Basic PostgreSQL Monitor
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const example = new f5bigip.GtmMonitorPostgresql("example", {name: "/Common/my_postgresql_monitor"});
* ```
*
* ### PostgreSQL Monitor with Authentication
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const advanced = new f5bigip.GtmMonitorPostgresql("advanced", {
* name: "/Common/my_postgresql_monitor",
* defaultsFrom: "/Common/postgresql",
* destination: "*:5432",
* interval: 10,
* timeout: 60,
* probeTimeout: 3,
* ignoreDownResponse: "disabled",
* database: "mydb",
* username: "monitor_user",
* password: "monitor_pass",
* receive: "SELECT",
* debug: "no",
* });
* ```
*
* ## Import
*
* GTM PostgreSQL Monitor resources can be imported using the full path name:
*
* ```sh
* $ pulumi import f5bigip:index/gtmMonitorPostgresql:GtmMonitorPostgresql example /Common/my_postgresql_monitor
* ```
*/
export declare class GtmMonitorPostgresql extends pulumi.CustomResource {
/**
* Get an existing GtmMonitorPostgresql resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GtmMonitorPostgresqlState, opts?: pulumi.CustomResourceOptions): GtmMonitorPostgresql;
/**
* Returns true if the given object is an instance of GtmMonitorPostgresql. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is GtmMonitorPostgresql;
/**
* Specifies the database in which the user is created
*/
readonly database: pulumi.Output<string | undefined>;
/**
* Specifies whether the monitor sends error messages and additional information to a log file created and labeled specifically for this monitor
*/
readonly debug: pulumi.Output<string | undefined>;
/**
* Inherit properties from this monitor
*/
readonly defaultsFrom: pulumi.Output<string | undefined>;
/**
* Specifies the IP address and service port of the resource that is the destination of this monitor. Format: ip:port. Default is "*:*"
*/
readonly destination: pulumi.Output<string | undefined>;
/**
* Specifies whether the monitor ignores a down response from the system it is monitoring
*/
readonly ignoreDownResponse: pulumi.Output<string | undefined>;
/**
* Specifies the number of instances for which the system keeps a connection open
*/
readonly instanceCount: pulumi.Output<string>;
/**
* Specifies, in seconds, the frequency at which the system issues the monitor check
*/
readonly interval: pulumi.Output<number | undefined>;
/**
* Name of the GTM PostgreSQL monitor
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the password if the monitored target requires authentication
*/
readonly password: pulumi.Output<string | undefined>;
/**
* Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system
*/
readonly probeTimeout: pulumi.Output<number | undefined>;
/**
* Specifies the text string that the monitor looks for in the returned resource
*/
readonly receive: pulumi.Output<string | undefined>;
/**
* Specifies the number of seconds the target has in which to respond to the monitor request
*/
readonly timeout: pulumi.Output<number | undefined>;
/**
* Specifies the user name if the monitored target requires authentication
*/
readonly username: pulumi.Output<string | undefined>;
/**
* Create a GtmMonitorPostgresql resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: GtmMonitorPostgresqlArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GtmMonitorPostgresql resources.
*/
export interface GtmMonitorPostgresqlState {
/**
* Specifies the database in which the user is created
*/
database?: pulumi.Input<string | undefined>;
/**
* Specifies whether the monitor sends error messages and additional information to a log file created and labeled specifically for this monitor
*/
debug?: pulumi.Input<string | undefined>;
/**
* Inherit properties from this monitor
*/
defaultsFrom?: pulumi.Input<string | undefined>;
/**
* Specifies the IP address and service port of the resource that is the destination of this monitor. Format: ip:port. Default is "*:*"
*/
destination?: pulumi.Input<string | undefined>;
/**
* Specifies whether the monitor ignores a down response from the system it is monitoring
*/
ignoreDownResponse?: pulumi.Input<string | undefined>;
/**
* Specifies the number of instances for which the system keeps a connection open
*/
instanceCount?: pulumi.Input<string | undefined>;
/**
* Specifies, in seconds, the frequency at which the system issues the monitor check
*/
interval?: pulumi.Input<number | undefined>;
/**
* Name of the GTM PostgreSQL monitor
*/
name?: pulumi.Input<string | undefined>;
/**
* Specifies the password if the monitored target requires authentication
*/
password?: pulumi.Input<string | undefined>;
/**
* Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system
*/
probeTimeout?: pulumi.Input<number | undefined>;
/**
* Specifies the text string that the monitor looks for in the returned resource
*/
receive?: pulumi.Input<string | undefined>;
/**
* Specifies the number of seconds the target has in which to respond to the monitor request
*/
timeout?: pulumi.Input<number | undefined>;
/**
* Specifies the user name if the monitored target requires authentication
*/
username?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a GtmMonitorPostgresql resource.
*/
export interface GtmMonitorPostgresqlArgs {
/**
* Specifies the database in which the user is created
*/
database?: pulumi.Input<string | undefined>;
/**
* Specifies whether the monitor sends error messages and additional information to a log file created and labeled specifically for this monitor
*/
debug?: pulumi.Input<string | undefined>;
/**
* Inherit properties from this monitor
*/
defaultsFrom?: pulumi.Input<string | undefined>;
/**
* Specifies the IP address and service port of the resource that is the destination of this monitor. Format: ip:port. Default is "*:*"
*/
destination?: pulumi.Input<string | undefined>;
/**
* Specifies whether the monitor ignores a down response from the system it is monitoring
*/
ignoreDownResponse?: pulumi.Input<string | undefined>;
/**
* Specifies the number of instances for which the system keeps a connection open
*/
instanceCount?: pulumi.Input<string | undefined>;
/**
* Specifies, in seconds, the frequency at which the system issues the monitor check
*/
interval?: pulumi.Input<number | undefined>;
/**
* Name of the GTM PostgreSQL monitor
*/
name: pulumi.Input<string>;
/**
* Specifies the password if the monitored target requires authentication
*/
password?: pulumi.Input<string | undefined>;
/**
* Specifies the number of seconds after which the BIG-IP system times out the probe request to the BIG-IP system
*/
probeTimeout?: pulumi.Input<number | undefined>;
/**
* Specifies the text string that the monitor looks for in the returned resource
*/
receive?: pulumi.Input<string | undefined>;
/**
* Specifies the number of seconds the target has in which to respond to the monitor request
*/
timeout?: pulumi.Input<number | undefined>;
/**
* Specifies the user name if the monitored target requires authentication
*/
username?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=gtmMonitorPostgresql.d.ts.map