Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getCustomDomains

This data source provides the Function Compute custom domains of the current Alibaba Cloud user.

NOTE: Available in 1.98.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var fcDomains = Output.Create(AliCloud.FC.GetCustomDomains.InvokeAsync(new AliCloud.FC.GetCustomDomainsArgs
        {
            NameRegex = "sample_fc_custom_domain",
        }));
        this.FirstFcCustomDomainName = data.Alicloud_fc_custom_domains.Fc_domains_ds.Domains[0].Domain_name;
    }

    [Output("firstFcCustomDomainName")]
    public Output<string> FirstFcCustomDomainName { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fc.GetCustomDomains(ctx, &fc.GetCustomDomainsArgs{
			NameRegex: pulumi.StringRef("sample_fc_custom_domain"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstFcCustomDomainName", data.Alicloud_fc_custom_domains.Fc_domains_ds.Domains[0].Domain_name)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FcFunctions;
import com.pulumi.alicloud.fc.inputs.GetCustomDomainsArgs;
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 fcDomains = FcFunctions.getCustomDomains(GetCustomDomainsArgs.builder()
            .nameRegex("sample_fc_custom_domain")
            .build());

        ctx.export("firstFcCustomDomainName", data.alicloud_fc_custom_domains().fc_domains_ds().domains()[0].domain_name());
    }
}
import pulumi
import pulumi_alicloud as alicloud

fc_domains = alicloud.fc.get_custom_domains(name_regex="sample_fc_custom_domain")
pulumi.export("firstFcCustomDomainName", data["alicloud_fc_custom_domains"]["fc_domains_ds"]["domains"][0]["domain_name"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const fcDomains = alicloud.fc.getCustomDomains({
    nameRegex: "sample_fc_custom_domain",
});
export const firstFcCustomDomainName = data.alicloud_fc_custom_domains.fc_domains_ds.domains[0].domain_name;
variables:
  fcDomains:
    Fn::Invoke:
      Function: alicloud:fc:getCustomDomains
      Arguments:
        nameRegex: sample_fc_custom_domain
outputs:
  firstFcCustomDomainName: ${data.alicloud_fc_custom_domains.fc_domains_ds.domains[0].domain_name}

Using getCustomDomains

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 getCustomDomains(args: GetCustomDomainsArgs, opts?: InvokeOptions): Promise<GetCustomDomainsResult>
function getCustomDomainsOutput(args: GetCustomDomainsOutputArgs, opts?: InvokeOptions): Output<GetCustomDomainsResult>
def get_custom_domains(ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetCustomDomainsResult
def get_custom_domains_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetCustomDomainsResult]
func GetCustomDomains(ctx *Context, args *GetCustomDomainsArgs, opts ...InvokeOption) (*GetCustomDomainsResult, error)
func GetCustomDomainsOutput(ctx *Context, args *GetCustomDomainsOutputArgs, opts ...InvokeOption) GetCustomDomainsResultOutput

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

public static class GetCustomDomains 
{
    public static Task<GetCustomDomainsResult> InvokeAsync(GetCustomDomainsArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomDomainsResult> Invoke(GetCustomDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCustomDomainsResult> getCustomDomains(GetCustomDomainsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:fc/getCustomDomains:getCustomDomains
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Ids List<string>

A list of functions ids.

NameRegex string

A regex string to filter results by Function Compute custom domain name.

OutputFile string
Ids []string

A list of functions ids.

NameRegex string

A regex string to filter results by Function Compute custom domain name.

OutputFile string
ids List<String>

A list of functions ids.

nameRegex String

A regex string to filter results by Function Compute custom domain name.

outputFile String
ids string[]

A list of functions ids.

nameRegex string

A regex string to filter results by Function Compute custom domain name.

outputFile string
ids Sequence[str]

A list of functions ids.

name_regex str

A regex string to filter results by Function Compute custom domain name.

output_file str
ids List<String>

A list of functions ids.

nameRegex String

A regex string to filter results by Function Compute custom domain name.

outputFile String

getCustomDomains Result

The following output properties are available:

Domains List<Pulumi.AliCloud.FC.Outputs.GetCustomDomainsDomain>

A list of custom domains, including the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of custom domain ids.

Names List<string>

A list of custom domain names.

NameRegex string
OutputFile string
Domains []GetCustomDomainsDomain

A list of custom domains, including the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of custom domain ids.

Names []string

A list of custom domain names.

NameRegex string
OutputFile string
domains List<GetCustomDomainsDomain>

A list of custom domains, including the following attributes:

id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of custom domain ids.

names List<String>

A list of custom domain names.

nameRegex String
outputFile String
domains GetCustomDomainsDomain[]

A list of custom domains, including the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of custom domain ids.

names string[]

A list of custom domain names.

nameRegex string
outputFile string
domains Sequence[GetCustomDomainsDomain]

A list of custom domains, including the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of custom domain ids.

names Sequence[str]

A list of custom domain names.

name_regex str
output_file str
domains List<Property Map>

A list of custom domains, including the following attributes:

id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of custom domain ids.

names List<String>

A list of custom domain names.

nameRegex String
outputFile String

Supporting Types

GetCustomDomainsDomain

AccountId string

The account id.

ApiVersion string

The API version of the Function Compute service.

CertConfig Pulumi.AliCloud.FC.Inputs.GetCustomDomainsDomainCertConfig

The configuration of HTTPS certificate.

CreatedTime string

The created time of the custom domain.

DomainName string

The custom domain name.

Id string

The custom domain id, same as domain name.

LastModifiedTime string

The last modified time of the custom domain.

Protocol string

The custom domain protocol.

RouteConfigs List<Pulumi.AliCloud.FC.Inputs.GetCustomDomainsDomainRouteConfig>

The configuration of domain route, mapping the path and Function Compute function.

AccountId string

The account id.

ApiVersion string

The API version of the Function Compute service.

CertConfig GetCustomDomainsDomainCertConfig

The configuration of HTTPS certificate.

CreatedTime string

The created time of the custom domain.

DomainName string

The custom domain name.

Id string

The custom domain id, same as domain name.

LastModifiedTime string

The last modified time of the custom domain.

Protocol string

The custom domain protocol.

RouteConfigs []GetCustomDomainsDomainRouteConfig

The configuration of domain route, mapping the path and Function Compute function.

accountId String

The account id.

apiVersion String

The API version of the Function Compute service.

certConfig GetCustomDomainsDomainCertConfig

The configuration of HTTPS certificate.

createdTime String

The created time of the custom domain.

domainName String

The custom domain name.

id String

The custom domain id, same as domain name.

lastModifiedTime String

The last modified time of the custom domain.

protocol String

The custom domain protocol.

routeConfigs List<GetCustomDomainsDomainRouteConfig>

The configuration of domain route, mapping the path and Function Compute function.

accountId string

The account id.

apiVersion string

The API version of the Function Compute service.

certConfig GetCustomDomainsDomainCertConfig

The configuration of HTTPS certificate.

createdTime string

The created time of the custom domain.

domainName string

The custom domain name.

id string

The custom domain id, same as domain name.

lastModifiedTime string

The last modified time of the custom domain.

protocol string

The custom domain protocol.

routeConfigs GetCustomDomainsDomainRouteConfig[]

The configuration of domain route, mapping the path and Function Compute function.

account_id str

The account id.

api_version str

The API version of the Function Compute service.

cert_config GetCustomDomainsDomainCertConfig

The configuration of HTTPS certificate.

created_time str

The created time of the custom domain.

domain_name str

The custom domain name.

id str

The custom domain id, same as domain name.

last_modified_time str

The last modified time of the custom domain.

protocol str

The custom domain protocol.

route_configs Sequence[GetCustomDomainsDomainRouteConfig]

The configuration of domain route, mapping the path and Function Compute function.

accountId String

The account id.

apiVersion String

The API version of the Function Compute service.

certConfig Property Map

The configuration of HTTPS certificate.

createdTime String

The created time of the custom domain.

domainName String

The custom domain name.

id String

The custom domain id, same as domain name.

lastModifiedTime String

The last modified time of the custom domain.

protocol String

The custom domain protocol.

routeConfigs List<Property Map>

The configuration of domain route, mapping the path and Function Compute function.

GetCustomDomainsDomainCertConfig

CertName string

The name of the certificate.

Certificate string

Certificate data of the HTTPS certificates, follow the 'pem'.

CertName string

The name of the certificate.

Certificate string

Certificate data of the HTTPS certificates, follow the 'pem'.

certName String

The name of the certificate.

certificate String

Certificate data of the HTTPS certificates, follow the 'pem'.

certName string

The name of the certificate.

certificate string

Certificate data of the HTTPS certificates, follow the 'pem'.

cert_name str

The name of the certificate.

certificate str

Certificate data of the HTTPS certificates, follow the 'pem'.

certName String

The name of the certificate.

certificate String

Certificate data of the HTTPS certificates, follow the 'pem'.

GetCustomDomainsDomainRouteConfig

FunctionName string

The name of the Function Compute function that requests are routed to.

Methods List<string>

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

Path string

The path that requests are routed from.

Qualifier string

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

ServiceName string

The name of the Function Compute service that requests are routed to.

FunctionName string

The name of the Function Compute function that requests are routed to.

Methods []string

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

Path string

The path that requests are routed from.

Qualifier string

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

ServiceName string

The name of the Function Compute service that requests are routed to.

functionName String

The name of the Function Compute function that requests are routed to.

methods List<String>

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

path String

The path that requests are routed from.

qualifier String

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

serviceName String

The name of the Function Compute service that requests are routed to.

functionName string

The name of the Function Compute function that requests are routed to.

methods string[]

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

path string

The path that requests are routed from.

qualifier string

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

serviceName string

The name of the Function Compute service that requests are routed to.

function_name str

The name of the Function Compute function that requests are routed to.

methods Sequence[str]

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

path str

The path that requests are routed from.

qualifier str

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

service_name str

The name of the Function Compute service that requests are routed to.

functionName String

The name of the Function Compute function that requests are routed to.

methods List<String>

The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.

path String

The path that requests are routed from.

qualifier String

The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.

serviceName String

The name of the Function Compute service that requests are routed to.

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.