1. Packages
  2. Scaleway
  3. API Docs
  4. getCockpit
Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse

scaleway.getCockpit

Explore with Pulumi AI

Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse
Deprecated: scaleway.index/getcockpit.getCockpit has been deprecated in favor of scaleway.observability/getinstance.getInstance

Important: The data source scaleway.observability.Cockpit has been deprecated and will no longer be supported. Instead, use resource scaleway.observability.Cockpit.

Note: As of April 2024, Cockpit has introduced regionalization to offer more flexibility and resilience. If you have created customized dashboards with data for your Scaleway resources before April 2024, you will need to update your queries in Grafana, with the new regionalized data sources.

The scaleway.observability.Cockpit data source is used to retrieve information about a Scaleway Cockpit associated with a given Project. This can be the default Project or a specific Project identified by its ID.

Refer to Cockpit’s product documentation and API documentation for more information.

Retrieve a Cockpit

The following commands allow you to:

  • get information on the Cockpit associated with your Scaleway default Project
  • get information on the Cockpit associated with a specific Scaleway Project
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get the default Project's Cockpit
const main = scaleway.observability.getInstance({});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Get the default Project's Cockpit
main = scaleway.observability.get_instance()
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/observability"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get the default Project's Cockpit
		_, err := observability.GetInstance(ctx, &observability.GetInstanceArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    // Get the default Project's Cockpit
    var main = Scaleway.Observability.GetInstance.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.observability.ObservabilityFunctions;
import com.pulumi.scaleway.observability.inputs.GetInstanceArgs;
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) {
        // Get the default Project's Cockpit
        final var main = ObservabilityFunctions.getInstance();

    }
}
Copy
variables:
  # Get the default Project's Cockpit
  main:
    fn::invoke:
      function: scaleway:observability:getInstance
      arguments: {}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get a specific Project's Cockpit
const main = scaleway.observability.getInstance({
    projectId: "11111111-1111-1111-1111-111111111111",
});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Get a specific Project's Cockpit
main = scaleway.observability.get_instance(project_id="11111111-1111-1111-1111-111111111111")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/observability"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get a specific Project's Cockpit
		_, err := observability.GetInstance(ctx, &observability.GetInstanceArgs{
			ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    // Get a specific Project's Cockpit
    var main = Scaleway.Observability.GetInstance.Invoke(new()
    {
        ProjectId = "11111111-1111-1111-1111-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.observability.ObservabilityFunctions;
import com.pulumi.scaleway.observability.inputs.GetInstanceArgs;
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) {
        // Get a specific Project's Cockpit
        final var main = ObservabilityFunctions.getInstance(GetInstanceArgs.builder()
            .projectId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
Copy
variables:
  # Get a specific Project's Cockpit
  main:
    fn::invoke:
      function: scaleway:observability:getInstance
      arguments:
        projectId: 11111111-1111-1111-1111-111111111111
Copy

Using getCockpit

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 getCockpit(args: GetCockpitArgs, opts?: InvokeOptions): Promise<GetCockpitResult>
function getCockpitOutput(args: GetCockpitOutputArgs, opts?: InvokeOptions): Output<GetCockpitResult>
Copy
def get_cockpit(project_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetCockpitResult
def get_cockpit_output(project_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetCockpitResult]
Copy
func LookupCockpit(ctx *Context, args *LookupCockpitArgs, opts ...InvokeOption) (*LookupCockpitResult, error)
func LookupCockpitOutput(ctx *Context, args *LookupCockpitOutputArgs, opts ...InvokeOption) LookupCockpitResultOutput
Copy

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

public static class GetCockpit 
{
    public static Task<GetCockpitResult> InvokeAsync(GetCockpitArgs args, InvokeOptions? opts = null)
    public static Output<GetCockpitResult> Invoke(GetCockpitInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCockpitResult> getCockpit(GetCockpitArgs args, InvokeOptions options)
public static Output<GetCockpitResult> getCockpit(GetCockpitArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:index/getCockpit:getCockpit
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId string
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
ProjectId string
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
projectId String
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
projectId string
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
project_id str
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.
projectId String
Specifies the ID of the Scaleway Project that the Cockpit is associated with. If not specified, it defaults to the Project ID specified in the provider configuration.

getCockpit Result

The following output properties are available:

Endpoints List<Pulumiverse.Scaleway.Outputs.GetCockpitEndpoint>
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
Id string
The provider-assigned unique ID for this managed resource.
Plan string

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

PlanId string
(Deprecated) ID of the current pricing plan
PushUrls List<Pulumiverse.Scaleway.Outputs.GetCockpitPushUrl>
ProjectId string
Endpoints []GetCockpitEndpoint
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
Id string
The provider-assigned unique ID for this managed resource.
Plan string

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

PlanId string
(Deprecated) ID of the current pricing plan
PushUrls []GetCockpitPushUrl
ProjectId string
endpoints List<GetCockpitEndpoint>
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
id String
The provider-assigned unique ID for this managed resource.
plan String

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

planId String
(Deprecated) ID of the current pricing plan
pushUrls List<GetCockpitPushUrl>
projectId String
endpoints GetCockpitEndpoint[]
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
id string
The provider-assigned unique ID for this managed resource.
plan string

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

planId string
(Deprecated) ID of the current pricing plan
pushUrls GetCockpitPushUrl[]
projectId string
endpoints Sequence[GetCockpitEndpoint]
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
id str
The provider-assigned unique ID for this managed resource.
plan str

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

plan_id str
(Deprecated) ID of the current pricing plan
push_urls Sequence[GetCockpitPushUrl]
project_id str
endpoints List<Property Map>
(Deprecated) A list of endpoints related to Cockpit, each with specific URLs:
id String
The provider-assigned unique ID for this managed resource.
plan String

Deprecated: The 'plan' attribute is deprecated and will be removed in a future version. Any changes to this attribute will have no effect.

planId String
(Deprecated) ID of the current pricing plan
pushUrls List<Property Map>
projectId String

Supporting Types

GetCockpitEndpoint

AlertmanagerUrl This property is required. string
(Deprecated) URL for the Alert manager.
GrafanaUrl This property is required. string
(Deprecated) URL for Grafana.
LogsUrl This property is required. string
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
MetricsUrl This property is required. string
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
TracesUrl This property is required. string
The traces URL.
AlertmanagerUrl This property is required. string
(Deprecated) URL for the Alert manager.
GrafanaUrl This property is required. string
(Deprecated) URL for Grafana.
LogsUrl This property is required. string
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
MetricsUrl This property is required. string
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
TracesUrl This property is required. string
The traces URL.
alertmanagerUrl This property is required. String
(Deprecated) URL for the Alert manager.
grafanaUrl This property is required. String
(Deprecated) URL for Grafana.
logsUrl This property is required. String
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
metricsUrl This property is required. String
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
tracesUrl This property is required. String
The traces URL.
alertmanagerUrl This property is required. string
(Deprecated) URL for the Alert manager.
grafanaUrl This property is required. string
(Deprecated) URL for Grafana.
logsUrl This property is required. string
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
metricsUrl This property is required. string
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
tracesUrl This property is required. string
The traces URL.
alertmanager_url This property is required. str
(Deprecated) URL for the Alert manager.
grafana_url This property is required. str
(Deprecated) URL for Grafana.
logs_url This property is required. str
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
metrics_url This property is required. str
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
traces_url This property is required. str
The traces URL.
alertmanagerUrl This property is required. String
(Deprecated) URL for the Alert manager.
grafanaUrl This property is required. String
(Deprecated) URL for Grafana.
logsUrl This property is required. String
(Deprecated) URL for logs to retrieve in the Data sources tab of the Scaleway console.
metricsUrl This property is required. String
(Deprecated) URL for metrics to retrieve in the Data sources tab of the Scaleway console.
tracesUrl This property is required. String
The traces URL.

GetCockpitPushUrl

PushLogsUrl This property is required. string
Push URL for logs (Grafana Loki)
PushMetricsUrl This property is required. string
Push URL for metrics (Grafana Mimir)
PushLogsUrl This property is required. string
Push URL for logs (Grafana Loki)
PushMetricsUrl This property is required. string
Push URL for metrics (Grafana Mimir)
pushLogsUrl This property is required. String
Push URL for logs (Grafana Loki)
pushMetricsUrl This property is required. String
Push URL for metrics (Grafana Mimir)
pushLogsUrl This property is required. string
Push URL for logs (Grafana Loki)
pushMetricsUrl This property is required. string
Push URL for metrics (Grafana Mimir)
push_logs_url This property is required. str
Push URL for logs (Grafana Loki)
push_metrics_url This property is required. str
Push URL for metrics (Grafana Mimir)
pushLogsUrl This property is required. String
Push URL for logs (Grafana Loki)
pushMetricsUrl This property is required. String
Push URL for metrics (Grafana Mimir)

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse