alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.ddos.getDdosCooDomainResources

This data source provides the Ddoscoo Domain Resources of the current Alibaba Cloud user.

NOTE: Available in v1.123.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Ddos.GetDdosCooDomainResources.Invoke(new()
    {
        Ids = new[]
        {
            "tftestacc1234.abc",
        },
    });

    return new Dictionary<string, object?>
    {
        ["firstDdoscooDomainResourceId"] = example.Apply(getDdosCooDomainResourcesResult => getDdosCooDomainResourcesResult.Resources[0]?.Id),
    };
});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ddos.GetDdosCooDomainResources(ctx, &ddos.GetDdosCooDomainResourcesArgs{
			Ids: []string{
				"tftestacc1234.abc",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstDdoscooDomainResourceId", example.Resources[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.DdosFunctions;
import com.pulumi.alicloud.ddos.inputs.GetDdosCooDomainResourcesArgs;
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 example = DdosFunctions.getDdosCooDomainResources(GetDdosCooDomainResourcesArgs.builder()
            .ids("tftestacc1234.abc")
            .build());

        ctx.export("firstDdoscooDomainResourceId", example.applyValue(getDdosCooDomainResourcesResult -> getDdosCooDomainResourcesResult.resources()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ddos.get_ddos_coo_domain_resources(ids=["tftestacc1234.abc"])
pulumi.export("firstDdoscooDomainResourceId", example.resources[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.ddos.getDdosCooDomainResources({
    ids: ["tftestacc1234.abc"],
});
export const firstDdoscooDomainResourceId = example.then(example => example.resources?.[0]?.id);
variables:
  example:
    fn::invoke:
      Function: alicloud:ddos:getDdosCooDomainResources
      Arguments:
        ids:
          - tftestacc1234.abc
outputs:
  firstDdoscooDomainResourceId: ${example.resources[0].id}

Using getDdosCooDomainResources

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 getDdosCooDomainResources(args: GetDdosCooDomainResourcesArgs, opts?: InvokeOptions): Promise<GetDdosCooDomainResourcesResult>
function getDdosCooDomainResourcesOutput(args: GetDdosCooDomainResourcesOutputArgs, opts?: InvokeOptions): Output<GetDdosCooDomainResourcesResult>
def get_ddos_coo_domain_resources(ids: Optional[Sequence[str]] = None,
                                  instance_ids: Optional[Sequence[str]] = None,
                                  output_file: Optional[str] = None,
                                  query_domain_pattern: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDdosCooDomainResourcesResult
def get_ddos_coo_domain_resources_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  output_file: Optional[pulumi.Input[str]] = None,
                                  query_domain_pattern: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDdosCooDomainResourcesResult]
func GetDdosCooDomainResources(ctx *Context, args *GetDdosCooDomainResourcesArgs, opts ...InvokeOption) (*GetDdosCooDomainResourcesResult, error)
func GetDdosCooDomainResourcesOutput(ctx *Context, args *GetDdosCooDomainResourcesOutputArgs, opts ...InvokeOption) GetDdosCooDomainResourcesResultOutput

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

public static class GetDdosCooDomainResources 
{
    public static Task<GetDdosCooDomainResourcesResult> InvokeAsync(GetDdosCooDomainResourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetDdosCooDomainResourcesResult> Invoke(GetDdosCooDomainResourcesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDdosCooDomainResourcesResult> getDdosCooDomainResources(GetDdosCooDomainResourcesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Domain Resource IDs.

InstanceIds List<string>

A list ID of instance that you want to associate.

OutputFile string
QueryDomainPattern string

Match the pattern.

Ids []string

A list of Domain Resource IDs.

InstanceIds []string

A list ID of instance that you want to associate.

OutputFile string
QueryDomainPattern string

Match the pattern.

ids List<String>

A list of Domain Resource IDs.

instanceIds List<String>

A list ID of instance that you want to associate.

outputFile String
queryDomainPattern String

Match the pattern.

ids string[]

A list of Domain Resource IDs.

instanceIds string[]

A list ID of instance that you want to associate.

outputFile string
queryDomainPattern string

Match the pattern.

ids Sequence[str]

A list of Domain Resource IDs.

instance_ids Sequence[str]

A list ID of instance that you want to associate.

output_file str
query_domain_pattern str

Match the pattern.

ids List<String>

A list of Domain Resource IDs.

instanceIds List<String>

A list ID of instance that you want to associate.

outputFile String
queryDomainPattern String

Match the pattern.

getDdosCooDomainResources Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Resources List<Pulumi.AliCloud.Ddos.Outputs.GetDdosCooDomainResourcesResource>
InstanceIds List<string>
OutputFile string
QueryDomainPattern string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Resources []GetDdosCooDomainResourcesResource
InstanceIds []string
OutputFile string
QueryDomainPattern string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
resources List<GetDdosCooDomainResourcesResource>
instanceIds List<String>
outputFile String
queryDomainPattern String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
resources GetDdosCooDomainResourcesResource[]
instanceIds string[]
outputFile string
queryDomainPattern string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
resources Sequence[GetDdosCooDomainResourcesResource]
instance_ids Sequence[str]
output_file str
query_domain_pattern str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
resources List<Property Map>
instanceIds List<String>
outputFile String
queryDomainPattern String

Supporting Types

GetDdosCooDomainResourcesResource

BlackLists List<string>

The IP addresses in the blacklist for the domain name.

CcEnabled bool

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

CcRuleEnabled bool

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

CcTemplate string

The mode of the Frequency Control policy.

CertName string

The name of the certificate.

Domain string

The domain name of the website that you want to add to the instance.

Http2Enable bool

Whether Http2.0 is enabled.

HttpsExt string

The advanced HTTPS settings.

Id string

The ID of the Domain Resource.

InstanceIds List<string>

A list ID of instance that you want to associate.

PolicyMode string

The type of backload algorithm.

ProxyEnabled bool

Whether the website service forwarding rules have been turned on.

ProxyTypes List<Pulumi.AliCloud.Ddos.Inputs.GetDdosCooDomainResourcesResourceProxyType>

Protocol type and port number information.

RealServers List<string>

Server address information of the source station.

RsType int

Server address type.

SslCiphers string

The type of the cipher suite.

SslProtocols string

The version of the TLS protocol.

WhiteLists List<string>

The IP addresses in the whitelist for the domain name.

BlackLists []string

The IP addresses in the blacklist for the domain name.

CcEnabled bool

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

CcRuleEnabled bool

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

CcTemplate string

The mode of the Frequency Control policy.

CertName string

The name of the certificate.

Domain string

The domain name of the website that you want to add to the instance.

Http2Enable bool

Whether Http2.0 is enabled.

HttpsExt string

The advanced HTTPS settings.

Id string

The ID of the Domain Resource.

InstanceIds []string

A list ID of instance that you want to associate.

PolicyMode string

The type of backload algorithm.

ProxyEnabled bool

Whether the website service forwarding rules have been turned on.

ProxyTypes []GetDdosCooDomainResourcesResourceProxyType

Protocol type and port number information.

RealServers []string

Server address information of the source station.

RsType int

Server address type.

SslCiphers string

The type of the cipher suite.

SslProtocols string

The version of the TLS protocol.

WhiteLists []string

The IP addresses in the whitelist for the domain name.

blackLists List<String>

The IP addresses in the blacklist for the domain name.

ccEnabled Boolean

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccRuleEnabled Boolean

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccTemplate String

The mode of the Frequency Control policy.

certName String

The name of the certificate.

domain String

The domain name of the website that you want to add to the instance.

http2Enable Boolean

Whether Http2.0 is enabled.

httpsExt String

The advanced HTTPS settings.

id String

The ID of the Domain Resource.

instanceIds List<String>

A list ID of instance that you want to associate.

policyMode String

The type of backload algorithm.

proxyEnabled Boolean

Whether the website service forwarding rules have been turned on.

proxyTypes List<GetDdosCooDomainResourcesResourceProxyType>

Protocol type and port number information.

realServers List<String>

Server address information of the source station.

rsType Integer

Server address type.

sslCiphers String

The type of the cipher suite.

sslProtocols String

The version of the TLS protocol.

whiteLists List<String>

The IP addresses in the whitelist for the domain name.

blackLists string[]

The IP addresses in the blacklist for the domain name.

ccEnabled boolean

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccRuleEnabled boolean

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccTemplate string

The mode of the Frequency Control policy.

certName string

The name of the certificate.

domain string

The domain name of the website that you want to add to the instance.

http2Enable boolean

Whether Http2.0 is enabled.

httpsExt string

The advanced HTTPS settings.

id string

The ID of the Domain Resource.

instanceIds string[]

A list ID of instance that you want to associate.

policyMode string

The type of backload algorithm.

proxyEnabled boolean

Whether the website service forwarding rules have been turned on.

proxyTypes GetDdosCooDomainResourcesResourceProxyType[]

Protocol type and port number information.

realServers string[]

Server address information of the source station.

rsType number

Server address type.

sslCiphers string

The type of the cipher suite.

sslProtocols string

The version of the TLS protocol.

whiteLists string[]

The IP addresses in the whitelist for the domain name.

black_lists Sequence[str]

The IP addresses in the blacklist for the domain name.

cc_enabled bool

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

cc_rule_enabled bool

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

cc_template str

The mode of the Frequency Control policy.

cert_name str

The name of the certificate.

domain str

The domain name of the website that you want to add to the instance.

http2_enable bool

Whether Http2.0 is enabled.

https_ext str

The advanced HTTPS settings.

id str

The ID of the Domain Resource.

instance_ids Sequence[str]

A list ID of instance that you want to associate.

policy_mode str

The type of backload algorithm.

proxy_enabled bool

Whether the website service forwarding rules have been turned on.

proxy_types Sequence[GetDdosCooDomainResourcesResourceProxyType]

Protocol type and port number information.

real_servers Sequence[str]

Server address information of the source station.

rs_type int

Server address type.

ssl_ciphers str

The type of the cipher suite.

ssl_protocols str

The version of the TLS protocol.

white_lists Sequence[str]

The IP addresses in the whitelist for the domain name.

blackLists List<String>

The IP addresses in the blacklist for the domain name.

ccEnabled Boolean

Whether frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccRuleEnabled Boolean

Whether custom frequency control guard (CC guard) is enabled. Values: True: Opened, False: Not enabled.

ccTemplate String

The mode of the Frequency Control policy.

certName String

The name of the certificate.

domain String

The domain name of the website that you want to add to the instance.

http2Enable Boolean

Whether Http2.0 is enabled.

httpsExt String

The advanced HTTPS settings.

id String

The ID of the Domain Resource.

instanceIds List<String>

A list ID of instance that you want to associate.

policyMode String

The type of backload algorithm.

proxyEnabled Boolean

Whether the website service forwarding rules have been turned on.

proxyTypes List<Property Map>

Protocol type and port number information.

realServers List<String>

Server address information of the source station.

rsType Number

Server address type.

sslCiphers String

The type of the cipher suite.

sslProtocols String

The version of the TLS protocol.

whiteLists List<String>

The IP addresses in the whitelist for the domain name.

GetDdosCooDomainResourcesResourceProxyType

ProxyPorts List<int>

The forwarding port.

ProxyType string

Protocol type.

ProxyPorts []int

The forwarding port.

ProxyType string

Protocol type.

proxyPorts List<Integer>

The forwarding port.

proxyType String

Protocol type.

proxyPorts number[]

The forwarding port.

proxyType string

Protocol type.

proxy_ports Sequence[int]

The forwarding port.

proxy_type str

Protocol type.

proxyPorts List<Number>

The forwarding port.

proxyType String

Protocol type.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.