alicloud.fc.getCustomDomains
Explore with Pulumi AI
This data source provides the Function Compute custom domains of the current Alibaba Cloud user.
NOTE: Available in 1.98.0+
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var fcDomains = AliCloud.FC.GetCustomDomains.Invoke(new()
{
NameRegex = "sample_fc_custom_domain",
});
return new Dictionary<string, object?>
{
["firstFcCustomDomainName"] = data.Alicloud_fc_custom_domains.Fc_domains_ds.Domains[0].Domain_name,
};
});
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.
- Name
Regex string A regex string to filter results by Function Compute custom domain name.
- Output
File string File name where to save data source results (after running
pulumi preview
).
- Ids []string
A list of functions ids.
- Name
Regex string A regex string to filter results by Function Compute custom domain name.
- Output
File string File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of functions ids.
- name
Regex String A regex string to filter results by Function Compute custom domain name.
- output
File String File name where to save data source results (after running
pulumi preview
).
- ids string[]
A list of functions ids.
- name
Regex string A regex string to filter results by Function Compute custom domain name.
- output
File string File name where to save data source results (after running
pulumi preview
).
- 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 File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of functions ids.
- name
Regex String A regex string to filter results by Function Compute custom domain name.
- output
File String File name where to save data source results (after running
pulumi preview
).
getCustomDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. FC. Outputs. Get Custom Domains Domain> 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.
- Name
Regex string - Output
File string
- Domains
[]Get
Custom Domains Domain 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.
- Name
Regex string - Output
File string
- domains
List<Get
Custom Domains Domain> 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.
- name
Regex String - output
File String
- domains
Get
Custom Domains Domain[] 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.
- name
Regex string - output
File string
- domains
Sequence[Get
Custom Domains Domain] 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.
- name
Regex String - output
File String
Supporting Types
GetCustomDomainsDomain
- Account
Id string The account id.
- Api
Version string The API version of the Function Compute service.
- Cert
Config Pulumi.Ali Cloud. FC. Inputs. Get Custom Domains Domain Cert Config The configuration of HTTPS certificate.
- Created
Time string The created time of the custom domain.
- Domain
Name string The custom domain name.
- Id string
The custom domain id, same as domain name.
- Last
Modified stringTime The last modified time of the custom domain.
- Protocol string
The custom domain protocol.
- Route
Configs List<Pulumi.Ali Cloud. FC. Inputs. Get Custom Domains Domain Route Config> The configuration of domain route, mapping the path and Function Compute function.
- Account
Id string The account id.
- Api
Version string The API version of the Function Compute service.
- Cert
Config GetCustom Domains Domain Cert Config The configuration of HTTPS certificate.
- Created
Time string The created time of the custom domain.
- Domain
Name string The custom domain name.
- Id string
The custom domain id, same as domain name.
- Last
Modified stringTime The last modified time of the custom domain.
- Protocol string
The custom domain protocol.
- Route
Configs []GetCustom Domains Domain Route Config The configuration of domain route, mapping the path and Function Compute function.
- account
Id String The account id.
- api
Version String The API version of the Function Compute service.
- cert
Config GetCustom Domains Domain Cert Config The configuration of HTTPS certificate.
- created
Time String The created time of the custom domain.
- domain
Name String The custom domain name.
- id String
The custom domain id, same as domain name.
- last
Modified StringTime The last modified time of the custom domain.
- protocol String
The custom domain protocol.
- route
Configs List<GetCustom Domains Domain Route Config> The configuration of domain route, mapping the path and Function Compute function.
- account
Id string The account id.
- api
Version string The API version of the Function Compute service.
- cert
Config GetCustom Domains Domain Cert Config The configuration of HTTPS certificate.
- created
Time string The created time of the custom domain.
- domain
Name string The custom domain name.
- id string
The custom domain id, same as domain name.
- last
Modified stringTime The last modified time of the custom domain.
- protocol string
The custom domain protocol.
- route
Configs GetCustom Domains Domain Route Config[] 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 GetCustom Domains Domain Cert Config 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_ strtime The last modified time of the custom domain.
- protocol str
The custom domain protocol.
- route_
configs Sequence[GetCustom Domains Domain Route Config] The configuration of domain route, mapping the path and Function Compute function.
- account
Id String The account id.
- api
Version String The API version of the Function Compute service.
- cert
Config Property Map The configuration of HTTPS certificate.
- created
Time String The created time of the custom domain.
- domain
Name String The custom domain name.
- id String
The custom domain id, same as domain name.
- last
Modified StringTime The last modified time of the custom domain.
- protocol String
The custom domain protocol.
- route
Configs List<Property Map> The configuration of domain route, mapping the path and Function Compute function.
GetCustomDomainsDomainCertConfig
- Cert
Name string The name of the certificate.
- Certificate string
Certificate data of the HTTPS certificates, follow the 'pem'.
- Cert
Name string The name of the certificate.
- Certificate string
Certificate data of the HTTPS certificates, follow the 'pem'.
- cert
Name String The name of the certificate.
- certificate String
Certificate data of the HTTPS certificates, follow the 'pem'.
- cert
Name 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'.
- cert
Name String The name of the certificate.
- certificate String
Certificate data of the HTTPS certificates, follow the 'pem'.
GetCustomDomainsDomainRouteConfig
- Function
Name 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.
- Service
Name string The name of the Function Compute service that requests are routed to.
- Function
Name 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.
- Service
Name string The name of the Function Compute service that requests are routed to.
- function
Name 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.
- service
Name String The name of the Function Compute service that requests are routed to.
- function
Name 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.
- service
Name 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.
- function
Name 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.
- service
Name String The name of the Function Compute service that requests are routed to.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.