1. Packages
  2. Scaleway
  3. API Docs
  4. getConfig
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.getConfig

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about the current configuration that Scaleway provider is using.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get configuration information
const main = scaleway.getConfig({});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Get configuration information
main = scaleway.get_config()
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get configuration information
		_, err := scaleway.GetConfig(ctx, map[string]interface{}{}, 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 configuration information
    var main = Scaleway.GetConfig.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
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 configuration information
        final var main = ScalewayFunctions.getConfig();

    }
}
Copy
variables:
  # Get configuration information
  main:
    fn::invoke:
      function: scaleway:getConfig
      arguments: {}
Copy

Using getConfig

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 getConfig(opts?: InvokeOptions): Promise<GetConfigResult>
function getConfigOutput(opts?: InvokeOptions): Output<GetConfigResult>
Copy
def get_config(opts: Optional[InvokeOptions] = None) -> GetConfigResult
def get_config_output(opts: Optional[InvokeOptions] = None) -> Output[GetConfigResult]
Copy
func GetConfig(ctx *Context, opts ...InvokeOption) (*GetConfigResult, error)
func GetConfigOutput(ctx *Context, opts ...InvokeOption) GetConfigResultOutput
Copy

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

public static class GetConfig 
{
    public static Task<GetConfigResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetConfigResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConfigResult> getConfig(InvokeOptions options)
public static Output<GetConfigResult> getConfig(InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:index/getConfig:getConfig
  arguments:
    # arguments dictionary
Copy

getConfig Result

The following output properties are available:

AccessKey string
AccessKeySource string
Id string
The provider-assigned unique ID for this managed resource.
ProjectId string
ProjectIdSource string
Region string
RegionSource string
SecretKey string
SecretKeySource string
Zone string
ZoneSource string
AccessKey string
AccessKeySource string
Id string
The provider-assigned unique ID for this managed resource.
ProjectId string
ProjectIdSource string
Region string
RegionSource string
SecretKey string
SecretKeySource string
Zone string
ZoneSource string
accessKey String
accessKeySource String
id String
The provider-assigned unique ID for this managed resource.
projectId String
projectIdSource String
region String
regionSource String
secretKey String
secretKeySource String
zone String
zoneSource String
accessKey string
accessKeySource string
id string
The provider-assigned unique ID for this managed resource.
projectId string
projectIdSource string
region string
regionSource string
secretKey string
secretKeySource string
zone string
zoneSource string
access_key str
access_key_source str
id str
The provider-assigned unique ID for this managed resource.
project_id str
project_id_source str
region str
region_source str
secret_key str
secret_key_source str
zone str
zone_source str
accessKey String
accessKeySource String
id String
The provider-assigned unique ID for this managed resource.
projectId String
projectIdSource String
region String
regionSource String
secretKey String
secretKeySource String
zone String
zoneSource String

Package Details

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