scaleway.databases.getInstance
Explore with Pulumi AI
Gets information about an Database Instance.
For further information refer the Managed Databases for PostgreSQL and MySQL 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:databases/getInstance:getInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InstanceId string
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- Name string
- The name of the RDB instance.
- ProjectId string
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- Region string
- region) The region in which the Database Instance exists.
- InstanceId string
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- Name string
- The name of the RDB instance.
- ProjectId string
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- Region string
- region) The region in which the Database Instance exists.
- instanceId String
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- name String
- The name of the RDB instance.
- projectId String
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- region String
- region) The region in which the Database Instance exists.
- instanceId string
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- name string
- The name of the RDB instance.
- projectId string
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- region string
- region) The region in which the Database Instance exists.
- instance_id str
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- name str
- The name of the RDB instance.
- project_id str
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- region str
- region) The region in which the Database Instance exists.
- instanceId String
- The RDB instance ID. - Note You must specify at least one: - nameand/or- instance_id.
- name String
- The name of the RDB instance.
- projectId String
- The ID of the project the Database Instance is in. Can be used to filter instances when using name.
- region String
- region) The region in which the Database Instance exists.
getInstance Result
The following output properties are available:
- BackupSame boolRegion 
- BackupSchedule intFrequency 
- BackupSchedule intRetention 
- Certificate string
- DisableBackup bool
- EncryptionAt boolRest 
- EndpointIp string
- EndpointPort int
- Engine string
- Id string
- The provider-assigned unique ID for this managed resource.
- InitSettings Dictionary<string, string>
- IsHa boolCluster 
- LoadBalancers List<Pulumiverse.Scaleway. Databases. Outputs. Get Instance Load Balancer> 
- LogsPolicies List<Pulumiverse.Scaleway. Databases. Outputs. Get Instance Logs Policy> 
- NodeType string
- OrganizationId string
- Password string
- PrivateNetworks List<Pulumiverse.Scaleway. Databases. Outputs. Get Instance Private Network> 
- ReadReplicas List<Pulumiverse.Scaleway. Databases. Outputs. Get Instance Read Replica> 
- Settings Dictionary<string, string>
- SnapshotId string
- List<string>
- UserName string
- VolumeSize intIn Gb 
- VolumeType string
- InstanceId string
- Name string
- ProjectId string
- Region string
- BackupSame boolRegion 
- BackupSchedule intFrequency 
- BackupSchedule intRetention 
- Certificate string
- DisableBackup bool
- EncryptionAt boolRest 
- EndpointIp string
- EndpointPort int
- Engine string
- Id string
- The provider-assigned unique ID for this managed resource.
- InitSettings map[string]string
- IsHa boolCluster 
- LoadBalancers []GetInstance Load Balancer 
- LogsPolicies []GetInstance Logs Policy 
- NodeType string
- OrganizationId string
- Password string
- PrivateNetworks []GetInstance Private Network 
- ReadReplicas []GetInstance Read Replica 
- Settings map[string]string
- SnapshotId string
- []string
- UserName string
- VolumeSize intIn Gb 
- VolumeType string
- InstanceId string
- Name string
- ProjectId string
- Region string
- backupSame BooleanRegion 
- backupSchedule IntegerFrequency 
- backupSchedule IntegerRetention 
- certificate String
- disableBackup Boolean
- encryptionAt BooleanRest 
- endpointIp String
- endpointPort Integer
- engine String
- id String
- The provider-assigned unique ID for this managed resource.
- initSettings Map<String,String>
- isHa BooleanCluster 
- loadBalancers List<GetInstance Load Balancer> 
- logsPolicies List<GetInstance Logs Policy> 
- nodeType String
- organizationId String
- password String
- privateNetworks List<GetInstance Private Network> 
- readReplicas List<GetInstance Read Replica> 
- settings Map<String,String>
- snapshotId String
- List<String>
- userName String
- volumeSize IntegerIn Gb 
- volumeType String
- instanceId String
- name String
- projectId String
- region String
- backupSame booleanRegion 
- backupSchedule numberFrequency 
- backupSchedule numberRetention 
- certificate string
- disableBackup boolean
- encryptionAt booleanRest 
- endpointIp string
- endpointPort number
- engine string
- id string
- The provider-assigned unique ID for this managed resource.
- initSettings {[key: string]: string}
- isHa booleanCluster 
- loadBalancers GetInstance Load Balancer[] 
- logsPolicies GetInstance Logs Policy[] 
- nodeType string
- organizationId string
- password string
- privateNetworks GetInstance Private Network[] 
- readReplicas GetInstance Read Replica[] 
- settings {[key: string]: string}
- snapshotId string
- string[]
- userName string
- volumeSize numberIn Gb 
- volumeType string
- instanceId string
- name string
- projectId string
- region string
- backup_same_ boolregion 
- backup_schedule_ intfrequency 
- backup_schedule_ intretention 
- certificate str
- disable_backup bool
- encryption_at_ boolrest 
- endpoint_ip str
- endpoint_port int
- engine str
- id str
- The provider-assigned unique ID for this managed resource.
- init_settings Mapping[str, str]
- is_ha_ boolcluster 
- load_balancers Sequence[GetInstance Load Balancer] 
- logs_policies Sequence[GetInstance Logs Policy] 
- node_type str
- organization_id str
- password str
- private_networks Sequence[GetInstance Private Network] 
- read_replicas Sequence[GetInstance Read Replica] 
- settings Mapping[str, str]
- snapshot_id str
- Sequence[str]
- user_name str
- volume_size_ intin_ gb 
- volume_type str
- instance_id str
- name str
- project_id str
- region str
- backupSame BooleanRegion 
- backupSchedule NumberFrequency 
- backupSchedule NumberRetention 
- certificate String
- disableBackup Boolean
- encryptionAt BooleanRest 
- endpointIp String
- endpointPort Number
- engine String
- id String
- The provider-assigned unique ID for this managed resource.
- initSettings Map<String>
- isHa BooleanCluster 
- loadBalancers List<Property Map>
- logsPolicies List<Property Map>
- nodeType String
- organizationId String
- password String
- privateNetworks List<Property Map>
- readReplicas List<Property Map>
- settings Map<String>
- snapshotId String
- List<String>
- userName String
- volumeSize NumberIn Gb 
- volumeType String
- instanceId String
- name String
- projectId String
- region String
Supporting Types
GetInstanceLoadBalancer   
- EndpointId string
- The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your load balancer service
- Name string
- The name of the RDB instance.
- Port int
- The port of your load balancer service
- EndpointId string
- The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your load balancer service
- Name string
- The name of the RDB instance.
- Port int
- The port of your load balancer service
- endpointId String
- The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your load balancer service
- name String
- The name of the RDB instance.
- port Integer
- The port of your load balancer service
- endpointId string
- The endpoint ID
- hostname string
- The hostname of your endpoint
- ip string
- The IP of your load balancer service
- name string
- The name of the RDB instance.
- port number
- The port of your load balancer service
- endpoint_id str
- The endpoint ID
- hostname str
- The hostname of your endpoint
- ip str
- The IP of your load balancer service
- name str
- The name of the RDB instance.
- port int
- The port of your load balancer service
- endpointId String
- The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your load balancer service
- name String
- The name of the RDB instance.
- port Number
- The port of your load balancer service
GetInstanceLogsPolicy   
- MaxAge intRetention 
- The max age (in days) of remote logs to keep on the Database Instance
- TotalDisk intRetention 
- The max disk size of remote logs to keep on the Database Instance.
- MaxAge intRetention 
- The max age (in days) of remote logs to keep on the Database Instance
- TotalDisk intRetention 
- The max disk size of remote logs to keep on the Database Instance.
- maxAge IntegerRetention 
- The max age (in days) of remote logs to keep on the Database Instance
- totalDisk IntegerRetention 
- The max disk size of remote logs to keep on the Database Instance.
- maxAge numberRetention 
- The max age (in days) of remote logs to keep on the Database Instance
- totalDisk numberRetention 
- The max disk size of remote logs to keep on the Database Instance.
- max_age_ intretention 
- The max age (in days) of remote logs to keep on the Database Instance
- total_disk_ intretention 
- The max disk size of remote logs to keep on the Database Instance.
- maxAge NumberRetention 
- The max age (in days) of remote logs to keep on the Database Instance
- totalDisk NumberRetention 
- The max disk size of remote logs to keep on the Database Instance.
GetInstancePrivateNetwork   
- EnableIpam bool
- Whether or not the private network endpoint should be configured with IPAM
- EndpointId string
- The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your Instance within the private service
- IpNet string
- The IP with the given mask within the private subnet
- Name string
- The name of the RDB instance.
- PnId string
- The private network ID
- Port int
- The port of your private service
- Zone string
- The zone you want to attach the resource to
- EnableIpam bool
- Whether or not the private network endpoint should be configured with IPAM
- EndpointId string
- The endpoint ID
- Hostname string
- The hostname of your endpoint
- Ip string
- The IP of your Instance within the private service
- IpNet string
- The IP with the given mask within the private subnet
- Name string
- The name of the RDB instance.
- PnId string
- The private network ID
- Port int
- The port of your private service
- Zone string
- The zone you want to attach the resource to
- enableIpam Boolean
- Whether or not the private network endpoint should be configured with IPAM
- endpointId String
- The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your Instance within the private service
- ipNet String
- The IP with the given mask within the private subnet
- name String
- The name of the RDB instance.
- pnId String
- The private network ID
- port Integer
- The port of your private service
- zone String
- The zone you want to attach the resource to
- enableIpam boolean
- Whether or not the private network endpoint should be configured with IPAM
- endpointId string
- The endpoint ID
- hostname string
- The hostname of your endpoint
- ip string
- The IP of your Instance within the private service
- ipNet string
- The IP with the given mask within the private subnet
- name string
- The name of the RDB instance.
- pnId string
- The private network ID
- port number
- The port of your private service
- zone string
- The zone you want to attach the resource to
- enable_ipam bool
- Whether or not the private network endpoint should be configured with IPAM
- endpoint_id str
- The endpoint ID
- hostname str
- The hostname of your endpoint
- ip str
- The IP of your Instance within the private service
- ip_net str
- The IP with the given mask within the private subnet
- name str
- The name of the RDB instance.
- pn_id str
- The private network ID
- port int
- The port of your private service
- zone str
- The zone you want to attach the resource to
- enableIpam Boolean
- Whether or not the private network endpoint should be configured with IPAM
- endpointId String
- The endpoint ID
- hostname String
- The hostname of your endpoint
- ip String
- The IP of your Instance within the private service
- ipNet String
- The IP with the given mask within the private subnet
- name String
- The name of the RDB instance.
- pnId String
- The private network ID
- port Number
- The port of your private service
- zone String
- The zone you want to attach the resource to
GetInstanceReadReplica   
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scalewayTerraform Provider.
