1. Packages
  2. Timescale Provider
  3. API Docs
  4. getService
timescale 1.15.0 published on Friday, Feb 21, 2025 by timescale

timescale.getService

Explore with Pulumi AI

timescale 1.15.0 published on Friday, Feb 21, 2025 by timescale

Service data source

Using getService

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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
Copy
def get_service(environment_tag: Optional[str] = None,
                id: Optional[str] = None,
                vpc_id: Optional[float] = None,
                opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(environment_tag: Optional[pulumi.Input[str]] = None,
                id: Optional[pulumi.Input[str]] = None,
                vpc_id: Optional[pulumi.Input[float]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
Copy
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput
Copy

> Note: This function is named LookupService in the Go SDK.

public static class GetService 
{
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: timescale:index/getService:getService
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
Service ID is the unique identifier for this service
EnvironmentTag string
Environment tag for this service.
VpcId double
VPC ID this service is linked to.
Id This property is required. string
Service ID is the unique identifier for this service
EnvironmentTag string
Environment tag for this service.
VpcId float64
VPC ID this service is linked to.
id This property is required. String
Service ID is the unique identifier for this service
environmentTag String
Environment tag for this service.
vpcId Double
VPC ID this service is linked to.
id This property is required. string
Service ID is the unique identifier for this service
environmentTag string
Environment tag for this service.
vpcId number
VPC ID this service is linked to.
id This property is required. str
Service ID is the unique identifier for this service
environment_tag str
Environment tag for this service.
vpc_id float
VPC ID this service is linked to.
id This property is required. String
Service ID is the unique identifier for this service
environmentTag String
Environment tag for this service.
vpcId Number
VPC ID this service is linked to.

getService Result

The following output properties are available:

Created string
Created is the time this service was created.
EnvironmentTag string
Environment tag for this service.
Id string
Service ID is the unique identifier for this service
Name string
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
RegionCode string
Region Code is the physical data center where this service is located.
Resources List<GetServiceResource>
Spec GetServiceSpec
VpcId double
VPC ID this service is linked to.
Created string
Created is the time this service was created.
EnvironmentTag string
Environment tag for this service.
Id string
Service ID is the unique identifier for this service
Name string
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
RegionCode string
Region Code is the physical data center where this service is located.
Resources []GetServiceResource
Spec GetServiceSpec
VpcId float64
VPC ID this service is linked to.
created String
Created is the time this service was created.
environmentTag String
Environment tag for this service.
id String
Service ID is the unique identifier for this service
name String
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
regionCode String
Region Code is the physical data center where this service is located.
resources List<GetServiceResource>
spec GetServiceSpec
vpcId Double
VPC ID this service is linked to.
created string
Created is the time this service was created.
environmentTag string
Environment tag for this service.
id string
Service ID is the unique identifier for this service
name string
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
regionCode string
Region Code is the physical data center where this service is located.
resources GetServiceResource[]
spec GetServiceSpec
vpcId number
VPC ID this service is linked to.
created str
Created is the time this service was created.
environment_tag str
Environment tag for this service.
id str
Service ID is the unique identifier for this service
name str
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
region_code str
Region Code is the physical data center where this service is located.
resources Sequence[GetServiceResource]
spec GetServiceSpec
vpc_id float
VPC ID this service is linked to.
created String
Created is the time this service was created.
environmentTag String
Environment tag for this service.
id String
Service ID is the unique identifier for this service
name String
Service Name is the configurable name assigned to this resource. If none is provided, a default will be generated by the provider.
regionCode String
Region Code is the physical data center where this service is located.
resources List<Property Map>
spec Property Map
vpcId Number
VPC ID this service is linked to.

Supporting Types

GetServiceResource

Id This property is required. string
Spec This property is required. GetServiceResourceSpec
Id This property is required. string
Spec This property is required. GetServiceResourceSpec
id This property is required. String
spec This property is required. GetServiceResourceSpec
id This property is required. string
spec This property is required. GetServiceResourceSpec
id This property is required. str
spec This property is required. GetServiceResourceSpec
id This property is required. String
spec This property is required. Property Map

GetServiceResourceSpec

EnableHaReplica This property is required. bool
EnableHAReplica defines if a replica will be provisioned for this service.
MemoryGb This property is required. double
MemoryGB is the memory allocated for this service.
MilliCpu This property is required. double
MilliCPU is the cpu allocated for this service.
EnableHaReplica This property is required. bool
EnableHAReplica defines if a replica will be provisioned for this service.
MemoryGb This property is required. float64
MemoryGB is the memory allocated for this service.
MilliCpu This property is required. float64
MilliCPU is the cpu allocated for this service.
enableHaReplica This property is required. Boolean
EnableHAReplica defines if a replica will be provisioned for this service.
memoryGb This property is required. Double
MemoryGB is the memory allocated for this service.
milliCpu This property is required. Double
MilliCPU is the cpu allocated for this service.
enableHaReplica This property is required. boolean
EnableHAReplica defines if a replica will be provisioned for this service.
memoryGb This property is required. number
MemoryGB is the memory allocated for this service.
milliCpu This property is required. number
MilliCPU is the cpu allocated for this service.
enable_ha_replica This property is required. bool
EnableHAReplica defines if a replica will be provisioned for this service.
memory_gb This property is required. float
MemoryGB is the memory allocated for this service.
milli_cpu This property is required. float
MilliCPU is the cpu allocated for this service.
enableHaReplica This property is required. Boolean
EnableHAReplica defines if a replica will be provisioned for this service.
memoryGb This property is required. Number
MemoryGB is the memory allocated for this service.
milliCpu This property is required. Number
MilliCPU is the cpu allocated for this service.

GetServiceSpec

Hostname This property is required. string
Hostname is the hostname of this service.
PoolerHostname This property is required. string
Hostname of the pooler of this service.
PoolerPort This property is required. double
Port of the pooler of this service.
Port This property is required. double
Port is the port assigned to this service.
ReplicaHostname This property is required. string
Hostname of the HA-Replica of this service.
ReplicaPort This property is required. double
Port of the HA-Replica of this service.
Username This property is required. string
Username is the Postgres username.
Hostname This property is required. string
Hostname is the hostname of this service.
PoolerHostname This property is required. string
Hostname of the pooler of this service.
PoolerPort This property is required. float64
Port of the pooler of this service.
Port This property is required. float64
Port is the port assigned to this service.
ReplicaHostname This property is required. string
Hostname of the HA-Replica of this service.
ReplicaPort This property is required. float64
Port of the HA-Replica of this service.
Username This property is required. string
Username is the Postgres username.
hostname This property is required. String
Hostname is the hostname of this service.
poolerHostname This property is required. String
Hostname of the pooler of this service.
poolerPort This property is required. Double
Port of the pooler of this service.
port This property is required. Double
Port is the port assigned to this service.
replicaHostname This property is required. String
Hostname of the HA-Replica of this service.
replicaPort This property is required. Double
Port of the HA-Replica of this service.
username This property is required. String
Username is the Postgres username.
hostname This property is required. string
Hostname is the hostname of this service.
poolerHostname This property is required. string
Hostname of the pooler of this service.
poolerPort This property is required. number
Port of the pooler of this service.
port This property is required. number
Port is the port assigned to this service.
replicaHostname This property is required. string
Hostname of the HA-Replica of this service.
replicaPort This property is required. number
Port of the HA-Replica of this service.
username This property is required. string
Username is the Postgres username.
hostname This property is required. str
Hostname is the hostname of this service.
pooler_hostname This property is required. str
Hostname of the pooler of this service.
pooler_port This property is required. float
Port of the pooler of this service.
port This property is required. float
Port is the port assigned to this service.
replica_hostname This property is required. str
Hostname of the HA-Replica of this service.
replica_port This property is required. float
Port of the HA-Replica of this service.
username This property is required. str
Username is the Postgres username.
hostname This property is required. String
Hostname is the hostname of this service.
poolerHostname This property is required. String
Hostname of the pooler of this service.
poolerPort This property is required. Number
Port of the pooler of this service.
port This property is required. Number
Port is the port assigned to this service.
replicaHostname This property is required. String
Hostname of the HA-Replica of this service.
replicaPort This property is required. Number
Port of the HA-Replica of this service.
username This property is required. String
Username is the Postgres username.

Package Details

Repository
timescale timescale/terraform-provider-timescale
License
Notes
This Pulumi package is based on the timescale Terraform Provider.
timescale 1.15.0 published on Friday, Feb 21, 2025 by timescale