Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.dcdn.getIpaDomains
Explore with Pulumi AI
This data source provides the Dcdn Ipa Domains of the current Alibaba Cloud user.
NOTE: Available since v1.158.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.dcdn.getIpaDomains({
domainName: "example_value",
ids: [
"example_value-1",
"example_value-2",
],
});
export const dcdnIpaDomainId1 = ids.then(ids => ids.domains?.[0]?.id);
const status = alicloud.dcdn.getIpaDomains({
status: "online",
});
export const dcdnIpaDomainId2 = status.then(status => status.domains?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.dcdn.get_ipa_domains(domain_name="example_value",
ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("dcdnIpaDomainId1", ids.domains[0].id)
status = alicloud.dcdn.get_ipa_domains(status="online")
pulumi.export("dcdnIpaDomainId2", status.domains[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dcdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := dcdn.GetIpaDomains(ctx, &dcdn.GetIpaDomainsArgs{
DomainName: pulumi.StringRef("example_value"),
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("dcdnIpaDomainId1", ids.Domains[0].Id)
status, err := dcdn.GetIpaDomains(ctx, &dcdn.GetIpaDomainsArgs{
Status: pulumi.StringRef("online"),
}, nil)
if err != nil {
return err
}
ctx.Export("dcdnIpaDomainId2", status.Domains[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Dcdn.GetIpaDomains.Invoke(new()
{
DomainName = "example_value",
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
var status = AliCloud.Dcdn.GetIpaDomains.Invoke(new()
{
Status = "online",
});
return new Dictionary<string, object?>
{
["dcdnIpaDomainId1"] = ids.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id),
["dcdnIpaDomainId2"] = status.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dcdn.DcdnFunctions;
import com.pulumi.alicloud.dcdn.inputs.GetIpaDomainsArgs;
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 ids = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
.domainName("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("dcdnIpaDomainId1", ids.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
final var status = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
.status("online")
.build());
ctx.export("dcdnIpaDomainId2", status.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
}
}
variables:
ids:
fn::invoke:
function: alicloud:dcdn:getIpaDomains
arguments:
domainName: example_value
ids:
- example_value-1
- example_value-2
status:
fn::invoke:
function: alicloud:dcdn:getIpaDomains
arguments:
status: online
outputs:
dcdnIpaDomainId1: ${ids.domains[0].id}
dcdnIpaDomainId2: ${status.domains[0].id}
Using getIpaDomains
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 getIpaDomains(args: GetIpaDomainsArgs, opts?: InvokeOptions): Promise<GetIpaDomainsResult>
function getIpaDomainsOutput(args: GetIpaDomainsOutputArgs, opts?: InvokeOptions): Output<GetIpaDomainsResult>
def get_ipa_domains(domain_name: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIpaDomainsResult
def get_ipa_domains_output(domain_name: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpaDomainsResult]
func GetIpaDomains(ctx *Context, args *GetIpaDomainsArgs, opts ...InvokeOption) (*GetIpaDomainsResult, error)
func GetIpaDomainsOutput(ctx *Context, args *GetIpaDomainsOutputArgs, opts ...InvokeOption) GetIpaDomainsResultOutput
> Note: This function is named GetIpaDomains
in the Go SDK.
public static class GetIpaDomains
{
public static Task<GetIpaDomainsResult> InvokeAsync(GetIpaDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetIpaDomainsResult> Invoke(GetIpaDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpaDomainsResult> getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options)
public static Output<GetIpaDomainsResult> getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:dcdn/getIpaDomains:getIpaDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Name Changes to this property will trigger replacement.
- The name of the Domain.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- Domain
Name Changes to this property will trigger replacement.
- The name of the Domain.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name Changes to this property will trigger replacement.
- The name of the Domain.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name Changes to this property will trigger replacement.
- The name of the Domain.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain_
name Changes to this property will trigger replacement.
- The name of the Domain.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name Changes to this property will trigger replacement.
- The name of the Domain.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Ipa Domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
getIpaDomains Result
The following output properties are available:
- Domains
List<Pulumi.
Ali Cloud. Dcdn. Outputs. Get Ipa Domains Domain> - A list of Dcdn Ipa Domains. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Dcdn Ipa Domain names.
- Domain
Name string - The accelerated domain names.
- Enable
Details bool - Output
File string - Status string
- The status of the accelerated domain name.
- Domains
[]Get
Ipa Domains Domain - A list of Dcdn Ipa Domains. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Dcdn Ipa Domain names.
- Domain
Name string - The accelerated domain names.
- Enable
Details bool - Output
File string - Status string
- The status of the accelerated domain name.
- domains
List<Get
Ipa Domains Domain> - A list of Dcdn Ipa Domains. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Dcdn Ipa Domain names.
- domain
Name String - The accelerated domain names.
- enable
Details Boolean - output
File String - status String
- The status of the accelerated domain name.
- domains
Get
Ipa Domains Domain[] - A list of Dcdn Ipa Domains. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Dcdn Ipa Domain names.
- domain
Name string - The accelerated domain names.
- enable
Details boolean - output
File string - status string
- The status of the accelerated domain name.
- domains
Sequence[Get
Ipa Domains Domain] - A list of Dcdn Ipa Domains. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Dcdn Ipa Domain names.
- domain_
name str - The accelerated domain names.
- enable_
details bool - output_
file str - status str
- The status of the accelerated domain name.
- domains List<Property Map>
- A list of Dcdn Ipa Domains. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Dcdn Ipa Domain names.
- domain
Name String - The accelerated domain names.
- enable
Details Boolean - output
File String - status String
- The status of the accelerated domain name.
Supporting Types
GetIpaDomainsDomain
- Cert
Name This property is required. string - CertName.
- Cname
This property is required. string - The CNAME assigned to the domain name.
- Create
Time This property is required. string - The time when the accelerated domain name was created.
- Description
This property is required. string - The description.
- Domain
Name This property is required. string - The name of the Domain.
- Id
This property is required. string - The ID of the Ipa Domain.
- Resource
Group Id This property is required. string - The ID of the resource group.
- Scope
This property is required. string - The accelerated region.
- Sources
This property is required. List<Pulumi.Ali Cloud. Dcdn. Inputs. Get Ipa Domains Domain Source> - The information about the origin server.
- Ssl
Protocol This property is required. string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- Ssl
Pub This property is required. string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status
This property is required. string - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- Cert
Name This property is required. string - CertName.
- Cname
This property is required. string - The CNAME assigned to the domain name.
- Create
Time This property is required. string - The time when the accelerated domain name was created.
- Description
This property is required. string - The description.
- Domain
Name This property is required. string - The name of the Domain.
- Id
This property is required. string - The ID of the Ipa Domain.
- Resource
Group Id This property is required. string - The ID of the resource group.
- Scope
This property is required. string - The accelerated region.
- Sources
This property is required. []GetIpa Domains Domain Source - The information about the origin server.
- Ssl
Protocol This property is required. string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- Ssl
Pub This property is required. string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status
This property is required. string - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- cert
Name This property is required. String - CertName.
- cname
This property is required. String - The CNAME assigned to the domain name.
- create
Time This property is required. String - The time when the accelerated domain name was created.
- description
This property is required. String - The description.
- domain
Name This property is required. String - The name of the Domain.
- id
This property is required. String - The ID of the Ipa Domain.
- resource
Group Id This property is required. String - The ID of the resource group.
- scope
This property is required. String - The accelerated region.
- sources
This property is required. List<GetIpa Domains Domain Source> - The information about the origin server.
- ssl
Protocol This property is required. String - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub This property is required. String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status
This property is required. String - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- cert
Name This property is required. string - CertName.
- cname
This property is required. string - The CNAME assigned to the domain name.
- create
Time This property is required. string - The time when the accelerated domain name was created.
- description
This property is required. string - The description.
- domain
Name This property is required. string - The name of the Domain.
- id
This property is required. string - The ID of the Ipa Domain.
- resource
Group Id This property is required. string - The ID of the resource group.
- scope
This property is required. string - The accelerated region.
- sources
This property is required. GetIpa Domains Domain Source[] - The information about the origin server.
- ssl
Protocol This property is required. string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub This property is required. string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status
This property is required. string - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- cert_
name This property is required. str - CertName.
- cname
This property is required. str - The CNAME assigned to the domain name.
- create_
time This property is required. str - The time when the accelerated domain name was created.
- description
This property is required. str - The description.
- domain_
name This property is required. str - The name of the Domain.
- id
This property is required. str - The ID of the Ipa Domain.
- resource_
group_ id This property is required. str - The ID of the resource group.
- scope
This property is required. str - The accelerated region.
- sources
This property is required. Sequence[GetIpa Domains Domain Source] - The information about the origin server.
- ssl_
protocol This property is required. str - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl_
pub This property is required. str - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status
This property is required. str - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- cert
Name This property is required. String - CertName.
- cname
This property is required. String - The CNAME assigned to the domain name.
- create
Time This property is required. String - The time when the accelerated domain name was created.
- description
This property is required. String - The description.
- domain
Name This property is required. String - The name of the Domain.
- id
This property is required. String - The ID of the Ipa Domain.
- resource
Group Id This property is required. String - The ID of the resource group.
- scope
This property is required. String - The accelerated region.
- sources
This property is required. List<Property Map> - The information about the origin server.
- ssl
Protocol This property is required. String - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub This property is required. String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status
This property is required. String - The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
GetIpaDomainsDomainSource
- Content
This property is required. string - The address of the origin server.
- Port
This property is required. int - The custom port.
- Priority
This property is required. string - The priority of the origin server if multiple origin servers are specified.
- Type
This property is required. string - The type of the origin server.
- Weight
This property is required. int - The weight of the origin server if multiple origin servers are specified.
- Content
This property is required. string - The address of the origin server.
- Port
This property is required. int - The custom port.
- Priority
This property is required. string - The priority of the origin server if multiple origin servers are specified.
- Type
This property is required. string - The type of the origin server.
- Weight
This property is required. int - The weight of the origin server if multiple origin servers are specified.
- content
This property is required. String - The address of the origin server.
- port
This property is required. Integer - The custom port.
- priority
This property is required. String - The priority of the origin server if multiple origin servers are specified.
- type
This property is required. String - The type of the origin server.
- weight
This property is required. Integer - The weight of the origin server if multiple origin servers are specified.
- content
This property is required. string - The address of the origin server.
- port
This property is required. number - The custom port.
- priority
This property is required. string - The priority of the origin server if multiple origin servers are specified.
- type
This property is required. string - The type of the origin server.
- weight
This property is required. number - The weight of the origin server if multiple origin servers are specified.
- content
This property is required. str - The address of the origin server.
- port
This property is required. int - The custom port.
- priority
This property is required. str - The priority of the origin server if multiple origin servers are specified.
- type
This property is required. str - The type of the origin server.
- weight
This property is required. int - The weight of the origin server if multiple origin servers are specified.
- content
This property is required. String - The address of the origin server.
- port
This property is required. Number - The custom port.
- priority
This property is required. String - The priority of the origin server if multiple origin servers are specified.
- type
This property is required. String - The type of the origin server.
- weight
This property is required. Number - The weight of the origin server if multiple origin servers are specified.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.