Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.scdn.getDomains
Explore with Pulumi AI
This data source provides the Scdn Domains of the current Alibaba Cloud user.
NOTE: Available in v1.131.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const nameRegex = alicloud.scdn.getDomains({
nameRegex: "^my-Domain",
});
export const scdnDomainId = nameRegex.then(nameRegex => nameRegex.domains?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
name_regex = alicloud.scdn.get_domains(name_regex="^my-Domain")
pulumi.export("scdnDomainId", name_regex.domains[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/scdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
nameRegex, err := scdn.GetDomains(ctx, &scdn.GetDomainsArgs{
NameRegex: pulumi.StringRef("^my-Domain"),
}, nil)
if err != nil {
return err
}
ctx.Export("scdnDomainId", nameRegex.Domains[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var nameRegex = AliCloud.Scdn.GetDomains.Invoke(new()
{
NameRegex = "^my-Domain",
});
return new Dictionary<string, object?>
{
["scdnDomainId"] = nameRegex.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.scdn.ScdnFunctions;
import com.pulumi.alicloud.scdn.inputs.GetDomainsArgs;
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 nameRegex = ScdnFunctions.getDomains(GetDomainsArgs.builder()
.nameRegex("^my-Domain")
.build());
ctx.export("scdnDomainId", nameRegex.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
}
}
variables:
nameRegex:
fn::invoke:
Function: alicloud:scdn:getDomains
Arguments:
nameRegex: ^my-Domain
outputs:
scdnDomainId: ${nameRegex.domains[0].id}
Using getDomains
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 getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOptions): Output<GetDomainsResult>
def get_domains(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsResult
def get_domains_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsResult]
func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput
> Note: This function is named GetDomains
in the Go SDK.
public static class GetDomains
{
public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:scdn/getDomains:getDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Domain IDs. Its element value is same as Domain Name.
- Name
Regex string - A regex string to filter results by Domain name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Resource Group ID.
- Status string
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Domain IDs. Its element value is same as Domain Name.
- Name
Regex string - A regex string to filter results by Domain name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The Resource Group ID.
- Status string
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Domain IDs. Its element value is same as Domain Name.
- name
Regex String - A regex string to filter results by Domain name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Resource Group ID.
- status String
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Domain IDs. Its element value is same as Domain Name.
- name
Regex string - A regex string to filter results by Domain name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - The Resource Group ID.
- status string
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Domain IDs. Its element value is same as Domain Name.
- name_
regex str - A regex string to filter results by Domain name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - resource_
group_ strid - The Resource Group ID.
- status str
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Domain IDs. Its element value is same as Domain Name.
- name
Regex String - A regex string to filter results by Domain name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The Resource Group ID.
- status String
- The status of the resource. Valid values: "check_failed", "checking", "configure_failed", "configuring", "offline", "online".
getDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Scdn. Outputs. Get Domains Domain> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId - Status string
- Domains
[]Get
Domains Domain - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId - Status string
- domains
List<Get
Domains Domain> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId - status String
- domains
Get
Domains Domain[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- enable
Details boolean - name
Regex string - output
File string - resource
Group stringId - status string
- domains
Sequence[Get
Domains Domain] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- enable_
details bool - name_
regex str - output_
file str - resource_
group_ strid - status str
- domains List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId - status String
Supporting Types
GetDomainsDomain
- Cert
Infos List<Pulumi.Ali Cloud. Scdn. Inputs. Get Domains Domain Cert Info> - Certificate Information.
- Cname string
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- Create
Time string - Creation Time.
- Description string
- Review the Reason for the Failure Is Displayed.
- Domain
Name string - Your Domain Name.
- Gmt
Modified string - Last Modified Date.
- Id string
- The ID of the Domain. Its value is same as Queue Name.
- Resource
Group stringId - The Resource Group ID.
- Sources
List<Pulumi.
Ali Cloud. Scdn. Inputs. Get Domains Domain Source> - the Origin Server Information.
- Status string
- The status of the resource.
- Cert
Infos []GetDomains Domain Cert Info - Certificate Information.
- Cname string
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- Create
Time string - Creation Time.
- Description string
- Review the Reason for the Failure Is Displayed.
- Domain
Name string - Your Domain Name.
- Gmt
Modified string - Last Modified Date.
- Id string
- The ID of the Domain. Its value is same as Queue Name.
- Resource
Group stringId - The Resource Group ID.
- Sources
[]Get
Domains Domain Source - the Origin Server Information.
- Status string
- The status of the resource.
- cert
Infos List<GetDomains Domain Cert Info> - Certificate Information.
- cname String
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- create
Time String - Creation Time.
- description String
- Review the Reason for the Failure Is Displayed.
- domain
Name String - Your Domain Name.
- gmt
Modified String - Last Modified Date.
- id String
- The ID of the Domain. Its value is same as Queue Name.
- resource
Group StringId - The Resource Group ID.
- sources
List<Get
Domains Domain Source> - the Origin Server Information.
- status String
- The status of the resource.
- cert
Infos GetDomains Domain Cert Info[] - Certificate Information.
- cname string
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- create
Time string - Creation Time.
- description string
- Review the Reason for the Failure Is Displayed.
- domain
Name string - Your Domain Name.
- gmt
Modified string - Last Modified Date.
- id string
- The ID of the Domain. Its value is same as Queue Name.
- resource
Group stringId - The Resource Group ID.
- sources
Get
Domains Domain Source[] - the Origin Server Information.
- status string
- The status of the resource.
- cert_
infos Sequence[GetDomains Domain Cert Info] - Certificate Information.
- cname str
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- create_
time str - Creation Time.
- description str
- Review the Reason for the Failure Is Displayed.
- domain_
name str - Your Domain Name.
- gmt_
modified str - Last Modified Date.
- id str
- The ID of the Domain. Its value is same as Queue Name.
- resource_
group_ strid - The Resource Group ID.
- sources
Sequence[Get
Domains Domain Source] - the Origin Server Information.
- status str
- The status of the resource.
- cert
Infos List<Property Map> - Certificate Information.
- cname String
- In Order to Link the CDN Domain Name to Generate a CNAME Domain Name, in the Domain Name Resolution Service Provider at the Acceleration Domain Name CNAME Resolution to the Domain.
- create
Time String - Creation Time.
- description String
- Review the Reason for the Failure Is Displayed.
- domain
Name String - Your Domain Name.
- gmt
Modified String - Last Modified Date.
- id String
- The ID of the Domain. Its value is same as Queue Name.
- resource
Group StringId - The Resource Group ID.
- sources List<Property Map>
- the Origin Server Information.
- status String
- The status of the resource.
GetDomainsDomainCertInfo
- Cert
Name string - If You Enable HTTPS Here Certificate Name.
- Cert
Type string - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- Ssl
Protocol string - Whether to Enable SSL Certificate. Valid Values: on, off.
- Ssl
Pub string - If You Enable HTTPS Here Key.
- Cert
Name string - If You Enable HTTPS Here Certificate Name.
- Cert
Type string - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- Ssl
Protocol string - Whether to Enable SSL Certificate. Valid Values: on, off.
- Ssl
Pub string - If You Enable HTTPS Here Key.
- cert
Name String - If You Enable HTTPS Here Certificate Name.
- cert
Type String - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- ssl
Protocol String - Whether to Enable SSL Certificate. Valid Values: on, off.
- ssl
Pub String - If You Enable HTTPS Here Key.
- cert
Name string - If You Enable HTTPS Here Certificate Name.
- cert
Type string - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- ssl
Protocol string - Whether to Enable SSL Certificate. Valid Values: on, off.
- ssl
Pub string - If You Enable HTTPS Here Key.
- cert_
name str - If You Enable HTTPS Here Certificate Name.
- cert_
type str - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- ssl_
protocol str - Whether to Enable SSL Certificate. Valid Values: on, off.
- ssl_
pub str - If You Enable HTTPS Here Key.
- cert
Name String - If You Enable HTTPS Here Certificate Name.
- cert
Type String - Certificate Type. Value Range: Upload: Certificate. CAS: Certificate Authority Certificate. Free: Free Certificate.
- ssl
Protocol String - Whether to Enable SSL Certificate. Valid Values: on, off.
- ssl
Pub String - If You Enable HTTPS Here Key.
GetDomainsDomainSource
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.