1. Packages
  2. Confluent Provider
  3. API Docs
  4. getNetworkLinkService
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

confluentcloud.getNetworkLinkService

Explore with Pulumi AI

confluentcloud logo
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

    General Availability

    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.ConfluentCloud.Inputs.GetNetworkLinkServiceEnvironment
    Id string
    The ID of the Network Link Service, for example, nls-zyw30.
    Accept Pulumi.ConfluentCloud.Inputs.GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    Environment GetNetworkLinkServiceEnvironment
    Id string
    The ID of the Network Link Service, for example, nls-zyw30.
    Accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    environment GetNetworkLinkServiceEnvironment
    id String
    The ID of the Network Link Service, for example, nls-zyw30.
    accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    environment GetNetworkLinkServiceEnvironment
    id string
    The ID of the Network Link Service, for example, nls-zyw30.
    accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    environment GetNetworkLinkServiceEnvironment
    id str
    The ID of the Network Link Service, for example, nls-zyw30.
    accept GetNetworkLinkServiceAccept
    (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.ConfluentCloud.Outputs.GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    Description string
    (Optional String) The description of the Network Link Service.
    DisplayName string
    (Optional String) The name of the Network Link Service.
    Environment Pulumi.ConfluentCloud.Outputs.GetNetworkLinkServiceEnvironment
    Id string
    (Required String) The ID of the Network that the Network Link Service belongs to, for example, n-abc123.
    Networks List<Pulumi.ConfluentCloud.Outputs.GetNetworkLinkServiceNetwork>
    (Required Configuration Block) supports the following:
    ResourceName string
    (Required String) The Confluent Resource Name of the Network Link Service.
    Accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    Description string
    (Optional String) The description of the Network Link Service.
    DisplayName string
    (Optional String) The name of the Network Link Service.
    Environment GetNetworkLinkServiceEnvironment
    Id string
    (Required String) The ID of the Network that the Network Link Service belongs to, for example, n-abc123.
    Networks []GetNetworkLinkServiceNetwork
    (Required Configuration Block) supports the following:
    ResourceName string
    (Required String) The Confluent Resource Name of the Network Link Service.
    accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    description String
    (Optional String) The description of the Network Link Service.
    displayName String
    (Optional String) The name of the Network Link Service.
    environment GetNetworkLinkServiceEnvironment
    id String
    (Required String) The ID of the Network that the Network Link Service belongs to, for example, n-abc123.
    networks List<GetNetworkLinkServiceNetwork>
    (Required Configuration Block) supports the following:
    resourceName String
    (Required String) The Confluent Resource Name of the Network Link Service.
    accept GetNetworkLinkServiceAccept
    (Optional Configuration Block) supports the following:
    description string
    (Optional String) The description of the Network Link Service.
    displayName string
    (Optional String) The name of the Network Link Service.
    environment GetNetworkLinkServiceEnvironment
    id string
    (Required String) The ID of the Network that the Network Link Service belongs to, for example, n-abc123.
    networks GetNetworkLinkServiceNetwork[]
    (Required Configuration Block) supports the following:
    resourceName string
    (Required String) The Confluent Resource Name of the Network Link Service.
    accept GetNetworkLinkServiceAccept
    (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 GetNetworkLinkServiceEnvironment
    id str
    (Required String) The ID of the Network that the Network Link Service belongs to, for example, n-abc123.
    networks Sequence[GetNetworkLinkServiceNetwork]
    (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.
    displayName 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:
    resourceName 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.
    confluentcloud logo
    Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi