Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
scaleway.observability.getSources
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
Gets information about multiple Cockpit data sources.
Example Usage
List all sources in a project
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const all = scaleway.observability.getSources({
projectId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
all = scaleway.observability.get_sources(project_id="11111111-1111-1111-1111-111111111111")
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 {
_, err := observability.GetSources(ctx, &observability.GetSourcesArgs{
ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var all = Scaleway.Observability.GetSources.Invoke(new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
});
});
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.GetSourcesArgs;
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 all = ObservabilityFunctions.getSources(GetSourcesArgs.builder()
.projectId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
all:
fn::invoke:
function: scaleway:observability:getSources
arguments:
projectId: 11111111-1111-1111-1111-111111111111
Filter sources by type
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const metrics = scaleway.observability.getSources({
projectId: "11111111-1111-1111-1111-111111111111",
type: "metrics",
});
import pulumi
import pulumi_scaleway as scaleway
metrics = scaleway.observability.get_sources(project_id="11111111-1111-1111-1111-111111111111",
type="metrics")
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 {
_, err := observability.GetSources(ctx, &observability.GetSourcesArgs{
ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
Type: pulumi.StringRef("metrics"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var metrics = Scaleway.Observability.GetSources.Invoke(new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
Type = "metrics",
});
});
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.GetSourcesArgs;
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 metrics = ObservabilityFunctions.getSources(GetSourcesArgs.builder()
.projectId("11111111-1111-1111-1111-111111111111")
.type("metrics")
.build());
}
}
variables:
metrics:
fn::invoke:
function: scaleway:observability:getSources
arguments:
projectId: 11111111-1111-1111-1111-111111111111
type: metrics
Filter sources by name
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const mySources = scaleway.observability.getSources({
projectId: "11111111-1111-1111-1111-111111111111",
name: "my-data-source",
});
import pulumi
import pulumi_scaleway as scaleway
my_sources = scaleway.observability.get_sources(project_id="11111111-1111-1111-1111-111111111111",
name="my-data-source")
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 {
_, err := observability.GetSources(ctx, &observability.GetSourcesArgs{
ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
Name: pulumi.StringRef("my-data-source"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var mySources = Scaleway.Observability.GetSources.Invoke(new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
Name = "my-data-source",
});
});
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.GetSourcesArgs;
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 mySources = ObservabilityFunctions.getSources(GetSourcesArgs.builder()
.projectId("11111111-1111-1111-1111-111111111111")
.name("my-data-source")
.build());
}
}
variables:
mySources:
fn::invoke:
function: scaleway:observability:getSources
arguments:
projectId: 11111111-1111-1111-1111-111111111111
name: my-data-source
Filter sources by origin
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const external = scaleway.observability.getSources({
projectId: "11111111-1111-1111-1111-111111111111",
origin: "external",
});
import pulumi
import pulumi_scaleway as scaleway
external = scaleway.observability.get_sources(project_id="11111111-1111-1111-1111-111111111111",
origin="external")
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 {
_, err := observability.GetSources(ctx, &observability.GetSourcesArgs{
ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
Origin: pulumi.StringRef("external"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var external = Scaleway.Observability.GetSources.Invoke(new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
Origin = "external",
});
});
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.GetSourcesArgs;
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 external = ObservabilityFunctions.getSources(GetSourcesArgs.builder()
.projectId("11111111-1111-1111-1111-111111111111")
.origin("external")
.build());
}
}
variables:
external:
fn::invoke:
function: scaleway:observability:getSources
arguments:
projectId: 11111111-1111-1111-1111-111111111111
origin: external
List default Scaleway sources
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const _default = scaleway.observability.getSources({
projectId: "11111111-1111-1111-1111-111111111111",
origin: "scaleway",
});
import pulumi
import pulumi_scaleway as scaleway
default = scaleway.observability.get_sources(project_id="11111111-1111-1111-1111-111111111111",
origin="scaleway")
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 {
_, err := observability.GetSources(ctx, &observability.GetSourcesArgs{
ProjectId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
Origin: pulumi.StringRef("scaleway"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var @default = Scaleway.Observability.GetSources.Invoke(new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
Origin = "scaleway",
});
});
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.GetSourcesArgs;
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 default = ObservabilityFunctions.getSources(GetSourcesArgs.builder()
.projectId("11111111-1111-1111-1111-111111111111")
.origin("scaleway")
.build());
}
}
variables:
default:
fn::invoke:
function: scaleway:observability:getSources
arguments:
projectId: 11111111-1111-1111-1111-111111111111
origin: scaleway
Using getSources
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 getSources(args: GetSourcesArgs, opts?: InvokeOptions): Promise<GetSourcesResult>
function getSourcesOutput(args: GetSourcesOutputArgs, opts?: InvokeOptions): Output<GetSourcesResult>def get_sources(name: Optional[str] = None,
origin: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSourcesResult
def get_sources_output(name: Optional[pulumi.Input[str]] = None,
origin: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSourcesResult]func GetSources(ctx *Context, args *GetSourcesArgs, opts ...InvokeOption) (*GetSourcesResult, error)
func GetSourcesOutput(ctx *Context, args *GetSourcesOutputArgs, opts ...InvokeOption) GetSourcesResultOutput> Note: This function is named GetSources in the Go SDK.
public static class GetSources
{
public static Task<GetSourcesResult> InvokeAsync(GetSourcesArgs args, InvokeOptions? opts = null)
public static Output<GetSourcesResult> Invoke(GetSourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSourcesResult> getSources(GetSourcesArgs args, InvokeOptions options)
public static Output<GetSourcesResult> getSources(GetSourcesArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:observability/getSources:getSources
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Filter sources by name.
- Origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - Project
Id string - The project ID the cockpit sources are associated with.
- Region string
- The region in which the cockpit sources are located.
- Type string
- Filter sources by type. Possible values are:
metrics,logs,traces.
- Name string
- Filter sources by name.
- Origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - Project
Id string - The project ID the cockpit sources are associated with.
- Region string
- The region in which the cockpit sources are located.
- Type string
- Filter sources by type. Possible values are:
metrics,logs,traces.
- name String
- Filter sources by name.
- origin String
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id String - The project ID the cockpit sources are associated with.
- region String
- The region in which the cockpit sources are located.
- type String
- Filter sources by type. Possible values are:
metrics,logs,traces.
- name string
- Filter sources by name.
- origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id string - The project ID the cockpit sources are associated with.
- region string
- The region in which the cockpit sources are located.
- type string
- Filter sources by type. Possible values are:
metrics,logs,traces.
- name str
- Filter sources by name.
- origin str
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project_
id str - The project ID the cockpit sources are associated with.
- region str
- The region in which the cockpit sources are located.
- type str
- Filter sources by type. Possible values are:
metrics,logs,traces.
- name String
- Filter sources by name.
- origin String
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id String - The project ID the cockpit sources are associated with.
- region String
- The region in which the cockpit sources are located.
- type String
- Filter sources by type. Possible values are:
metrics,logs,traces.
getSources Result
The following output properties are available:
- Created
At string - The date and time of the creation of the cockpit datasource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- Retention
Days int - The number of days to retain data.
- Sources
List<Pulumiverse.
Scaleway. Observability. Outputs. Get Sources Source> - List of cockpit sources.
- Synchronized
With boolGrafana - Indicates whether the data source is synchronized with Grafana.
- Updated
At string - The date and time of the last update of the cockpit datasource.
- Url string
- The URL of the datasource.
- Name string
- Name of the datasource.
- Origin string
- The origin of the datasource.
- Project
Id string - The project ID of the data source.
- Region string
- The region of the data source.
- Type string
- The type of the datasource.
- Created
At string - The date and time of the creation of the cockpit datasource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- Retention
Days int - The number of days to retain data.
- Sources
[]Get
Sources Source - List of cockpit sources.
- Synchronized
With boolGrafana - Indicates whether the data source is synchronized with Grafana.
- Updated
At string - The date and time of the last update of the cockpit datasource.
- Url string
- The URL of the datasource.
- Name string
- Name of the datasource.
- Origin string
- The origin of the datasource.
- Project
Id string - The project ID of the data source.
- Region string
- The region of the data source.
- Type string
- The type of the datasource.
- created
At String - The date and time of the creation of the cockpit datasource.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Url String - The URL endpoint used for pushing data to the cockpit data source.
- retention
Days Integer - The number of days to retain data.
- sources
List<Get
Sources Source> - List of cockpit sources.
- synchronized
With BooleanGrafana - Indicates whether the data source is synchronized with Grafana.
- updated
At String - The date and time of the last update of the cockpit datasource.
- url String
- The URL of the datasource.
- name String
- Name of the datasource.
- origin String
- The origin of the datasource.
- project
Id String - The project ID of the data source.
- region String
- The region of the data source.
- type String
- The type of the datasource.
- created
At string - The date and time of the creation of the cockpit datasource.
- id string
- The provider-assigned unique ID for this managed resource.
- push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- retention
Days number - The number of days to retain data.
- sources
Get
Sources Source[] - List of cockpit sources.
- synchronized
With booleanGrafana - Indicates whether the data source is synchronized with Grafana.
- updated
At string - The date and time of the last update of the cockpit datasource.
- url string
- The URL of the datasource.
- name string
- Name of the datasource.
- origin string
- The origin of the datasource.
- project
Id string - The project ID of the data source.
- region string
- The region of the data source.
- type string
- The type of the datasource.
- created_
at str - The date and time of the creation of the cockpit datasource.
- id str
- The provider-assigned unique ID for this managed resource.
- push_
url str - The URL endpoint used for pushing data to the cockpit data source.
- retention_
days int - The number of days to retain data.
- sources
Sequence[Get
Sources Source] - List of cockpit sources.
- synchronized_
with_ boolgrafana - Indicates whether the data source is synchronized with Grafana.
- updated_
at str - The date and time of the last update of the cockpit datasource.
- url str
- The URL of the datasource.
- name str
- Name of the datasource.
- origin str
- The origin of the datasource.
- project_
id str - The project ID of the data source.
- region str
- The region of the data source.
- type str
- The type of the datasource.
- created
At String - The date and time of the creation of the cockpit datasource.
- id String
- The provider-assigned unique ID for this managed resource.
- push
Url String - The URL endpoint used for pushing data to the cockpit data source.
- retention
Days Number - The number of days to retain data.
- sources List<Property Map>
- List of cockpit sources.
- synchronized
With BooleanGrafana - Indicates whether the data source is synchronized with Grafana.
- updated
At String - The date and time of the last update of the cockpit datasource.
- url String
- The URL of the datasource.
- name String
- Name of the datasource.
- origin String
- The origin of the datasource.
- project
Id String - The project ID of the data source.
- region String
- The region of the data source.
- type String
- The type of the datasource.
Supporting Types
GetSourcesSource
- Created
At string - The date and time of the creation of the cockpit datasource.
- Id string
- The ID of the data source.
- Name string
- Filter sources by name.
- Origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - Project
Id string - The project ID the cockpit sources are associated with.
- Push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- Region string
- The region in which the cockpit sources are located.
- Retention
Days int - The number of days to retain data.
- Synchronized
With boolGrafana - Indicates whether the data source is synchronized with Grafana.
- Type string
- Filter sources by type. Possible values are:
metrics,logs,traces. - Updated
At string - The date and time of the last update of the cockpit datasource.
- Url string
- The URL of the datasource.
- Created
At string - The date and time of the creation of the cockpit datasource.
- Id string
- The ID of the data source.
- Name string
- Filter sources by name.
- Origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - Project
Id string - The project ID the cockpit sources are associated with.
- Push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- Region string
- The region in which the cockpit sources are located.
- Retention
Days int - The number of days to retain data.
- Synchronized
With boolGrafana - Indicates whether the data source is synchronized with Grafana.
- Type string
- Filter sources by type. Possible values are:
metrics,logs,traces. - Updated
At string - The date and time of the last update of the cockpit datasource.
- Url string
- The URL of the datasource.
- created
At String - The date and time of the creation of the cockpit datasource.
- id String
- The ID of the data source.
- name String
- Filter sources by name.
- origin String
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id String - The project ID the cockpit sources are associated with.
- push
Url String - The URL endpoint used for pushing data to the cockpit data source.
- region String
- The region in which the cockpit sources are located.
- retention
Days Integer - The number of days to retain data.
- synchronized
With BooleanGrafana - Indicates whether the data source is synchronized with Grafana.
- type String
- Filter sources by type. Possible values are:
metrics,logs,traces. - updated
At String - The date and time of the last update of the cockpit datasource.
- url String
- The URL of the datasource.
- created
At string - The date and time of the creation of the cockpit datasource.
- id string
- The ID of the data source.
- name string
- Filter sources by name.
- origin string
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id string - The project ID the cockpit sources are associated with.
- push
Url string - The URL endpoint used for pushing data to the cockpit data source.
- region string
- The region in which the cockpit sources are located.
- retention
Days number - The number of days to retain data.
- synchronized
With booleanGrafana - Indicates whether the data source is synchronized with Grafana.
- type string
- Filter sources by type. Possible values are:
metrics,logs,traces. - updated
At string - The date and time of the last update of the cockpit datasource.
- url string
- The URL of the datasource.
- created_
at str - The date and time of the creation of the cockpit datasource.
- id str
- The ID of the data source.
- name str
- Filter sources by name.
- origin str
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project_
id str - The project ID the cockpit sources are associated with.
- push_
url str - The URL endpoint used for pushing data to the cockpit data source.
- region str
- The region in which the cockpit sources are located.
- retention_
days int - The number of days to retain data.
- synchronized_
with_ boolgrafana - Indicates whether the data source is synchronized with Grafana.
- type str
- Filter sources by type. Possible values are:
metrics,logs,traces. - updated_
at str - The date and time of the last update of the cockpit datasource.
- url str
- The URL of the datasource.
- created
At String - The date and time of the creation of the cockpit datasource.
- id String
- The ID of the data source.
- name String
- Filter sources by name.
- origin String
- Filter sources by origin. Possible values are:
scaleway,external,custom. - project
Id String - The project ID the cockpit sources are associated with.
- push
Url String - The URL endpoint used for pushing data to the cockpit data source.
- region String
- The region in which the cockpit sources are located.
- retention
Days Number - The number of days to retain data.
- synchronized
With BooleanGrafana - Indicates whether the data source is synchronized with Grafana.
- type String
- Filter sources by type. Possible values are:
metrics,logs,traces. - updated
At String - The date and time of the last update of the cockpit datasource.
- url String
- The URL of the datasource.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
