Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.slb.getDomainExtensions
Explore with Pulumi AI
This data source provides the domain extensions associated with a server load balancer listener.
NOTE: Available in 1.60.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = alicloud.slb.getDomainExtensions({
ids: ["fake-de-id"],
loadBalancerId: "fake-lb-id",
frontendPort: "fake-port",
});
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.slb.get_domain_extensions(ids=["fake-de-id"],
load_balancer_id="fake-lb-id",
frontend_port="fake-port")
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{
Ids: []string{
"fake-de-id",
},
LoadBalancerId: "fake-lb-id",
FrontendPort: "fake-port",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var foo = AliCloud.Slb.GetDomainExtensions.Invoke(new()
{
Ids = new[]
{
"fake-de-id",
},
LoadBalancerId = "fake-lb-id",
FrontendPort = "fake-port",
});
});
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()
.ids("fake-de-id")
.loadBalancerId("fake-lb-id")
.frontendPort("fake-port")
.build());
}
}
variables:
foo:
fn::invoke:
Function: alicloud:slb:getDomainExtensions
Arguments:
ids:
- fake-de-id
loadBalancerId: fake-lb-id
frontendPort: fake-port
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:
- Frontend
Port int - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- Load
Balancer stringId - The ID of the SLB instance.
- Ids List<string>
- IDs of the SLB domain extensions.
- Output
File string
- Frontend
Port int - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- Load
Balancer stringId - The ID of the SLB instance.
- Ids []string
- IDs of the SLB domain extensions.
- Output
File string
- frontend
Port Integer - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- load
Balancer StringId - The ID of the SLB instance.
- ids List<String>
- IDs of the SLB domain extensions.
- output
File String
- frontend
Port number - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- load
Balancer stringId - The ID of the SLB instance.
- ids string[]
- IDs of the SLB domain extensions.
- output
File string
- frontend_
port int - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- load_
balancer_ strid - The ID of the SLB instance.
- ids Sequence[str]
- IDs of the SLB domain extensions.
- output_
file str
- frontend
Port Number - The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1–65535.
- load
Balancer StringId - The ID of the SLB instance.
- ids List<String>
- IDs of the SLB domain extensions.
- output
File String
getDomainExtensions Result
The following output properties are available:
- Extensions
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Domain Extensions Extension> - A list of SLB domain extension. Each element contains the following attributes:
- Frontend
Port int - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Load
Balancer stringId - Output
File string
- Extensions
[]Get
Domain Extensions Extension - A list of SLB domain extension. Each element contains the following attributes:
- Frontend
Port int - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Load
Balancer stringId - Output
File string
- extensions
List<Get
Domain Extensions Extension> - A list of SLB domain extension. Each element contains the following attributes:
- frontend
Port Integer - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- load
Balancer StringId - output
File String
- extensions
Get
Domain Extensions Extension[] - A list of SLB domain extension. Each element contains the following attributes:
- frontend
Port number - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- load
Balancer stringId - output
File string
- extensions
Sequence[Get
Domain Extensions Extension] - 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_ strid - output_
file str
- extensions List<Property Map>
- A list of SLB domain extension. Each element contains the following attributes:
- frontend
Port Number - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- load
Balancer StringId - output
File String
Supporting Types
GetDomainExtensionsExtension
- Domain string
- The domain name.
- Id string
- The ID of the domain extension.
- Server
Certificate stringId - The ID of the certificate used by the domain name.
- Domain string
- The domain name.
- Id string
- The ID of the domain extension.
- Server
Certificate stringId - The ID of the certificate used by the domain name.
- domain String
- The domain name.
- id String
- The ID of the domain extension.
- server
Certificate StringId - The ID of the certificate used by the domain name.
- domain string
- The domain name.
- id string
- The ID of the domain extension.
- server
Certificate stringId - 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_ strid - The ID of the certificate used by the domain name.
- domain String
- The domain name.
- id String
- The ID of the domain extension.
- server
Certificate StringId - The ID of the certificate used by the domain name.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.