1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getConnectionsMetricsEndpointScrapeJob
Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse

grafana.getConnectionsMetricsEndpointScrapeJob

Explore with Pulumi AI

grafana logo
Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse
    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 dictionary

    The following arguments are supported:

    Name string
    StackId string
    Name string
    StackId string
    name String
    stackId String
    name string
    stackId string
    name str
    stack_id str
    name String
    stackId String

    getConnectionsMetricsEndpointScrapeJob Result

    The following output properties are available:

    AuthenticationBasicPassword string
    Password for basic authentication.
    AuthenticationBasicUsername string
    Username for basic authentication.
    AuthenticationBearerToken string
    Token for authentication bearer.
    AuthenticationMethod 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
    ScrapeIntervalSeconds int
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    StackId string
    Url string
    The url to scrape metrics.
    AuthenticationBasicPassword string
    Password for basic authentication.
    AuthenticationBasicUsername string
    Username for basic authentication.
    AuthenticationBearerToken string
    Token for authentication bearer.
    AuthenticationMethod 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
    ScrapeIntervalSeconds int
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    StackId string
    Url string
    The url to scrape metrics.
    authenticationBasicPassword String
    Password for basic authentication.
    authenticationBasicUsername String
    Username for basic authentication.
    authenticationBearerToken String
    Token for authentication bearer.
    authenticationMethod 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
    scrapeIntervalSeconds Integer
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    stackId String
    url String
    The url to scrape metrics.
    authenticationBasicPassword string
    Password for basic authentication.
    authenticationBasicUsername string
    Username for basic authentication.
    authenticationBearerToken string
    Token for authentication bearer.
    authenticationMethod 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
    scrapeIntervalSeconds number
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    stackId string
    url string
    The url to scrape metrics.
    authentication_basic_password str
    Password for basic authentication.
    authentication_basic_username str
    Username for basic authentication.
    authentication_bearer_token str
    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_seconds int
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    stack_id str
    url str
    The url to scrape metrics.
    authenticationBasicPassword String
    Password for basic authentication.
    authenticationBasicUsername String
    Username for basic authentication.
    authenticationBearerToken String
    Token for authentication bearer.
    authenticationMethod 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
    scrapeIntervalSeconds Number
    Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
    stackId 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 grafana Terraform Provider.
    grafana logo
    Grafana v0.16.1 published on Saturday, Mar 15, 2025 by pulumiverse