Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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 in 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dcdn/getIpaDomains:getIpaDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Name string - The name of the Domain.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Ipa Domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- Domain
Name string - The name of the Domain.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Ipa Domain IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name String - The name of the Domain.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Ipa Domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name string - The name of the Domain.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Ipa Domain IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain_
name str - The name of the Domain.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Ipa Domain IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the accelerated domain name. Valid values:
check_failed
,checking
,configure_failed
,configuring
,offline
,online
.
- domain
Name String - The name of the Domain.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Ipa Domain IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- 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> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Domain
Name string - Enable
Details bool - Output
File string - Status string
- Domains
[]Get
Ipa Domains Domain - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Domain
Name string - Enable
Details bool - Output
File string - Status string
- domains
List<Get
Ipa Domains Domain> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- domain
Name String - enable
Details Boolean - output
File String - status String
- domains
Get
Ipa Domains Domain[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- domain
Name string - enable
Details boolean - output
File string - status string
- domains
Sequence[Get
Ipa Domains Domain] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- domain_
name str - enable_
details bool - output_
file str - status str
- domains List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- domain
Name String - enable
Details Boolean - output
File String - status String
Supporting Types
GetIpaDomainsDomain
- Cert
Name string - CertName.
- Cname string
- The CNAME assigned to the domain name.
- Create
Time string - The time when the accelerated domain name was created.
- Description string
- The description.
- Domain
Name string - The accelerated domain names.
- Id string
- The ID of the Ipa Domain.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The accelerated region.
- Sources
List<Pulumi.
Ali Cloud. Dcdn. Inputs. Get Ipa Domains Domain Source> - The information about the origin server.
- Ssl
Protocol string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of the accelerated domain name.
- Cert
Name string - CertName.
- Cname string
- The CNAME assigned to the domain name.
- Create
Time string - The time when the accelerated domain name was created.
- Description string
- The description.
- Domain
Name string - The accelerated domain names.
- Id string
- The ID of the Ipa Domain.
- Resource
Group stringId - The ID of the resource group.
- Scope string
- The accelerated region.
- Sources
[]Get
Ipa Domains Domain Source - The information about the origin server.
- Ssl
Protocol string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- Ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- Status string
- The status of the accelerated domain name.
- cert
Name String - CertName.
- cname String
- The CNAME assigned to the domain name.
- create
Time String - The time when the accelerated domain name was created.
- description String
- The description.
- domain
Name String - The accelerated domain names.
- id String
- The ID of the Ipa Domain.
- resource
Group StringId - The ID of the resource group.
- scope String
- The accelerated region.
- sources
List<Get
Ipa Domains Domain Source> - The information about the origin server.
- ssl
Protocol String - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of the accelerated domain name.
- cert
Name string - CertName.
- cname string
- The CNAME assigned to the domain name.
- create
Time string - The time when the accelerated domain name was created.
- description string
- The description.
- domain
Name string - The accelerated domain names.
- id string
- The ID of the Ipa Domain.
- resource
Group stringId - The ID of the resource group.
- scope string
- The accelerated region.
- sources
Get
Ipa Domains Domain Source[] - The information about the origin server.
- ssl
Protocol string - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub string - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status string
- The status of the accelerated domain name.
- cert_
name str - CertName.
- cname str
- The CNAME assigned to the domain name.
- create_
time str - The time when the accelerated domain name was created.
- description str
- The description.
- domain_
name str - The accelerated domain names.
- id str
- The ID of the Ipa Domain.
- resource_
group_ strid - The ID of the resource group.
- scope str
- The accelerated region.
- sources
Sequence[Get
Ipa Domains Domain Source] - The information about the origin server.
- ssl_
protocol str - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl_
pub str - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status str
- The status of the accelerated domain name.
- cert
Name String - CertName.
- cname String
- The CNAME assigned to the domain name.
- create
Time String - The time when the accelerated domain name was created.
- description String
- The description.
- domain
Name String - The accelerated domain names.
- id String
- The ID of the Ipa Domain.
- resource
Group StringId - The ID of the resource group.
- scope String
- The accelerated region.
- sources List<Property Map>
- The information about the origin server.
- ssl
Protocol String - Indicates whether the Security Socket Layer (SSL) certificate is enabled.
- ssl
Pub String - Indicates the public key of the certificate if the HTTPS protocol is enabled.
- status String
- The status of the accelerated domain name.
GetIpaDomainsDomainSource
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.