Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse
grafana.getConnectionsMetricsEndpointScrapeJob
Explore with Pulumi AI
Deprecated: grafana.index/getconnectionsmetricsendpointscrapejob.getConnectionsMetricsEndpointScrapeJob has been deprecated in favor of grafana.connections/getmetricsendpointscrapejob.getMetricsEndpointScrapeJob
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
const dsTest = grafana.connections.getMetricsEndpointScrapeJob({
    stackId: "1",
    name: "my-scrape-job",
});
import pulumi
import pulumi_grafana as grafana
ds_test = grafana.connections.get_metrics_endpoint_scrape_job(stack_id="1",
    name="my-scrape-job")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/connections"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connections.LookupMetricsEndpointScrapeJob(ctx, &connections.LookupMetricsEndpointScrapeJobArgs{
			StackId: "1",
			Name:    "my-scrape-job",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
return await Deployment.RunAsync(() => 
{
    var dsTest = Grafana.Connections.GetMetricsEndpointScrapeJob.Invoke(new()
    {
        StackId = "1",
        Name = "my-scrape-job",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.connections.ConnectionsFunctions;
import com.pulumi.grafana.connections.inputs.GetMetricsEndpointScrapeJobArgs;
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 dsTest = ConnectionsFunctions.getMetricsEndpointScrapeJob(GetMetricsEndpointScrapeJobArgs.builder()
            .stackId("1")
            .name("my-scrape-job")
            .build());
    }
}
variables:
  dsTest:
    fn::invoke:
      function: grafana:connections:getMetricsEndpointScrapeJob
      arguments:
        stackId: '1'
        name: my-scrape-job
Using getConnectionsMetricsEndpointScrapeJob
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 getConnectionsMetricsEndpointScrapeJob(args: GetConnectionsMetricsEndpointScrapeJobArgs, opts?: InvokeOptions): Promise<GetConnectionsMetricsEndpointScrapeJobResult>
function getConnectionsMetricsEndpointScrapeJobOutput(args: GetConnectionsMetricsEndpointScrapeJobOutputArgs, opts?: InvokeOptions): Output<GetConnectionsMetricsEndpointScrapeJobResult>def get_connections_metrics_endpoint_scrape_job(name: Optional[str] = None,
                                                stack_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetConnectionsMetricsEndpointScrapeJobResult
def get_connections_metrics_endpoint_scrape_job_output(name: Optional[pulumi.Input[str]] = None,
                                                stack_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetConnectionsMetricsEndpointScrapeJobResult]func LookupConnectionsMetricsEndpointScrapeJob(ctx *Context, args *LookupConnectionsMetricsEndpointScrapeJobArgs, opts ...InvokeOption) (*LookupConnectionsMetricsEndpointScrapeJobResult, error)
func LookupConnectionsMetricsEndpointScrapeJobOutput(ctx *Context, args *LookupConnectionsMetricsEndpointScrapeJobOutputArgs, opts ...InvokeOption) LookupConnectionsMetricsEndpointScrapeJobResultOutput> Note: This function is named LookupConnectionsMetricsEndpointScrapeJob in the Go SDK.
public static class GetConnectionsMetricsEndpointScrapeJob 
{
    public static Task<GetConnectionsMetricsEndpointScrapeJobResult> InvokeAsync(GetConnectionsMetricsEndpointScrapeJobArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionsMetricsEndpointScrapeJobResult> Invoke(GetConnectionsMetricsEndpointScrapeJobInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionsMetricsEndpointScrapeJobResult> getConnectionsMetricsEndpointScrapeJob(GetConnectionsMetricsEndpointScrapeJobArgs args, InvokeOptions options)
public static Output<GetConnectionsMetricsEndpointScrapeJobResult> getConnectionsMetricsEndpointScrapeJob(GetConnectionsMetricsEndpointScrapeJobArgs args, InvokeOptions options)
fn::invoke:
  function: grafana:index/getConnectionsMetricsEndpointScrapeJob:getConnectionsMetricsEndpointScrapeJob
  arguments:
    # arguments dictionaryThe following arguments are supported:
getConnectionsMetricsEndpointScrapeJob Result
The following output properties are available:
- Authentication
Basic stringPassword  - Password for basic authentication.
 - Authentication
Basic stringUsername  - Username for basic authentication.
 - Authentication
Bearer stringToken  - Token for authentication bearer.
 - Authentication
Method string - Method to pass authentication credentials: basic or bearer.
 - Enabled bool
 - Whether the metrics endpoint scrape job is enabled or not.
 - Id string
 - Name string
 - Scrape
Interval intSeconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - Stack
Id string - Url string
 - The url to scrape metrics.
 
- Authentication
Basic stringPassword  - Password for basic authentication.
 - Authentication
Basic stringUsername  - Username for basic authentication.
 - Authentication
Bearer stringToken  - Token for authentication bearer.
 - Authentication
Method string - Method to pass authentication credentials: basic or bearer.
 - Enabled bool
 - Whether the metrics endpoint scrape job is enabled or not.
 - Id string
 - Name string
 - Scrape
Interval intSeconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - Stack
Id string - Url string
 - The url to scrape metrics.
 
- authentication
Basic StringPassword  - Password for basic authentication.
 - authentication
Basic StringUsername  - Username for basic authentication.
 - authentication
Bearer StringToken  - Token for authentication bearer.
 - authentication
Method String - Method to pass authentication credentials: basic or bearer.
 - enabled Boolean
 - Whether the metrics endpoint scrape job is enabled or not.
 - id String
 - name String
 - scrape
Interval IntegerSeconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - stack
Id String - url String
 - The url to scrape metrics.
 
- authentication
Basic stringPassword  - Password for basic authentication.
 - authentication
Basic stringUsername  - Username for basic authentication.
 - authentication
Bearer stringToken  - Token for authentication bearer.
 - authentication
Method string - Method to pass authentication credentials: basic or bearer.
 - enabled boolean
 - Whether the metrics endpoint scrape job is enabled or not.
 - id string
 - name string
 - scrape
Interval numberSeconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - stack
Id string - url string
 - The url to scrape metrics.
 
- authentication_
basic_ strpassword  - Password for basic authentication.
 - authentication_
basic_ strusername  - Username for basic authentication.
 - authentication_
bearer_ strtoken  - Token for authentication bearer.
 - authentication_
method str - Method to pass authentication credentials: basic or bearer.
 - enabled bool
 - Whether the metrics endpoint scrape job is enabled or not.
 - id str
 - name str
 - scrape_
interval_ intseconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - stack_
id str - url str
 - The url to scrape metrics.
 
- authentication
Basic StringPassword  - Password for basic authentication.
 - authentication
Basic StringUsername  - Username for basic authentication.
 - authentication
Bearer StringToken  - Token for authentication bearer.
 - authentication
Method String - Method to pass authentication credentials: basic or bearer.
 - enabled Boolean
 - Whether the metrics endpoint scrape job is enabled or not.
 - id String
 - name String
 - scrape
Interval NumberSeconds  - Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
 - stack
Id String - url String
 - The url to scrape metrics.
 
Package Details
- Repository
 - grafana pulumiverse/pulumi-grafana
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
grafanaTerraform Provider.