getDomainExtensions

This data source provides the domain extensions associated with a server load balancer listener.

NOTE: Available in 1.60.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(AliCloud.Slb.GetDomainExtensions.InvokeAsync(new AliCloud.Slb.GetDomainExtensionsArgs
        {
            FrontendPort = "fake-port",
            Ids = 
            {
                "fake-de-id",
            },
            LoadBalancerId = "fake-lb-id",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := slb.GetDomainExtensions(ctx, &slb.GetDomainExtensionsArgs{
			FrontendPort: "fake-port",
			Ids: []string{
				"fake-de-id",
			},
			LoadBalancerId: "fake-lb-id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetDomainExtensionsArgs;
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 foo = SlbFunctions.getDomainExtensions(GetDomainExtensionsArgs.builder()
            .frontendPort("fake-port")
            .ids("fake-de-id")
            .loadBalancerId("fake-lb-id")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.slb.get_domain_extensions(frontend_port="fake-port",
    ids=["fake-de-id"],
    load_balancer_id="fake-lb-id")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = pulumi.output(alicloud.slb.getDomainExtensions({
    frontendPort: Number.parseFloat("fake-port"),
    ids: ["fake-de-id"],
    loadBalancerId: "fake-lb-id",
}));
variables:
  foo:
    Fn::Invoke:
      Function: alicloud:slb:getDomainExtensions
      Arguments:
        frontendPort: fake-port
        ids:
          - fake-de-id
        loadBalancerId: fake-lb-id

Using getDomainExtensions

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 getDomainExtensions(args: GetDomainExtensionsArgs, opts?: InvokeOptions): Promise<GetDomainExtensionsResult>
function getDomainExtensionsOutput(args: GetDomainExtensionsOutputArgs, opts?: InvokeOptions): Output<GetDomainExtensionsResult>
def get_domain_extensions(frontend_port: Optional[int] = None,
                          ids: Optional[Sequence[str]] = None,
                          load_balancer_id: Optional[str] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDomainExtensionsResult
def get_domain_extensions_output(frontend_port: Optional[pulumi.Input[int]] = None,
                          ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          load_balancer_id: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDomainExtensionsResult]
func GetDomainExtensions(ctx *Context, args *GetDomainExtensionsArgs, opts ...InvokeOption) (*GetDomainExtensionsResult, error)
func GetDomainExtensionsOutput(ctx *Context, args *GetDomainExtensionsOutputArgs, opts ...InvokeOption) GetDomainExtensionsResultOutput

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

public static class GetDomainExtensions 
{
    public static Task<GetDomainExtensionsResult> InvokeAsync(GetDomainExtensionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainExtensionsResult> Invoke(GetDomainExtensionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainExtensionsResult> getDomainExtensions(GetDomainExtensionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:slb/getDomainExtensions:getDomainExtensions
  arguments:
    # arguments dictionary

The following arguments are supported:

FrontendPort int

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

LoadBalancerId string

The ID of the SLB instance.

Ids List<string>

IDs of the SLB domain extensions.

OutputFile string
FrontendPort int

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

LoadBalancerId string

The ID of the SLB instance.

Ids []string

IDs of the SLB domain extensions.

OutputFile string
frontendPort Integer

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

loadBalancerId String

The ID of the SLB instance.

ids List<String>

IDs of the SLB domain extensions.

outputFile String
frontendPort number

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

loadBalancerId string

The ID of the SLB instance.

ids string[]

IDs of the SLB domain extensions.

outputFile string
frontend_port int

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

load_balancer_id str

The ID of the SLB instance.

ids Sequence[str]

IDs of the SLB domain extensions.

output_file str
frontendPort Number

The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.

loadBalancerId String

The ID of the SLB instance.

ids List<String>

IDs of the SLB domain extensions.

outputFile String

getDomainExtensions Result

The following output properties are available:

Extensions List<Pulumi.AliCloud.Slb.Outputs.GetDomainExtensionsExtension>

A list of SLB domain extension. Each element contains the following attributes:

FrontendPort int
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
LoadBalancerId string
OutputFile string
Extensions []GetDomainExtensionsExtension

A list of SLB domain extension. Each element contains the following attributes:

FrontendPort int
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
LoadBalancerId string
OutputFile string
extensions List<GetDomainExtensionsExtension>

A list of SLB domain extension. Each element contains the following attributes:

frontendPort Integer
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
loadBalancerId String
outputFile String
extensions GetDomainExtensionsExtension[]

A list of SLB domain extension. Each element contains the following attributes:

frontendPort number
id string

The provider-assigned unique ID for this managed resource.

ids string[]
loadBalancerId string
outputFile string
extensions Sequence[GetDomainExtensionsExtension]

A list of SLB domain extension. Each element contains the following attributes:

frontend_port int
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
load_balancer_id str
output_file str
extensions List<Property Map>

A list of SLB domain extension. Each element contains the following attributes:

frontendPort Number
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
loadBalancerId String
outputFile String

Supporting Types

GetDomainExtensionsExtension

Domain string

The domain name.

Id string

The ID of the domain extension.

ServerCertificateId string

The ID of the certificate used by the domain name.

Domain string

The domain name.

Id string

The ID of the domain extension.

ServerCertificateId string

The ID of the certificate used by the domain name.

domain String

The domain name.

id String

The ID of the domain extension.

serverCertificateId String

The ID of the certificate used by the domain name.

domain string

The domain name.

id string

The ID of the domain extension.

serverCertificateId string

The ID of the certificate used by the domain name.

domain str

The domain name.

id str

The ID of the domain extension.

server_certificate_id str

The ID of the certificate used by the domain name.

domain String

The domain name.

id String

The ID of the domain extension.

serverCertificateId String

The ID of the certificate used by the domain name.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.