scaleway.mongodb.getInstance
Explore with Pulumi AI
Gets information about a MongoDB® Instance.
For further information refer to the Managed Databases for MongoDB® API documentation
Using getInstance
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 getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>def get_instance(instance_id: Optional[str] = None,
                 name: Optional[str] = None,
                 project_id: Optional[str] = None,
                 region: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_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[GetInstanceResult]func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput> Note: This function is named LookupInstance in the Go SDK.
public static class GetInstance 
{
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:mongodb/getInstance:getInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Id string The MongoDB® instance ID.
Note You must specify at least one:
nameorinstance_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:
nameorinstance_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:
nameorinstance_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:
nameorinstance_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:
nameorinstance_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:
nameorinstance_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.
getInstance 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
 - Private
Networks List<Pulumiverse.Scaleway. Mongodb. Outputs. Get Instance Private Network>  - Public
Networks List<Pulumiverse.Scaleway. Mongodb. Outputs. Get 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
 - Private
Networks []GetInstance Private Network  - Public
Networks []GetInstance 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
 - private
Networks List<GetInstance Private Network>  - public
Networks List<GetInstance 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
 - private
Networks GetInstance Private Network[]  - public
Networks GetInstance 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
 - private_
networks Sequence[GetInstance Private Network]  - public_
networks Sequence[GetInstance 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
 - private
Networks List<Property Map> - 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
GetInstancePrivateNetwork   
- Dns
Records List<string> - List of DNS records for your endpoint
 - Id string
 - The ID of the MongoDB® Instance.
 - Ips List<string>
 - List of IP addresses for your endpoint
 - Pn
Id string - The private network ID
 - Port int
 - TCP port of the endpoint
 
- Dns
Records []string - List of DNS records for your endpoint
 - Id string
 - The ID of the MongoDB® Instance.
 - Ips []string
 - List of IP addresses for your endpoint
 - Pn
Id string - The private network ID
 - Port int
 - TCP port of the endpoint
 
- dns
Records List<String> - List of DNS records for your endpoint
 - id String
 - The ID of the MongoDB® Instance.
 - ips List<String>
 - List of IP addresses for your endpoint
 - pn
Id String - The private network ID
 - port Integer
 - TCP port of the endpoint
 
- dns
Records string[] - List of DNS records for your endpoint
 - id string
 - The ID of the MongoDB® Instance.
 - ips string[]
 - List of IP addresses for your endpoint
 - pn
Id string - The private network ID
 - port number
 - TCP port of the endpoint
 
- dns_
records Sequence[str] - List of DNS records for your endpoint
 - id str
 - The ID of the MongoDB® Instance.
 - ips Sequence[str]
 - List of IP addresses for your endpoint
 - pn_
id str - The private network ID
 - port int
 - TCP port of the endpoint
 
- dns
Records List<String> - List of DNS records for your endpoint
 - id String
 - The ID of the MongoDB® Instance.
 - ips List<String>
 - List of IP addresses for your endpoint
 - pn
Id String - The private network ID
 - port Number
 - TCP port of the endpoint
 
GetInstancePublicNetwork   
- 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 
scalewayTerraform Provider.