@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
105 lines (104 loc) • 3.86 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about an Database Instance.
*
* For further information refer the Managed Databases for PostgreSQL and MySQL [API documentation](https://developers.scaleway.com/en/products/rdb/api/#database-instance)
*/
/** @deprecated scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance */
export declare function getDatabaseInstance(args?: GetDatabaseInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseInstanceResult>;
/**
* A collection of arguments for invoking getDatabaseInstance.
*/
export interface GetDatabaseInstanceArgs {
/**
* The RDB instance ID.
*
* > **Note** You must specify at least one: `name` and/or `instanceId`.
*/
instanceId?: string;
/**
* The name of the RDB instance.
*/
name?: string;
/**
* The ID of the project the Database Instance is in. Can be used to filter instances when using `name`.
*/
projectId?: string;
/**
* `region`) The region in which the Database Instance exists.
*/
region?: string;
}
/**
* A collection of values returned by getDatabaseInstance.
*/
export interface GetDatabaseInstanceResult {
readonly backupSameRegion: boolean;
readonly backupScheduleFrequency: number;
readonly backupScheduleRetention: number;
readonly certificate: string;
readonly disableBackup: boolean;
readonly encryptionAtRest: boolean;
readonly endpointIp: string;
readonly endpointPort: number;
readonly engine: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly initSettings: {
[key: string]: string;
};
readonly instanceId?: string;
readonly isHaCluster: boolean;
readonly loadBalancers: outputs.GetDatabaseInstanceLoadBalancer[];
readonly logsPolicies: outputs.GetDatabaseInstanceLogsPolicy[];
readonly name?: string;
readonly nodeType: string;
readonly organizationId: string;
readonly password: string;
readonly privateIps: outputs.GetDatabaseInstancePrivateIp[];
readonly privateNetworks: outputs.GetDatabaseInstancePrivateNetwork[];
readonly projectId?: string;
readonly readReplicas: outputs.GetDatabaseInstanceReadReplica[];
readonly region?: string;
readonly settings: {
[key: string]: string;
};
readonly snapshotId: string;
readonly tags: string[];
readonly userName: string;
readonly volumeSizeInGb: number;
readonly volumeType: string;
}
/**
* Gets information about an Database Instance.
*
* For further information refer the Managed Databases for PostgreSQL and MySQL [API documentation](https://developers.scaleway.com/en/products/rdb/api/#database-instance)
*/
/** @deprecated scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance */
export declare function getDatabaseInstanceOutput(args?: GetDatabaseInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseInstanceResult>;
/**
* A collection of arguments for invoking getDatabaseInstance.
*/
export interface GetDatabaseInstanceOutputArgs {
/**
* The RDB instance ID.
*
* > **Note** You must specify at least one: `name` and/or `instanceId`.
*/
instanceId?: pulumi.Input<string>;
/**
* The name of the RDB instance.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project the Database Instance is in. Can be used to filter instances when using `name`.
*/
projectId?: pulumi.Input<string>;
/**
* `region`) The region in which the Database Instance exists.
*/
region?: pulumi.Input<string>;
}