published on Tuesday, Apr 14, 2026 by pulumiverse
published on Tuesday, Apr 14, 2026 by pulumiverse
Gets information about a VPC connector.
A VPC connector enables network connectivity between two VPCs, allowing resources in separate VPCs to communicate with each other.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Retrieve a VPC connector by its ID
const byId = scaleway.network.getConnector({
connectorId: "fr-par/11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Retrieve a VPC connector by its ID
by_id = scaleway.network.get_connector(connector_id="fr-par/11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Retrieve a VPC connector by its ID
_, err := network.LookupConnector(ctx, &network.LookupConnectorArgs{
ConnectorId: pulumi.StringRef("fr-par/11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Retrieve a VPC connector by its ID
var byId = Scaleway.Network.GetConnector.Invoke(new()
{
ConnectorId = "fr-par/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.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetConnectorArgs;
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) {
// Retrieve a VPC connector by its ID
final var byId = NetworkFunctions.getConnector(GetConnectorArgs.builder()
.connectorId("fr-par/11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Retrieve a VPC connector by its ID
byId:
fn::invoke:
function: scaleway:network:getConnector
arguments:
connectorId: fr-par/11111111-1111-1111-1111-111111111111
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Retrieve a VPC connector by name
const byName = scaleway.network.getConnector({
name: "my-vpc-connector",
});
import pulumi
import pulumi_scaleway as scaleway
# Retrieve a VPC connector by name
by_name = scaleway.network.get_connector(name="my-vpc-connector")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Retrieve a VPC connector by name
_, err := network.LookupConnector(ctx, &network.LookupConnectorArgs{
Name: pulumi.StringRef("my-vpc-connector"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Retrieve a VPC connector by name
var byName = Scaleway.Network.GetConnector.Invoke(new()
{
Name = "my-vpc-connector",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetConnectorArgs;
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) {
// Retrieve a VPC connector by name
final var byName = NetworkFunctions.getConnector(GetConnectorArgs.builder()
.name("my-vpc-connector")
.build());
}
}
variables:
# Retrieve a VPC connector by name
byName:
fn::invoke:
function: scaleway:network:getConnector
arguments:
name: my-vpc-connector
Using getConnector
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 getConnector(args: GetConnectorArgs, opts?: InvokeOptions): Promise<GetConnectorResult>
function getConnectorOutput(args: GetConnectorOutputArgs, opts?: InvokeOptions): Output<GetConnectorResult>def get_connector(connector_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_vpc_id: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectorResult
def get_connector_output(connector_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
target_vpc_id: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectorResult]func LookupConnector(ctx *Context, args *LookupConnectorArgs, opts ...InvokeOption) (*LookupConnectorResult, error)
func LookupConnectorOutput(ctx *Context, args *LookupConnectorOutputArgs, opts ...InvokeOption) LookupConnectorResultOutput> Note: This function is named LookupConnector in the Go SDK.
public static class GetConnector
{
public static Task<GetConnectorResult> InvokeAsync(GetConnectorArgs args, InvokeOptions? opts = null)
public static Output<GetConnectorResult> Invoke(GetConnectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
public static Output<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:network/getConnector:getConnector
arguments:
# arguments dictionaryThe following arguments are supported:
- Connector
Id string The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- Name string
- The name to filter for.
- Project
Id string - The ID of the Project to filter for.
- Region string
region) The region in which the connector exists.- List<string>
- List of tags to filter for.
- Target
Vpc stringId - The target VPC ID to filter for.
- Vpc
Id string - The source VPC ID to filter for.
- Connector
Id string The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- Name string
- The name to filter for.
- Project
Id string - The ID of the Project to filter for.
- Region string
region) The region in which the connector exists.- []string
- List of tags to filter for.
- Target
Vpc stringId - The target VPC ID to filter for.
- Vpc
Id string - The source VPC ID to filter for.
- connector
Id String The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- name String
- The name to filter for.
- project
Id String - The ID of the Project to filter for.
- region String
region) The region in which the connector exists.- List<String>
- List of tags to filter for.
- target
Vpc StringId - The target VPC ID to filter for.
- vpc
Id String - The source VPC ID to filter for.
- connector
Id string The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- name string
- The name to filter for.
- project
Id string - The ID of the Project to filter for.
- region string
region) The region in which the connector exists.- string[]
- List of tags to filter for.
- target
Vpc stringId - The target VPC ID to filter for.
- vpc
Id string - The source VPC ID to filter for.
- connector_
id str The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- name str
- The name to filter for.
- project_
id str - The ID of the Project to filter for.
- region str
region) The region in which the connector exists.- Sequence[str]
- List of tags to filter for.
- target_
vpc_ strid - The target VPC ID to filter for.
- vpc_
id str - The source VPC ID to filter for.
- connector
Id String The ID of the VPC connector. Conflicts with all filter arguments below.
The following arguments can be used to look up a VPC connector via the list API. They all conflict with
connectorId:- name String
- The name to filter for.
- project
Id String - The ID of the Project to filter for.
- region String
region) The region in which the connector exists.- List<String>
- List of tags to filter for.
- target
Vpc StringId - The target VPC ID to filter for.
- vpc
Id String - The source VPC ID to filter for.
getConnector Result
The following output properties are available:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Status string
- Updated
At string - Connector
Id string - Name string
- Project
Id string - Region string
- List<string>
- Target
Vpc stringId - Vpc
Id string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Status string
- Updated
At string - Connector
Id string - Name string
- Project
Id string - Region string
- []string
- Target
Vpc stringId - Vpc
Id string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - status String
- updated
At String - connector
Id String - name String
- project
Id String - region String
- List<String>
- target
Vpc StringId - vpc
Id String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - status string
- updated
At string - connector
Id string - name string
- project
Id string - region string
- string[]
- target
Vpc stringId - vpc
Id string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - status str
- updated_
at str - connector_
id str - name str
- project_
id str - region str
- Sequence[str]
- target_
vpc_ strid - vpc_
id str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - status String
- updated
At String - connector
Id String - name String
- project
Id String - region String
- List<String>
- target
Vpc StringId - vpc
Id String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Tuesday, Apr 14, 2026 by pulumiverse
