Confluent v2.5.0 published on Monday, Oct 7, 2024 by Pulumi
confluentcloud.getNetworkLinkService
Explore with Pulumi AI
confluentcloud.NetworkLinkService
describes a Network Link Service data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const nls = confluentcloud.getNetworkLinkService({
id: "nls-zyw30",
environment: {
id: "env-1234",
},
});
export const networkLinkService = nls;
import pulumi
import pulumi_confluentcloud as confluentcloud
nls = confluentcloud.get_network_link_service(id="nls-zyw30",
environment={
"id": "env-1234",
})
pulumi.export("networkLinkService", nls)
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
nls, err := confluentcloud.LookupNetworkLinkService(ctx, &confluentcloud.LookupNetworkLinkServiceArgs{
Id: "nls-zyw30",
Environment: confluentcloud.GetNetworkLinkServiceEnvironment{
Id: "env-1234",
},
}, nil)
if err != nil {
return err
}
ctx.Export("networkLinkService", nls)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var nls = ConfluentCloud.GetNetworkLinkService.Invoke(new()
{
Id = "nls-zyw30",
Environment = new ConfluentCloud.Inputs.GetNetworkLinkServiceEnvironmentInputArgs
{
Id = "env-1234",
},
});
return new Dictionary<string, object?>
{
["networkLinkService"] = nls,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetNetworkLinkServiceArgs;
import com.pulumi.confluentcloud.inputs.GetNetworkLinkServiceEnvironmentArgs;
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 nls = ConfluentcloudFunctions.getNetworkLinkService(GetNetworkLinkServiceArgs.builder()
.id("nls-zyw30")
.environment(GetNetworkLinkServiceEnvironmentArgs.builder()
.id("env-1234")
.build())
.build());
ctx.export("networkLinkService", nls.applyValue(getNetworkLinkServiceResult -> getNetworkLinkServiceResult));
}
}
variables:
nls:
fn::invoke:
Function: confluentcloud:getNetworkLinkService
Arguments:
id: nls-zyw30
environment:
id: env-1234
outputs:
networkLinkService: ${nls}
Using getNetworkLinkService
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 getNetworkLinkService(args: GetNetworkLinkServiceArgs, opts?: InvokeOptions): Promise<GetNetworkLinkServiceResult>
function getNetworkLinkServiceOutput(args: GetNetworkLinkServiceOutputArgs, opts?: InvokeOptions): Output<GetNetworkLinkServiceResult>
def get_network_link_service(accept: Optional[GetNetworkLinkServiceAccept] = None,
environment: Optional[GetNetworkLinkServiceEnvironment] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkLinkServiceResult
def get_network_link_service_output(accept: Optional[pulumi.Input[GetNetworkLinkServiceAcceptArgs]] = None,
environment: Optional[pulumi.Input[GetNetworkLinkServiceEnvironmentArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkLinkServiceResult]
func LookupNetworkLinkService(ctx *Context, args *LookupNetworkLinkServiceArgs, opts ...InvokeOption) (*LookupNetworkLinkServiceResult, error)
func LookupNetworkLinkServiceOutput(ctx *Context, args *LookupNetworkLinkServiceOutputArgs, opts ...InvokeOption) LookupNetworkLinkServiceResultOutput
> Note: This function is named LookupNetworkLinkService
in the Go SDK.
public static class GetNetworkLinkService
{
public static Task<GetNetworkLinkServiceResult> InvokeAsync(GetNetworkLinkServiceArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkLinkServiceResult> Invoke(GetNetworkLinkServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkLinkServiceResult> getNetworkLinkService(GetNetworkLinkServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: confluentcloud:index/getNetworkLinkService:getNetworkLinkService
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Network Link Service Environment - Id string
- The ID of the Network Link Service, for example,
nls-zyw30
. - Accept
Pulumi.
Confluent Cloud. Inputs. Get Network Link Service Accept - (Optional Configuration Block) supports the following:
- Environment
Get
Network Link Service Environment - Id string
- The ID of the Network Link Service, for example,
nls-zyw30
. - Accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- environment
Get
Network Link Service Environment - id String
- The ID of the Network Link Service, for example,
nls-zyw30
. - accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- environment
Get
Network Link Service Environment - id string
- The ID of the Network Link Service, for example,
nls-zyw30
. - accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- environment
Get
Network Link Service Environment - id str
- The ID of the Network Link Service, for example,
nls-zyw30
. - accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- environment Property Map
- id String
- The ID of the Network Link Service, for example,
nls-zyw30
. - accept Property Map
- (Optional Configuration Block) supports the following:
getNetworkLinkService Result
The following output properties are available:
- Accept
Pulumi.
Confluent Cloud. Outputs. Get Network Link Service Accept - (Optional Configuration Block) supports the following:
- Description string
- (Optional String) The description of the Network Link Service.
- Display
Name string - (Optional String) The name of the Network Link Service.
- Environment
Pulumi.
Confluent Cloud. Outputs. Get Network Link Service Environment - Id string
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - Networks
List<Pulumi.
Confluent Cloud. Outputs. Get Network Link Service Network> - (Required Configuration Block) supports the following:
- Resource
Name string - (Required String) The Confluent Resource Name of the Network Link Service.
- Accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- Description string
- (Optional String) The description of the Network Link Service.
- Display
Name string - (Optional String) The name of the Network Link Service.
- Environment
Get
Network Link Service Environment - Id string
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - Networks
[]Get
Network Link Service Network - (Required Configuration Block) supports the following:
- Resource
Name string - (Required String) The Confluent Resource Name of the Network Link Service.
- accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- description String
- (Optional String) The description of the Network Link Service.
- display
Name String - (Optional String) The name of the Network Link Service.
- environment
Get
Network Link Service Environment - id String
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - networks
List<Get
Network Link Service Network> - (Required Configuration Block) supports the following:
- resource
Name String - (Required String) The Confluent Resource Name of the Network Link Service.
- accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- description string
- (Optional String) The description of the Network Link Service.
- display
Name string - (Optional String) The name of the Network Link Service.
- environment
Get
Network Link Service Environment - id string
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - networks
Get
Network Link Service Network[] - (Required Configuration Block) supports the following:
- resource
Name string - (Required String) The Confluent Resource Name of the Network Link Service.
- accept
Get
Network Link Service Accept - (Optional Configuration Block) supports the following:
- description str
- (Optional String) The description of the Network Link Service.
- display_
name str - (Optional String) The name of the Network Link Service.
- environment
Get
Network Link Service Environment - id str
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - networks
Sequence[Get
Network Link Service Network] - (Required Configuration Block) supports the following:
- resource_
name str - (Required String) The Confluent Resource Name of the Network Link Service.
- accept Property Map
- (Optional Configuration Block) supports the following:
- description String
- (Optional String) The description of the Network Link Service.
- display
Name String - (Optional String) The name of the Network Link Service.
- environment Property Map
- id String
- (Required String) The ID of the Network that the Network Link Service belongs to, for example,
n-abc123
. - networks List<Property Map>
- (Required Configuration Block) supports the following:
- resource
Name String - (Required String) The Confluent Resource Name of the Network Link Service.
Supporting Types
GetNetworkLinkServiceAccept
- Environments List<string>
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- Networks List<string>
- (Optional List of Strings) List of network ids from which connections can be accepted.
- Environments []string
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- Networks []string
- (Optional List of Strings) List of network ids from which connections can be accepted.
- environments List<String>
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- networks List<String>
- (Optional List of Strings) List of network ids from which connections can be accepted.
- environments string[]
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- networks string[]
- (Optional List of Strings) List of network ids from which connections can be accepted.
- environments Sequence[str]
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- networks Sequence[str]
- (Optional List of Strings) List of network ids from which connections can be accepted.
- environments List<String>
- (Optional List of Strings) List of environments ids from which connections can be accepted. All networks within the list of environment will be allowed.
- networks List<String>
- (Optional List of Strings) List of network ids from which connections can be accepted.
GetNetworkLinkServiceEnvironment
- Id string
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
- Id string
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
- id String
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
- id string
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
- id str
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
- id String
- The ID of the Environment that the Network Link Service belongs to, for example,
env-1234
.
GetNetworkLinkServiceNetwork
- Id string
- The ID of the Network Link Service, for example,
nls-zyw30
.
- Id string
- The ID of the Network Link Service, for example,
nls-zyw30
.
- id String
- The ID of the Network Link Service, for example,
nls-zyw30
.
- id string
- The ID of the Network Link Service, for example,
nls-zyw30
.
- id str
- The ID of the Network Link Service, for example,
nls-zyw30
.
- id String
- The ID of the Network Link Service, for example,
nls-zyw30
.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.