@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
123 lines (122 loc) • 4.03 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about a MongoDB® Instance.
*
* For further information refer to the Managed Databases for MongoDB® [API documentation](https://developers.scaleway.com/en/products/mongodb/api/)
*/
/** @deprecated scaleway.index/getmongodbinstance.getMongoDbInstance has been deprecated in favor of scaleway.mongodb/getinstance.getInstance */
export declare function getMongoDbInstance(args?: GetMongoDbInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetMongoDbInstanceResult>;
/**
* A collection of arguments for invoking getMongoDbInstance.
*/
export interface GetMongoDbInstanceArgs {
/**
* The MongoDB® instance ID.
*
* > **Note** You must specify at least one: `name` or `instanceId`.
*/
instanceId?: string;
/**
* The name of the MongoDB® instance.
*/
name?: string;
/**
* The ID of the project the MongoDB® instance is in. Can be used to filter instances when using `name`.
*/
projectId?: string;
/**
* `region`) The region in which the MongoDB® Instance exists.
*/
region?: string;
}
/**
* A collection of values returned by getMongoDbInstance.
*/
export interface GetMongoDbInstanceResult {
/**
* The date and time the MongoDB® instance was created.
*/
readonly createdAt: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId?: string;
/**
* The name of the MongoDB® instance.
*/
readonly name?: string;
/**
* The number of nodes in the MongoDB® cluster.
*/
readonly nodeNumber: number;
/**
* The type of MongoDB® node.
*/
readonly nodeType: string;
readonly password: string;
readonly privateIps: outputs.GetMongoDbInstancePrivateIp[];
readonly privateNetworks: outputs.GetMongoDbInstancePrivateNetwork[];
/**
* The ID of the project the instance belongs to.
*/
readonly projectId?: string;
/**
* The details of the public network configuration, if applicable.
*/
readonly publicNetworks: outputs.GetMongoDbInstancePublicNetwork[];
readonly region?: string;
readonly settings: {
[key: string]: string;
};
readonly snapshotId: string;
/**
* A list of tags attached to the MongoDB® instance.
*/
readonly tags: string[];
readonly updatedAt: string;
readonly userName: string;
/**
* The version of MongoDB® running on the instance.
*/
readonly version: string;
/**
* The size of the attached volume, in GB.
*/
readonly volumeSizeInGb: number;
/**
* The type of volume attached to the MongoDB® instance.
*/
readonly volumeType: string;
}
/**
* Gets information about a MongoDB® Instance.
*
* For further information refer to the Managed Databases for MongoDB® [API documentation](https://developers.scaleway.com/en/products/mongodb/api/)
*/
/** @deprecated scaleway.index/getmongodbinstance.getMongoDbInstance has been deprecated in favor of scaleway.mongodb/getinstance.getInstance */
export declare function getMongoDbInstanceOutput(args?: GetMongoDbInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMongoDbInstanceResult>;
/**
* A collection of arguments for invoking getMongoDbInstance.
*/
export interface GetMongoDbInstanceOutputArgs {
/**
* The MongoDB® instance ID.
*
* > **Note** You must specify at least one: `name` or `instanceId`.
*/
instanceId?: pulumi.Input<string>;
/**
* The name of the MongoDB® instance.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project the MongoDB® instance is in. Can be used to filter instances when using `name`.
*/
projectId?: pulumi.Input<string>;
/**
* `region`) The region in which the MongoDB® Instance exists.
*/
region?: pulumi.Input<string>;
}