alicloud.ddos.getDdosCooDomainResources
Explore with Pulumi AI
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 System.Linq;
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.
- Instance
Ids List<string> A list ID of instance that you want to associate.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Query
Domain stringPattern Match the pattern.
- Ids []string
A list of Domain Resource IDs.
- Instance
Ids []string A list ID of instance that you want to associate.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Query
Domain stringPattern Match the pattern.
- ids List<String>
A list of Domain Resource IDs.
- instance
Ids List<String> A list ID of instance that you want to associate.
- output
File String File name where to save data source results (after running
pulumi preview
).- query
Domain StringPattern Match the pattern.
- ids string[]
A list of Domain Resource IDs.
- instance
Ids string[] A list ID of instance that you want to associate.
- output
File string File name where to save data source results (after running
pulumi preview
).- query
Domain stringPattern 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 File name where to save data source results (after running
pulumi preview
).- query_
domain_ strpattern Match the pattern.
- ids List<String>
A list of Domain Resource IDs.
- instance
Ids List<String> A list ID of instance that you want to associate.
- output
File String File name where to save data source results (after running
pulumi preview
).- query
Domain StringPattern 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.
Ali Cloud. Ddos. Outputs. Get Ddos Coo Domain Resources Resource> - Instance
Ids List<string> - Output
File string - Query
Domain stringPattern
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Resources
[]Get
Ddos Coo Domain Resources Resource - Instance
Ids []string - Output
File string - Query
Domain stringPattern
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- resources
List<Get
Ddos Coo Domain Resources Resource> - instance
Ids List<String> - output
File String - query
Domain StringPattern
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- resources
Get
Ddos Coo Domain Resources Resource[] - instance
Ids string[] - output
File string - query
Domain stringPattern
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- resources
Sequence[Get
Ddos Coo Domain Resources Resource] - instance_
ids Sequence[str] - output_
file str - query_
domain_ strpattern
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- resources List<Property Map>
- instance
Ids List<String> - output
File String - query
Domain StringPattern
Supporting Types
GetDdosCooDomainResourcesResource
- Black
Lists List<string> 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 boolEnabled Whether custom frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- Cc
Template string The mode of the Frequency Control policy.
- Cert
Name 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.
- Https
Ext string The advanced HTTPS settings.
- Id string
The ID of the Domain Resource.
- Instance
Ids List<string> A list ID of instance that you want to associate.
- Policy
Mode string The type of backload algorithm.
- Proxy
Enabled bool Whether the website service forwarding rules have been turned on.
- Proxy
Types List<Pulumi.Ali Cloud. Ddos. Inputs. Get Ddos Coo Domain Resources Resource Proxy Type> Protocol type and port number information.
- Real
Servers List<string> Server address information of the source station.
- Rs
Type int Server address type.
- Ssl
Ciphers string The type of the cipher suite.
- Ssl
Protocols string The version of the TLS protocol.
- White
Lists List<string> The IP addresses in the whitelist for the domain name.
- Black
Lists []string 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 boolEnabled Whether custom frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- Cc
Template string The mode of the Frequency Control policy.
- Cert
Name 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.
- Https
Ext string The advanced HTTPS settings.
- Id string
The ID of the Domain Resource.
- Instance
Ids []string A list ID of instance that you want to associate.
- Policy
Mode string The type of backload algorithm.
- Proxy
Enabled bool Whether the website service forwarding rules have been turned on.
- Proxy
Types []GetDdos Coo Domain Resources Resource Proxy Type Protocol type and port number information.
- Real
Servers []string Server address information of the source station.
- Rs
Type int Server address type.
- Ssl
Ciphers string The type of the cipher suite.
- Ssl
Protocols string The version of the TLS protocol.
- White
Lists []string The IP addresses in the whitelist for the domain name.
- black
Lists List<String> The IP addresses in the blacklist for the domain name.
- cc
Enabled Boolean Whether frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Rule BooleanEnabled Whether custom frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Template String The mode of the Frequency Control policy.
- cert
Name 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.
- https
Ext String The advanced HTTPS settings.
- id String
The ID of the Domain Resource.
- instance
Ids List<String> A list ID of instance that you want to associate.
- policy
Mode String The type of backload algorithm.
- proxy
Enabled Boolean Whether the website service forwarding rules have been turned on.
- proxy
Types List<GetDdos Coo Domain Resources Resource Proxy Type> Protocol type and port number information.
- real
Servers List<String> Server address information of the source station.
- rs
Type Integer Server address type.
- ssl
Ciphers String The type of the cipher suite.
- ssl
Protocols String The version of the TLS protocol.
- white
Lists List<String> The IP addresses in the whitelist for the domain name.
- black
Lists string[] The IP addresses in the blacklist for the domain name.
- cc
Enabled boolean Whether frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Rule booleanEnabled Whether custom frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Template string The mode of the Frequency Control policy.
- cert
Name 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.
- https
Ext string The advanced HTTPS settings.
- id string
The ID of the Domain Resource.
- instance
Ids string[] A list ID of instance that you want to associate.
- policy
Mode string The type of backload algorithm.
- proxy
Enabled boolean Whether the website service forwarding rules have been turned on.
- proxy
Types GetDdos Coo Domain Resources Resource Proxy Type[] Protocol type and port number information.
- real
Servers string[] Server address information of the source station.
- rs
Type number Server address type.
- ssl
Ciphers string The type of the cipher suite.
- ssl
Protocols string The version of the TLS protocol.
- white
Lists 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_ boolenabled 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[GetDdos Coo Domain Resources Resource Proxy Type] 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.
- black
Lists List<String> The IP addresses in the blacklist for the domain name.
- cc
Enabled Boolean Whether frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Rule BooleanEnabled Whether custom frequency control guard (CC guard) is enabled. Values:
True
: Opened,False
: Not enabled.- cc
Template String The mode of the Frequency Control policy.
- cert
Name 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.
- https
Ext String The advanced HTTPS settings.
- id String
The ID of the Domain Resource.
- instance
Ids List<String> A list ID of instance that you want to associate.
- policy
Mode String The type of backload algorithm.
- proxy
Enabled Boolean Whether the website service forwarding rules have been turned on.
- proxy
Types List<Property Map> Protocol type and port number information.
- real
Servers List<String> Server address information of the source station.
- rs
Type Number Server address type.
- ssl
Ciphers String The type of the cipher suite.
- ssl
Protocols String The version of the TLS protocol.
- white
Lists List<String> The IP addresses in the whitelist for the domain name.
GetDdosCooDomainResourcesResourceProxyType
- Proxy
Ports List<int> The forwarding port.
- Proxy
Type string Protocol type.
- Proxy
Ports []int The forwarding port.
- Proxy
Type string Protocol type.
- proxy
Ports List<Integer> The forwarding port.
- proxy
Type String Protocol type.
- proxy
Ports number[] The forwarding port.
- proxy
Type string Protocol type.
- proxy_
ports Sequence[int] The forwarding port.
- proxy_
type str Protocol type.
- proxy
Ports List<Number> The forwarding port.
- proxy
Type 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.