1. Packages
  2. Scaleway
  3. API Docs
  4. getCockpit
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

scaleway.getCockpit

Explore with Pulumi AI

scaleway logo
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

    Gets information about the Scaleway Cockpit.

    For more information consult the documentation.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Scaleway.GetCockpit.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupCockpit(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetCockpitArgs;
    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 main = ScalewayFunctions.getCockpit();
    
        }
    }
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.get_cockpit()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const main = scaleway.getCockpit({});
    
    variables:
      main:
        fn::invoke:
          Function: scaleway:getCockpit
          Arguments: {}
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Scaleway.GetCockpit.Invoke(new()
        {
            ProjectId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupCockpit(ctx, &scaleway.LookupCockpitArgs{
    			ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetCockpitArgs;
    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 main = ScalewayFunctions.getCockpit(GetCockpitArgs.builder()
                .projectId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.get_cockpit(project_id="11111111-1111-1111-1111-111111111111")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const main = scaleway.getCockpit({
        projectId: "11111111-1111-1111-1111-111111111111",
    });
    
    variables:
      main:
        fn::invoke:
          Function: scaleway:getCockpit
          Arguments:
            projectId: 11111111-1111-1111-1111-111111111111
    

    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>
    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]
    func LookupCockpit(ctx *Context, args *LookupCockpitArgs, opts ...InvokeOption) (*LookupCockpitResult, error)
    func LookupCockpitOutput(ctx *Context, args *LookupCockpitOutputArgs, opts ...InvokeOption) LookupCockpitResultOutput

    > 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)
    }
    public static CompletableFuture<GetCockpitResult> getCockpit(GetCockpitArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getCockpit:getCockpit
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string

    project_id) The ID of the project the cockpit is associated with.

    ProjectId string

    project_id) The ID of the project the cockpit is associated with.

    projectId String

    project_id) The ID of the project the cockpit is associated with.

    projectId string

    project_id) The ID of the project the cockpit is associated with.

    project_id str

    project_id) The ID of the project the cockpit is associated with.

    projectId String

    project_id) The ID of the project the cockpit is associated with.

    getCockpit Result

    The following output properties are available:

    Endpoints List<Lbrlabs.PulumiPackage.Scaleway.Outputs.GetCockpitEndpoint>

    Endpoints

    Id string

    The provider-assigned unique ID for this managed resource.

    PlanId string

    The ID of the current plan

    ProjectId string
    Endpoints []GetCockpitEndpoint

    Endpoints

    Id string

    The provider-assigned unique ID for this managed resource.

    PlanId string

    The ID of the current plan

    ProjectId string
    endpoints List<GetCockpitEndpoint>

    Endpoints

    id String

    The provider-assigned unique ID for this managed resource.

    planId String

    The ID of the current plan

    projectId String
    endpoints GetCockpitEndpoint[]

    Endpoints

    id string

    The provider-assigned unique ID for this managed resource.

    planId string

    The ID of the current plan

    projectId string
    endpoints Sequence[GetCockpitEndpoint]

    Endpoints

    id str

    The provider-assigned unique ID for this managed resource.

    plan_id str

    The ID of the current plan

    project_id str
    endpoints List<Property Map>

    Endpoints

    id String

    The provider-assigned unique ID for this managed resource.

    planId String

    The ID of the current plan

    projectId String

    Supporting Types

    GetCockpitEndpoint

    AlertmanagerUrl string

    The alertmanager URL

    GrafanaUrl string

    The grafana URL

    LogsUrl string

    The logs URL

    MetricsUrl string

    The metrics URL

    AlertmanagerUrl string

    The alertmanager URL

    GrafanaUrl string

    The grafana URL

    LogsUrl string

    The logs URL

    MetricsUrl string

    The metrics URL

    alertmanagerUrl String

    The alertmanager URL

    grafanaUrl String

    The grafana URL

    logsUrl String

    The logs URL

    metricsUrl String

    The metrics URL

    alertmanagerUrl string

    The alertmanager URL

    grafanaUrl string

    The grafana URL

    logsUrl string

    The logs URL

    metricsUrl string

    The metrics URL

    alertmanager_url str

    The alertmanager URL

    grafana_url str

    The grafana URL

    logs_url str

    The logs URL

    metrics_url str

    The metrics URL

    alertmanagerUrl String

    The alertmanager URL

    grafanaUrl String

    The grafana URL

    logsUrl String

    The logs URL

    metricsUrl String

    The metrics URL

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs