Viewing docs for selectel 7.5.5
published on Tuesday, Mar 10, 2026 by selectel
published on Tuesday, Mar 10, 2026 by selectel
Viewing docs for selectel 7.5.5
published on Tuesday, Mar 10, 2026 by selectel
published on Tuesday, Mar 10, 2026 by selectel
Provides a list of tokens for Prometheus available in Managed Databases. For more information about tokens for Prometheus, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const token1 = selectel.getDbaasPrometheusMetricTokenV1({
projectId: project1.id,
region: "ru-3",
});
import pulumi
import pulumi_selectel as selectel
token1 = selectel.get_dbaas_prometheus_metric_token_v1(project_id=project1["id"],
region="ru-3")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.LookupDbaasPrometheusMetricTokenV1(ctx, &selectel.LookupDbaasPrometheusMetricTokenV1Args{
ProjectId: project1.Id,
Region: "ru-3",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var token1 = Selectel.GetDbaasPrometheusMetricTokenV1.Invoke(new()
{
ProjectId = project1.Id,
Region = "ru-3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetDbaasPrometheusMetricTokenV1Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var token1 = SelectelFunctions.getDbaasPrometheusMetricTokenV1(GetDbaasPrometheusMetricTokenV1Args.builder()
.projectId(project1.id())
.region("ru-3")
.build());
}
}
variables:
token1:
fn::invoke:
function: selectel:getDbaasPrometheusMetricTokenV1
arguments:
projectId: ${project1.id}
region: ru-3
Using getDbaasPrometheusMetricTokenV1
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 getDbaasPrometheusMetricTokenV1(args: GetDbaasPrometheusMetricTokenV1Args, opts?: InvokeOptions): Promise<GetDbaasPrometheusMetricTokenV1Result>
function getDbaasPrometheusMetricTokenV1Output(args: GetDbaasPrometheusMetricTokenV1OutputArgs, opts?: InvokeOptions): Output<GetDbaasPrometheusMetricTokenV1Result>def get_dbaas_prometheus_metric_token_v1(id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbaasPrometheusMetricTokenV1Result
def get_dbaas_prometheus_metric_token_v1_output(id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbaasPrometheusMetricTokenV1Result]func LookupDbaasPrometheusMetricTokenV1(ctx *Context, args *LookupDbaasPrometheusMetricTokenV1Args, opts ...InvokeOption) (*LookupDbaasPrometheusMetricTokenV1Result, error)
func LookupDbaasPrometheusMetricTokenV1Output(ctx *Context, args *LookupDbaasPrometheusMetricTokenV1OutputArgs, opts ...InvokeOption) LookupDbaasPrometheusMetricTokenV1ResultOutput> Note: This function is named LookupDbaasPrometheusMetricTokenV1 in the Go SDK.
public static class GetDbaasPrometheusMetricTokenV1
{
public static Task<GetDbaasPrometheusMetricTokenV1Result> InvokeAsync(GetDbaasPrometheusMetricTokenV1Args args, InvokeOptions? opts = null)
public static Output<GetDbaasPrometheusMetricTokenV1Result> Invoke(GetDbaasPrometheusMetricTokenV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbaasPrometheusMetricTokenV1Result> getDbaasPrometheusMetricTokenV1(GetDbaasPrometheusMetricTokenV1Args args, InvokeOptions options)
public static Output<GetDbaasPrometheusMetricTokenV1Result> getDbaasPrometheusMetricTokenV1(GetDbaasPrometheusMetricTokenV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDbaasPrometheusMetricTokenV1:getDbaasPrometheusMetricTokenV1
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - Id string
- Unique identifier of the token.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - Id string
- Unique identifier of the token.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - id String
- Unique identifier of the token.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - id string
- Unique identifier of the token.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - id str
- Unique identifier of the token.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - id String
- Unique identifier of the token.
getDbaasPrometheusMetricTokenV1 Result
The following output properties are available:
- Id string
- Unique identifier of the token.
- Project
Id string - Unique identifier of the associated project. Learn more about Projects.
- Prometheus
Metrics List<GetTokens Dbaas Prometheus Metric Token V1Prometheus Metrics Token> - List of tokens for Prometheus.
- Region string
- Id string
- Unique identifier of the token.
- Project
Id string - Unique identifier of the associated project. Learn more about Projects.
- Prometheus
Metrics []GetTokens Dbaas Prometheus Metric Token V1Prometheus Metrics Token - List of tokens for Prometheus.
- Region string
- id String
- Unique identifier of the token.
- project
Id String - Unique identifier of the associated project. Learn more about Projects.
- prometheus
Metrics List<GetTokens Dbaas Prometheus Metric Token V1Prometheus Metrics Token> - List of tokens for Prometheus.
- region String
- id string
- Unique identifier of the token.
- project
Id string - Unique identifier of the associated project. Learn more about Projects.
- prometheus
Metrics GetTokens Dbaas Prometheus Metric Token V1Prometheus Metrics Token[] - List of tokens for Prometheus.
- region string
- id str
- Unique identifier of the token.
- project_
id str - Unique identifier of the associated project. Learn more about Projects.
- prometheus_
metrics_ Sequence[Gettokens Dbaas Prometheus Metric Token V1Prometheus Metrics Token] - List of tokens for Prometheus.
- region str
- id String
- Unique identifier of the token.
- project
Id String - Unique identifier of the associated project. Learn more about Projects.
- prometheus
Metrics List<Property Map>Tokens - List of tokens for Prometheus.
- region String
Supporting Types
GetDbaasPrometheusMetricTokenV1PrometheusMetricsToken
- Created
At string - Time when the token was created.
- Id string
- Unique identifier of the token.
- Name string
- Token name.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Updated
At string - Time when the token was updated.
- Value string
- Token value.
- Created
At string - Time when the token was created.
- Id string
- Unique identifier of the token.
- Name string
- Token name.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Updated
At string - Time when the token was updated.
- Value string
- Token value.
- created
At String - Time when the token was created.
- id String
- Unique identifier of the token.
- name String
- Token name.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- updated
At String - Time when the token was updated.
- value String
- Token value.
- created
At string - Time when the token was created.
- id string
- Unique identifier of the token.
- name string
- Token name.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- updated
At string - Time when the token was updated.
- value string
- Token value.
- created_
at str - Time when the token was created.
- id str
- Unique identifier of the token.
- name str
- Token name.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- updated_
at str - Time when the token was updated.
- value str
- Token value.
- created
At String - Time when the token was created.
- id String
- Unique identifier of the token.
- name String
- Token name.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- updated
At String - Time when the token was updated.
- value String
- Token value.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
Viewing docs for selectel 7.5.5
published on Tuesday, Mar 10, 2026 by selectel
published on Tuesday, Mar 10, 2026 by selectel
