scaleway.getMongoDbInstance
Explore with Pulumi AI
Gets information about a MongoDB® Instance.
For further information refer to the Managed Databases for MongoDB® API documentation
Using getMongoDbInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMongoDbInstance(args: GetMongoDbInstanceArgs, opts?: InvokeOptions): Promise<GetMongoDbInstanceResult>
function getMongoDbInstanceOutput(args: GetMongoDbInstanceOutputArgs, opts?: InvokeOptions): Output<GetMongoDbInstanceResult>
def get_mongo_db_instance(instance_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongoDbInstanceResult
def get_mongo_db_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMongoDbInstanceResult]
func LookupMongoDbInstance(ctx *Context, args *LookupMongoDbInstanceArgs, opts ...InvokeOption) (*LookupMongoDbInstanceResult, error)
func LookupMongoDbInstanceOutput(ctx *Context, args *LookupMongoDbInstanceOutputArgs, opts ...InvokeOption) LookupMongoDbInstanceResultOutput
> Note: This function is named LookupMongoDbInstance
in the Go SDK.
public static class GetMongoDbInstance
{
public static Task<GetMongoDbInstanceResult> InvokeAsync(GetMongoDbInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetMongoDbInstanceResult> Invoke(GetMongoDbInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMongoDbInstanceResult> getMongoDbInstance(GetMongoDbInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getMongoDbInstance:getMongoDbInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- Name string
- The name of the MongoDB® instance.
- Project
Id string - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - Region string
region
) The region in which the MongoDB® Instance exists.
- Instance
Id string The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- Name string
- The name of the MongoDB® instance.
- Project
Id string - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - Region string
region
) The region in which the MongoDB® Instance exists.
- instance
Id String The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- name String
- The name of the MongoDB® instance.
- project
Id String - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - region String
region
) The region in which the MongoDB® Instance exists.
- instance
Id string The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- name string
- The name of the MongoDB® instance.
- project
Id string - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - region string
region
) The region in which the MongoDB® Instance exists.
- instance_
id str The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- name str
- The name of the MongoDB® instance.
- project_
id str - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - region str
region
) The region in which the MongoDB® Instance exists.
- instance
Id String The MongoDB® instance ID.
Note You must specify at least one:
name
orinstance_id
.- name String
- The name of the MongoDB® instance.
- project
Id String - The ID of the project the MongoDB® instance is in. Can be used to filter instances when using
name
. - region String
region
) The region in which the MongoDB® Instance exists.
getMongoDbInstance Result
The following output properties are available:
- Created
At string - The date and time the MongoDB® instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Number int - The number of nodes in the MongoDB® cluster.
- Node
Type string - The type of MongoDB® node.
- Password string
- Public
Networks List<Pulumiverse.Scaleway. Outputs. Get Mongo Db Instance Public Network> - The details of the public network configuration, if applicable.
- Settings Dictionary<string, string>
- Snapshot
Id string - List<string>
- A list of tags attached to the MongoDB® instance.
- Updated
At string - User
Name string - Version string
- The version of MongoDB® running on the instance.
- Volume
Size intIn Gb - The size of the attached volume, in GB.
- Volume
Type string - The type of volume attached to the MongoDB® instance.
- Instance
Id string - Name string
- The name of the MongoDB® instance.
- Project
Id string - The ID of the project the instance belongs to.
- Region string
- Created
At string - The date and time the MongoDB® instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Number int - The number of nodes in the MongoDB® cluster.
- Node
Type string - The type of MongoDB® node.
- Password string
- Public
Networks []GetMongo Db Instance Public Network - The details of the public network configuration, if applicable.
- Settings map[string]string
- Snapshot
Id string - []string
- A list of tags attached to the MongoDB® instance.
- Updated
At string - User
Name string - Version string
- The version of MongoDB® running on the instance.
- Volume
Size intIn Gb - The size of the attached volume, in GB.
- Volume
Type string - The type of volume attached to the MongoDB® instance.
- Instance
Id string - Name string
- The name of the MongoDB® instance.
- Project
Id string - The ID of the project the instance belongs to.
- Region string
- created
At String - The date and time the MongoDB® instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Number Integer - The number of nodes in the MongoDB® cluster.
- node
Type String - The type of MongoDB® node.
- password String
- public
Networks List<GetMongo Db Instance Public Network> - The details of the public network configuration, if applicable.
- settings Map<String,String>
- snapshot
Id String - List<String>
- A list of tags attached to the MongoDB® instance.
- updated
At String - user
Name String - version String
- The version of MongoDB® running on the instance.
- volume
Size IntegerIn Gb - The size of the attached volume, in GB.
- volume
Type String - The type of volume attached to the MongoDB® instance.
- instance
Id String - name String
- The name of the MongoDB® instance.
- project
Id String - The ID of the project the instance belongs to.
- region String
- created
At string - The date and time the MongoDB® instance was created.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Number number - The number of nodes in the MongoDB® cluster.
- node
Type string - The type of MongoDB® node.
- password string
- public
Networks GetMongo Db Instance Public Network[] - The details of the public network configuration, if applicable.
- settings {[key: string]: string}
- snapshot
Id string - string[]
- A list of tags attached to the MongoDB® instance.
- updated
At string - user
Name string - version string
- The version of MongoDB® running on the instance.
- volume
Size numberIn Gb - The size of the attached volume, in GB.
- volume
Type string - The type of volume attached to the MongoDB® instance.
- instance
Id string - name string
- The name of the MongoDB® instance.
- project
Id string - The ID of the project the instance belongs to.
- region string
- created_
at str - The date and time the MongoDB® instance was created.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
number int - The number of nodes in the MongoDB® cluster.
- node_
type str - The type of MongoDB® node.
- password str
- public_
networks Sequence[GetMongo Db Instance Public Network] - The details of the public network configuration, if applicable.
- settings Mapping[str, str]
- snapshot_
id str - Sequence[str]
- A list of tags attached to the MongoDB® instance.
- updated_
at str - user_
name str - version str
- The version of MongoDB® running on the instance.
- volume_
size_ intin_ gb - The size of the attached volume, in GB.
- volume_
type str - The type of volume attached to the MongoDB® instance.
- instance_
id str - name str
- The name of the MongoDB® instance.
- project_
id str - The ID of the project the instance belongs to.
- region str
- created
At String - The date and time the MongoDB® instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Number Number - The number of nodes in the MongoDB® cluster.
- node
Type String - The type of MongoDB® node.
- password String
- public
Networks List<Property Map> - The details of the public network configuration, if applicable.
- settings Map<String>
- snapshot
Id String - List<String>
- A list of tags attached to the MongoDB® instance.
- updated
At String - user
Name String - version String
- The version of MongoDB® running on the instance.
- volume
Size NumberIn Gb - The size of the attached volume, in GB.
- volume
Type String - The type of volume attached to the MongoDB® instance.
- instance
Id String - name String
- The name of the MongoDB® instance.
- project
Id String - The ID of the project the instance belongs to.
- region String
Supporting Types
GetMongoDbInstancePublicNetwork
- dns_
record str - The DNS record of your endpoint
- id str
- The ID of the MongoDB® Instance.
- port int
- TCP port of the endpoint
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.