dnspod

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type DomainInstance

type DomainInstance struct {
	pulumi.CustomResourceState

	// Create time of the domain.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The Domain.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The Group Id of Domain.
	GroupId pulumi.IntPtrOutput `pulumi:"groupId"`
	// Whether to Mark the Domain.
	IsMark pulumi.StringOutput `pulumi:"isMark"`
	// The remark of Domain.
	Remark pulumi.StringPtrOutput `pulumi:"remark"`
	// The status of Domain.
	Status pulumi.StringPtrOutput `pulumi:"status"`
}

Provide a resource to create a DnsPod Domain instance.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dnspod.NewDomainInstance(ctx, "foo", &Dnspod.DomainInstanceArgs{
			Domain: pulumi.String("hello.com"),
			Remark: pulumi.String("this is demo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DnsPod Domain instance can be imported, e.g.

```sh

$ pulumi import tencentcloud:Dnspod/domainInstance:DomainInstance foo domain

```

func GetDomainInstance

func GetDomainInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DomainInstanceState, opts ...pulumi.ResourceOption) (*DomainInstance, error)

GetDomainInstance gets an existing DomainInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDomainInstance

func NewDomainInstance(ctx *pulumi.Context,
	name string, args *DomainInstanceArgs, opts ...pulumi.ResourceOption) (*DomainInstance, error)

NewDomainInstance registers a new resource with the given unique name, arguments, and options.

func (*DomainInstance) ElementType

func (*DomainInstance) ElementType() reflect.Type

func (*DomainInstance) ToDomainInstanceOutput

func (i *DomainInstance) ToDomainInstanceOutput() DomainInstanceOutput

func (*DomainInstance) ToDomainInstanceOutputWithContext

func (i *DomainInstance) ToDomainInstanceOutputWithContext(ctx context.Context) DomainInstanceOutput

type DomainInstanceArgs

type DomainInstanceArgs struct {
	// The Domain.
	Domain pulumi.StringInput
	// The Group Id of Domain.
	GroupId pulumi.IntPtrInput
	// Whether to Mark the Domain.
	IsMark pulumi.StringPtrInput
	// The remark of Domain.
	Remark pulumi.StringPtrInput
	// The status of Domain.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a DomainInstance resource.

func (DomainInstanceArgs) ElementType

func (DomainInstanceArgs) ElementType() reflect.Type

type DomainInstanceArray

type DomainInstanceArray []DomainInstanceInput

func (DomainInstanceArray) ElementType

func (DomainInstanceArray) ElementType() reflect.Type

func (DomainInstanceArray) ToDomainInstanceArrayOutput

func (i DomainInstanceArray) ToDomainInstanceArrayOutput() DomainInstanceArrayOutput

func (DomainInstanceArray) ToDomainInstanceArrayOutputWithContext

func (i DomainInstanceArray) ToDomainInstanceArrayOutputWithContext(ctx context.Context) DomainInstanceArrayOutput

type DomainInstanceArrayInput

type DomainInstanceArrayInput interface {
	pulumi.Input

	ToDomainInstanceArrayOutput() DomainInstanceArrayOutput
	ToDomainInstanceArrayOutputWithContext(context.Context) DomainInstanceArrayOutput
}

DomainInstanceArrayInput is an input type that accepts DomainInstanceArray and DomainInstanceArrayOutput values. You can construct a concrete instance of `DomainInstanceArrayInput` via:

DomainInstanceArray{ DomainInstanceArgs{...} }

type DomainInstanceArrayOutput

type DomainInstanceArrayOutput struct{ *pulumi.OutputState }

func (DomainInstanceArrayOutput) ElementType

func (DomainInstanceArrayOutput) ElementType() reflect.Type

func (DomainInstanceArrayOutput) Index

func (DomainInstanceArrayOutput) ToDomainInstanceArrayOutput

func (o DomainInstanceArrayOutput) ToDomainInstanceArrayOutput() DomainInstanceArrayOutput

func (DomainInstanceArrayOutput) ToDomainInstanceArrayOutputWithContext

func (o DomainInstanceArrayOutput) ToDomainInstanceArrayOutputWithContext(ctx context.Context) DomainInstanceArrayOutput

type DomainInstanceInput

type DomainInstanceInput interface {
	pulumi.Input

	ToDomainInstanceOutput() DomainInstanceOutput
	ToDomainInstanceOutputWithContext(ctx context.Context) DomainInstanceOutput
}

type DomainInstanceMap

type DomainInstanceMap map[string]DomainInstanceInput

func (DomainInstanceMap) ElementType

func (DomainInstanceMap) ElementType() reflect.Type

func (DomainInstanceMap) ToDomainInstanceMapOutput

func (i DomainInstanceMap) ToDomainInstanceMapOutput() DomainInstanceMapOutput

func (DomainInstanceMap) ToDomainInstanceMapOutputWithContext

func (i DomainInstanceMap) ToDomainInstanceMapOutputWithContext(ctx context.Context) DomainInstanceMapOutput

type DomainInstanceMapInput

type DomainInstanceMapInput interface {
	pulumi.Input

	ToDomainInstanceMapOutput() DomainInstanceMapOutput
	ToDomainInstanceMapOutputWithContext(context.Context) DomainInstanceMapOutput
}

DomainInstanceMapInput is an input type that accepts DomainInstanceMap and DomainInstanceMapOutput values. You can construct a concrete instance of `DomainInstanceMapInput` via:

DomainInstanceMap{ "key": DomainInstanceArgs{...} }

type DomainInstanceMapOutput

type DomainInstanceMapOutput struct{ *pulumi.OutputState }

func (DomainInstanceMapOutput) ElementType

func (DomainInstanceMapOutput) ElementType() reflect.Type

func (DomainInstanceMapOutput) MapIndex

func (DomainInstanceMapOutput) ToDomainInstanceMapOutput

func (o DomainInstanceMapOutput) ToDomainInstanceMapOutput() DomainInstanceMapOutput

func (DomainInstanceMapOutput) ToDomainInstanceMapOutputWithContext

func (o DomainInstanceMapOutput) ToDomainInstanceMapOutputWithContext(ctx context.Context) DomainInstanceMapOutput

type DomainInstanceOutput

type DomainInstanceOutput struct{ *pulumi.OutputState }

func (DomainInstanceOutput) CreateTime

func (o DomainInstanceOutput) CreateTime() pulumi.StringOutput

Create time of the domain.

func (DomainInstanceOutput) Domain

The Domain.

func (DomainInstanceOutput) ElementType

func (DomainInstanceOutput) ElementType() reflect.Type

func (DomainInstanceOutput) GroupId

The Group Id of Domain.

func (DomainInstanceOutput) IsMark

Whether to Mark the Domain.

func (DomainInstanceOutput) Remark

The remark of Domain.

func (DomainInstanceOutput) Status

The status of Domain.

func (DomainInstanceOutput) ToDomainInstanceOutput

func (o DomainInstanceOutput) ToDomainInstanceOutput() DomainInstanceOutput

func (DomainInstanceOutput) ToDomainInstanceOutputWithContext

func (o DomainInstanceOutput) ToDomainInstanceOutputWithContext(ctx context.Context) DomainInstanceOutput

type DomainInstanceState

type DomainInstanceState struct {
	// Create time of the domain.
	CreateTime pulumi.StringPtrInput
	// The Domain.
	Domain pulumi.StringPtrInput
	// The Group Id of Domain.
	GroupId pulumi.IntPtrInput
	// Whether to Mark the Domain.
	IsMark pulumi.StringPtrInput
	// The remark of Domain.
	Remark pulumi.StringPtrInput
	// The status of Domain.
	Status pulumi.StringPtrInput
}

func (DomainInstanceState) ElementType

func (DomainInstanceState) ElementType() reflect.Type

type GetRecordsRecordCountInfo added in v0.1.3

type GetRecordsRecordCountInfo struct {
	// The count of records returned in the list.
	ListCount int `pulumi:"listCount"`
	// The subdomain count.
	SubdomainCount int `pulumi:"subdomainCount"`
	// The total record count.
	TotalCount int `pulumi:"totalCount"`
}

type GetRecordsRecordCountInfoArgs added in v0.1.3

type GetRecordsRecordCountInfoArgs struct {
	// The count of records returned in the list.
	ListCount pulumi.IntInput `pulumi:"listCount"`
	// The subdomain count.
	SubdomainCount pulumi.IntInput `pulumi:"subdomainCount"`
	// The total record count.
	TotalCount pulumi.IntInput `pulumi:"totalCount"`
}

func (GetRecordsRecordCountInfoArgs) ElementType added in v0.1.3

func (GetRecordsRecordCountInfoArgs) ToGetRecordsRecordCountInfoOutput added in v0.1.3

func (i GetRecordsRecordCountInfoArgs) ToGetRecordsRecordCountInfoOutput() GetRecordsRecordCountInfoOutput

func (GetRecordsRecordCountInfoArgs) ToGetRecordsRecordCountInfoOutputWithContext added in v0.1.3

func (i GetRecordsRecordCountInfoArgs) ToGetRecordsRecordCountInfoOutputWithContext(ctx context.Context) GetRecordsRecordCountInfoOutput

type GetRecordsRecordCountInfoArray added in v0.1.3

type GetRecordsRecordCountInfoArray []GetRecordsRecordCountInfoInput

func (GetRecordsRecordCountInfoArray) ElementType added in v0.1.3

func (GetRecordsRecordCountInfoArray) ToGetRecordsRecordCountInfoArrayOutput added in v0.1.3

func (i GetRecordsRecordCountInfoArray) ToGetRecordsRecordCountInfoArrayOutput() GetRecordsRecordCountInfoArrayOutput

func (GetRecordsRecordCountInfoArray) ToGetRecordsRecordCountInfoArrayOutputWithContext added in v0.1.3

func (i GetRecordsRecordCountInfoArray) ToGetRecordsRecordCountInfoArrayOutputWithContext(ctx context.Context) GetRecordsRecordCountInfoArrayOutput

type GetRecordsRecordCountInfoArrayInput added in v0.1.3

type GetRecordsRecordCountInfoArrayInput interface {
	pulumi.Input

	ToGetRecordsRecordCountInfoArrayOutput() GetRecordsRecordCountInfoArrayOutput
	ToGetRecordsRecordCountInfoArrayOutputWithContext(context.Context) GetRecordsRecordCountInfoArrayOutput
}

GetRecordsRecordCountInfoArrayInput is an input type that accepts GetRecordsRecordCountInfoArray and GetRecordsRecordCountInfoArrayOutput values. You can construct a concrete instance of `GetRecordsRecordCountInfoArrayInput` via:

GetRecordsRecordCountInfoArray{ GetRecordsRecordCountInfoArgs{...} }

type GetRecordsRecordCountInfoArrayOutput added in v0.1.3

type GetRecordsRecordCountInfoArrayOutput struct{ *pulumi.OutputState }

func (GetRecordsRecordCountInfoArrayOutput) ElementType added in v0.1.3

func (GetRecordsRecordCountInfoArrayOutput) Index added in v0.1.3

func (GetRecordsRecordCountInfoArrayOutput) ToGetRecordsRecordCountInfoArrayOutput added in v0.1.3

func (o GetRecordsRecordCountInfoArrayOutput) ToGetRecordsRecordCountInfoArrayOutput() GetRecordsRecordCountInfoArrayOutput

func (GetRecordsRecordCountInfoArrayOutput) ToGetRecordsRecordCountInfoArrayOutputWithContext added in v0.1.3

func (o GetRecordsRecordCountInfoArrayOutput) ToGetRecordsRecordCountInfoArrayOutputWithContext(ctx context.Context) GetRecordsRecordCountInfoArrayOutput

type GetRecordsRecordCountInfoInput added in v0.1.3

type GetRecordsRecordCountInfoInput interface {
	pulumi.Input

	ToGetRecordsRecordCountInfoOutput() GetRecordsRecordCountInfoOutput
	ToGetRecordsRecordCountInfoOutputWithContext(context.Context) GetRecordsRecordCountInfoOutput
}

GetRecordsRecordCountInfoInput is an input type that accepts GetRecordsRecordCountInfoArgs and GetRecordsRecordCountInfoOutput values. You can construct a concrete instance of `GetRecordsRecordCountInfoInput` via:

GetRecordsRecordCountInfoArgs{...}

type GetRecordsRecordCountInfoOutput added in v0.1.3

type GetRecordsRecordCountInfoOutput struct{ *pulumi.OutputState }

func (GetRecordsRecordCountInfoOutput) ElementType added in v0.1.3

func (GetRecordsRecordCountInfoOutput) ListCount added in v0.1.3

The count of records returned in the list.

func (GetRecordsRecordCountInfoOutput) SubdomainCount added in v0.1.3

The subdomain count.

func (GetRecordsRecordCountInfoOutput) ToGetRecordsRecordCountInfoOutput added in v0.1.3

func (o GetRecordsRecordCountInfoOutput) ToGetRecordsRecordCountInfoOutput() GetRecordsRecordCountInfoOutput

func (GetRecordsRecordCountInfoOutput) ToGetRecordsRecordCountInfoOutputWithContext added in v0.1.3

func (o GetRecordsRecordCountInfoOutput) ToGetRecordsRecordCountInfoOutputWithContext(ctx context.Context) GetRecordsRecordCountInfoOutput

func (GetRecordsRecordCountInfoOutput) TotalCount added in v0.1.3

The total record count.

type GetRecordsResult added in v0.1.3

type GetRecordsResult struct {
	// The record split zone.
	Line string `pulumi:"line"`
	// The split zone ID.
	LineId string `pulumi:"lineId"`
	// The monitoring status of the record. Valid values: OK (normal), WARN (warning), and DOWN (downtime). It is empty if no monitoring is set or the monitoring is suspended.
	MonitorStatus string `pulumi:"monitorStatus"`
	// The MX value, applicable to the MX record only.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Mx int `pulumi:"mx"`
	// The host name.
	Name string `pulumi:"name"`
	// Record ID.
	RecordId int `pulumi:"recordId"`
	// The record remarks.
	Remark string `pulumi:"remark"`
	// The record status. Valid values: ENABLE (enabled), DISABLE (disabled).
	Status string `pulumi:"status"`
	// The record cache time.
	Ttl int `pulumi:"ttl"`
	// The record type.
	Type string `pulumi:"type"`
	// The update time.
	UpdatedOn string `pulumi:"updatedOn"`
	// The record value.
	Value string `pulumi:"value"`
	// The record weight, which is required for round-robin DNS records.
	Weight int `pulumi:"weight"`
}

type GetRecordsResultArgs added in v0.1.3

type GetRecordsResultArgs struct {
	// The record split zone.
	Line pulumi.StringInput `pulumi:"line"`
	// The split zone ID.
	LineId pulumi.StringInput `pulumi:"lineId"`
	// The monitoring status of the record. Valid values: OK (normal), WARN (warning), and DOWN (downtime). It is empty if no monitoring is set or the monitoring is suspended.
	MonitorStatus pulumi.StringInput `pulumi:"monitorStatus"`
	// The MX value, applicable to the MX record only.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Mx pulumi.IntInput `pulumi:"mx"`
	// The host name.
	Name pulumi.StringInput `pulumi:"name"`
	// Record ID.
	RecordId pulumi.IntInput `pulumi:"recordId"`
	// The record remarks.
	Remark pulumi.StringInput `pulumi:"remark"`
	// The record status. Valid values: ENABLE (enabled), DISABLE (disabled).
	Status pulumi.StringInput `pulumi:"status"`
	// The record cache time.
	Ttl pulumi.IntInput `pulumi:"ttl"`
	// The record type.
	Type pulumi.StringInput `pulumi:"type"`
	// The update time.
	UpdatedOn pulumi.StringInput `pulumi:"updatedOn"`
	// The record value.
	Value pulumi.StringInput `pulumi:"value"`
	// The record weight, which is required for round-robin DNS records.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (GetRecordsResultArgs) ElementType added in v0.1.3

func (GetRecordsResultArgs) ElementType() reflect.Type

func (GetRecordsResultArgs) ToGetRecordsResultOutput added in v0.1.3

func (i GetRecordsResultArgs) ToGetRecordsResultOutput() GetRecordsResultOutput

func (GetRecordsResultArgs) ToGetRecordsResultOutputWithContext added in v0.1.3

func (i GetRecordsResultArgs) ToGetRecordsResultOutputWithContext(ctx context.Context) GetRecordsResultOutput

type GetRecordsResultArray added in v0.1.3

type GetRecordsResultArray []GetRecordsResultInput

func (GetRecordsResultArray) ElementType added in v0.1.3

func (GetRecordsResultArray) ElementType() reflect.Type

func (GetRecordsResultArray) ToGetRecordsResultArrayOutput added in v0.1.3

func (i GetRecordsResultArray) ToGetRecordsResultArrayOutput() GetRecordsResultArrayOutput

func (GetRecordsResultArray) ToGetRecordsResultArrayOutputWithContext added in v0.1.3

func (i GetRecordsResultArray) ToGetRecordsResultArrayOutputWithContext(ctx context.Context) GetRecordsResultArrayOutput

type GetRecordsResultArrayInput added in v0.1.3

type GetRecordsResultArrayInput interface {
	pulumi.Input

	ToGetRecordsResultArrayOutput() GetRecordsResultArrayOutput
	ToGetRecordsResultArrayOutputWithContext(context.Context) GetRecordsResultArrayOutput
}

GetRecordsResultArrayInput is an input type that accepts GetRecordsResultArray and GetRecordsResultArrayOutput values. You can construct a concrete instance of `GetRecordsResultArrayInput` via:

GetRecordsResultArray{ GetRecordsResultArgs{...} }

type GetRecordsResultArrayOutput added in v0.1.3

type GetRecordsResultArrayOutput struct{ *pulumi.OutputState }

func (GetRecordsResultArrayOutput) ElementType added in v0.1.3

func (GetRecordsResultArrayOutput) Index added in v0.1.3

func (GetRecordsResultArrayOutput) ToGetRecordsResultArrayOutput added in v0.1.3

func (o GetRecordsResultArrayOutput) ToGetRecordsResultArrayOutput() GetRecordsResultArrayOutput

func (GetRecordsResultArrayOutput) ToGetRecordsResultArrayOutputWithContext added in v0.1.3

func (o GetRecordsResultArrayOutput) ToGetRecordsResultArrayOutputWithContext(ctx context.Context) GetRecordsResultArrayOutput

type GetRecordsResultInput added in v0.1.3

type GetRecordsResultInput interface {
	pulumi.Input

	ToGetRecordsResultOutput() GetRecordsResultOutput
	ToGetRecordsResultOutputWithContext(context.Context) GetRecordsResultOutput
}

GetRecordsResultInput is an input type that accepts GetRecordsResultArgs and GetRecordsResultOutput values. You can construct a concrete instance of `GetRecordsResultInput` via:

GetRecordsResultArgs{...}

type GetRecordsResultOutput added in v0.1.3

type GetRecordsResultOutput struct{ *pulumi.OutputState }

func (GetRecordsResultOutput) ElementType added in v0.1.3

func (GetRecordsResultOutput) ElementType() reflect.Type

func (GetRecordsResultOutput) Line added in v0.1.3

The record split zone.

func (GetRecordsResultOutput) LineId added in v0.1.3

The split zone ID.

func (GetRecordsResultOutput) MonitorStatus added in v0.1.3

func (o GetRecordsResultOutput) MonitorStatus() pulumi.StringOutput

The monitoring status of the record. Valid values: OK (normal), WARN (warning), and DOWN (downtime). It is empty if no monitoring is set or the monitoring is suspended.

func (GetRecordsResultOutput) Mx added in v0.1.3

The MX value, applicable to the MX record only. Note: This field may return null, indicating that no valid values can be obtained.

func (GetRecordsResultOutput) Name added in v0.1.3

The host name.

func (GetRecordsResultOutput) RecordId added in v0.1.3

Record ID.

func (GetRecordsResultOutput) Remark added in v0.1.3

The record remarks.

func (GetRecordsResultOutput) Status added in v0.1.3

The record status. Valid values: ENABLE (enabled), DISABLE (disabled).

func (GetRecordsResultOutput) ToGetRecordsResultOutput added in v0.1.3

func (o GetRecordsResultOutput) ToGetRecordsResultOutput() GetRecordsResultOutput

func (GetRecordsResultOutput) ToGetRecordsResultOutputWithContext added in v0.1.3

func (o GetRecordsResultOutput) ToGetRecordsResultOutputWithContext(ctx context.Context) GetRecordsResultOutput

func (GetRecordsResultOutput) Ttl added in v0.1.3

The record cache time.

func (GetRecordsResultOutput) Type added in v0.1.3

The record type.

func (GetRecordsResultOutput) UpdatedOn added in v0.1.3

The update time.

func (GetRecordsResultOutput) Value added in v0.1.3

The record value.

func (GetRecordsResultOutput) Weight added in v0.1.3

The record weight, which is required for round-robin DNS records.

type LookupRecordsArgs added in v0.1.3

type LookupRecordsArgs struct {
	// The domain for which DNS records are to be obtained.
	Domain *string `pulumi:"domain"`
	// The ID of the domain for which DNS records are to be obtained. If DomainId is passed in, the system will omit the parameter domain.
	DomainId *string `pulumi:"domainId"`
	// The group ID.
	GroupId *string `pulumi:"groupId"`
	// The keyword for searching for DNS records. Host headers and record values are supported.
	Keyword *string `pulumi:"keyword"`
	// The limit. It defaults to 100 and can be up to 3,000.
	Limit *int `pulumi:"limit"`
	// The offset. Default value: 0.
	Offset *int `pulumi:"offset"`
	// The split zone name.
	RecordLine *string `pulumi:"recordLine"`
	// The split zone ID. If `recordLineId` is passed in, the system will omit the parameter `recordLine`.
	RecordLineId *string `pulumi:"recordLineId"`
	// The type of DNS record, such as A, CNAME, NS, AAAA, explicit URL, implicit URL, CAA, or SPF record.
	RecordType *string `pulumi:"recordType"`
	// Used for store query result as JSON.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// The sorting field. Available values: name, line, type, value, weight, mx, and ttl,updated_on.
	SortField *string `pulumi:"sortField"`
	// The sorting type. Valid values: ASC (ascending, default), DESC (descending).
	SortType *string `pulumi:"sortType"`
	// The host header of a DNS record. If this parameter is passed in, only the DNS record corresponding to this host header will be returned.
	Subdomain *string `pulumi:"subdomain"`
}

A collection of arguments for invoking getRecords.

type LookupRecordsOutputArgs added in v0.1.3

type LookupRecordsOutputArgs struct {
	// The domain for which DNS records are to be obtained.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// The ID of the domain for which DNS records are to be obtained. If DomainId is passed in, the system will omit the parameter domain.
	DomainId pulumi.StringPtrInput `pulumi:"domainId"`
	// The group ID.
	GroupId pulumi.StringPtrInput `pulumi:"groupId"`
	// The keyword for searching for DNS records. Host headers and record values are supported.
	Keyword pulumi.StringPtrInput `pulumi:"keyword"`
	// The limit. It defaults to 100 and can be up to 3,000.
	Limit pulumi.IntPtrInput `pulumi:"limit"`
	// The offset. Default value: 0.
	Offset pulumi.IntPtrInput `pulumi:"offset"`
	// The split zone name.
	RecordLine pulumi.StringPtrInput `pulumi:"recordLine"`
	// The split zone ID. If `recordLineId` is passed in, the system will omit the parameter `recordLine`.
	RecordLineId pulumi.StringPtrInput `pulumi:"recordLineId"`
	// The type of DNS record, such as A, CNAME, NS, AAAA, explicit URL, implicit URL, CAA, or SPF record.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// Used for store query result as JSON.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// The sorting field. Available values: name, line, type, value, weight, mx, and ttl,updated_on.
	SortField pulumi.StringPtrInput `pulumi:"sortField"`
	// The sorting type. Valid values: ASC (ascending, default), DESC (descending).
	SortType pulumi.StringPtrInput `pulumi:"sortType"`
	// The host header of a DNS record. If this parameter is passed in, only the DNS record corresponding to this host header will be returned.
	Subdomain pulumi.StringPtrInput `pulumi:"subdomain"`
}

A collection of arguments for invoking getRecords.

func (LookupRecordsOutputArgs) ElementType added in v0.1.3

func (LookupRecordsOutputArgs) ElementType() reflect.Type

type LookupRecordsResult added in v0.1.3

type LookupRecordsResult struct {
	Domain   *string `pulumi:"domain"`
	DomainId *string `pulumi:"domainId"`
	GroupId  *string `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id      string  `pulumi:"id"`
	Keyword *string `pulumi:"keyword"`
	Limit   *int    `pulumi:"limit"`
	Offset  *int    `pulumi:"offset"`
	// Count info of the queried record list.
	RecordCountInfos []GetRecordsRecordCountInfo `pulumi:"recordCountInfos"`
	RecordLine       *string                     `pulumi:"recordLine"`
	RecordLineId     *string                     `pulumi:"recordLineId"`
	RecordType       *string                     `pulumi:"recordType"`
	ResultOutputFile *string                     `pulumi:"resultOutputFile"`
	// The record list result.
	Results   []GetRecordsResult `pulumi:"results"`
	SortField *string            `pulumi:"sortField"`
	SortType  *string            `pulumi:"sortType"`
	Subdomain *string            `pulumi:"subdomain"`
}

A collection of values returned by getRecords.

func LookupRecords added in v0.1.3

func LookupRecords(ctx *pulumi.Context, args *LookupRecordsArgs, opts ...pulumi.InvokeOption) (*LookupRecordsResult, error)

Use this data source to query dnspod record list.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		record, err := Dnspod.GetRecords(ctx, &dnspod.GetRecordsArgs{
			Domain:    pulumi.StringRef("example.com"),
			Subdomain: pulumi.StringRef("www"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("result", record.Results)
		return nil
	})
}

```

Use verbose filter

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		record, err := Dnspod.GetRecords(ctx, &dnspod.GetRecordsArgs{
			Domain:     pulumi.StringRef("example.com"),
			Subdomain:  pulumi.StringRef("www"),
			Limit:      pulumi.IntRef(100),
			RecordType: pulumi.StringRef("TXT"),
			SortField:  pulumi.StringRef("updated_on"),
			SortType:   pulumi.StringRef("DESC"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("result", record.Results)
		return nil
	})
}

```

type LookupRecordsResultOutput added in v0.1.3

type LookupRecordsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRecords.

func LookupRecordsOutput added in v0.1.3

func LookupRecordsOutput(ctx *pulumi.Context, args LookupRecordsOutputArgs, opts ...pulumi.InvokeOption) LookupRecordsResultOutput

func (LookupRecordsResultOutput) Domain added in v0.1.3

func (LookupRecordsResultOutput) DomainId added in v0.1.3

func (LookupRecordsResultOutput) ElementType added in v0.1.3

func (LookupRecordsResultOutput) ElementType() reflect.Type

func (LookupRecordsResultOutput) GroupId added in v0.1.3

func (LookupRecordsResultOutput) Id added in v0.1.3

The provider-assigned unique ID for this managed resource.

func (LookupRecordsResultOutput) Keyword added in v0.1.3

func (LookupRecordsResultOutput) Limit added in v0.1.3

func (LookupRecordsResultOutput) Offset added in v0.1.3

func (LookupRecordsResultOutput) RecordCountInfos added in v0.1.3

Count info of the queried record list.

func (LookupRecordsResultOutput) RecordLine added in v0.1.3

func (LookupRecordsResultOutput) RecordLineId added in v0.1.3

func (LookupRecordsResultOutput) RecordType added in v0.1.3

func (LookupRecordsResultOutput) ResultOutputFile added in v0.1.3

func (o LookupRecordsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (LookupRecordsResultOutput) Results added in v0.1.3

The record list result.

func (LookupRecordsResultOutput) SortField added in v0.1.3

func (LookupRecordsResultOutput) SortType added in v0.1.3

func (LookupRecordsResultOutput) Subdomain added in v0.1.3

func (LookupRecordsResultOutput) ToLookupRecordsResultOutput added in v0.1.3

func (o LookupRecordsResultOutput) ToLookupRecordsResultOutput() LookupRecordsResultOutput

func (LookupRecordsResultOutput) ToLookupRecordsResultOutputWithContext added in v0.1.3

func (o LookupRecordsResultOutput) ToLookupRecordsResultOutputWithContext(ctx context.Context) LookupRecordsResultOutput

type Record

type Record struct {
	pulumi.CustomResourceState

	// The Domain.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The D monitoring status of the record.
	MonitorStatus pulumi.StringOutput `pulumi:"monitorStatus"`
	// MX priority, valid when the record type is MX, range 1-20. Note: must set when record type equal MX.
	Mx pulumi.IntPtrOutput `pulumi:"mx"`
	// The record line.
	RecordLine pulumi.StringOutput `pulumi:"recordLine"`
	// The record type.
	RecordType pulumi.StringOutput `pulumi:"recordType"`
	// Records the initial state, with values ranging from ENABLE and DISABLE. The default is ENABLE, and if DISABLE is passed in, resolution will not take effect and the limits of load balancing will not be verified.
	Status pulumi.StringPtrOutput `pulumi:"status"`
	// The host records, default value is `@`.
	SubDomain pulumi.StringPtrOutput `pulumi:"subDomain"`
	// TTL, the range is 1-604800, and the minimum value of different levels of domain names is different. Default is 600.
	Ttl pulumi.IntPtrOutput `pulumi:"ttl"`
	// The record value.
	Value pulumi.StringOutput `pulumi:"value"`
	// Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.
	Weight pulumi.IntPtrOutput `pulumi:"weight"`
}

Provide a resource to create a DnsPod record.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dnspod"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dnspod.NewRecord(ctx, "demo", &Dnspod.RecordArgs{
			Domain:     pulumi.String("mikatong.com"),
			RecordLine: pulumi.String("默认"),
			RecordType: pulumi.String("A"),
			SubDomain:  pulumi.String("demo"),
			Value:      pulumi.String("1.2.3.9"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DnsPod Domain record can be imported using the Domain#RecordId, e.g.

```sh

$ pulumi import tencentcloud:Dnspod/record:Record demo arunma.com#1194109872

```

func GetRecord

func GetRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RecordState, opts ...pulumi.ResourceOption) (*Record, error)

GetRecord gets an existing Record resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRecord

func NewRecord(ctx *pulumi.Context,
	name string, args *RecordArgs, opts ...pulumi.ResourceOption) (*Record, error)

NewRecord registers a new resource with the given unique name, arguments, and options.

func (*Record) ElementType

func (*Record) ElementType() reflect.Type

func (*Record) ToRecordOutput

func (i *Record) ToRecordOutput() RecordOutput

func (*Record) ToRecordOutputWithContext

func (i *Record) ToRecordOutputWithContext(ctx context.Context) RecordOutput

type RecordArgs

type RecordArgs struct {
	// The Domain.
	Domain pulumi.StringInput
	// MX priority, valid when the record type is MX, range 1-20. Note: must set when record type equal MX.
	Mx pulumi.IntPtrInput
	// The record line.
	RecordLine pulumi.StringInput
	// The record type.
	RecordType pulumi.StringInput
	// Records the initial state, with values ranging from ENABLE and DISABLE. The default is ENABLE, and if DISABLE is passed in, resolution will not take effect and the limits of load balancing will not be verified.
	Status pulumi.StringPtrInput
	// The host records, default value is `@`.
	SubDomain pulumi.StringPtrInput
	// TTL, the range is 1-604800, and the minimum value of different levels of domain names is different. Default is 600.
	Ttl pulumi.IntPtrInput
	// The record value.
	Value pulumi.StringInput
	// Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.
	Weight pulumi.IntPtrInput
}

The set of arguments for constructing a Record resource.

func (RecordArgs) ElementType

func (RecordArgs) ElementType() reflect.Type

type RecordArray

type RecordArray []RecordInput

func (RecordArray) ElementType

func (RecordArray) ElementType() reflect.Type

func (RecordArray) ToRecordArrayOutput

func (i RecordArray) ToRecordArrayOutput() RecordArrayOutput

func (RecordArray) ToRecordArrayOutputWithContext

func (i RecordArray) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput

type RecordArrayInput

type RecordArrayInput interface {
	pulumi.Input

	ToRecordArrayOutput() RecordArrayOutput
	ToRecordArrayOutputWithContext(context.Context) RecordArrayOutput
}

RecordArrayInput is an input type that accepts RecordArray and RecordArrayOutput values. You can construct a concrete instance of `RecordArrayInput` via:

RecordArray{ RecordArgs{...} }

type RecordArrayOutput

type RecordArrayOutput struct{ *pulumi.OutputState }

func (RecordArrayOutput) ElementType

func (RecordArrayOutput) ElementType() reflect.Type

func (RecordArrayOutput) Index

func (RecordArrayOutput) ToRecordArrayOutput

func (o RecordArrayOutput) ToRecordArrayOutput() RecordArrayOutput

func (RecordArrayOutput) ToRecordArrayOutputWithContext

func (o RecordArrayOutput) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput

type RecordInput

type RecordInput interface {
	pulumi.Input

	ToRecordOutput() RecordOutput
	ToRecordOutputWithContext(ctx context.Context) RecordOutput
}

type RecordMap

type RecordMap map[string]RecordInput

func (RecordMap) ElementType

func (RecordMap) ElementType() reflect.Type

func (RecordMap) ToRecordMapOutput

func (i RecordMap) ToRecordMapOutput() RecordMapOutput

func (RecordMap) ToRecordMapOutputWithContext

func (i RecordMap) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput

type RecordMapInput

type RecordMapInput interface {
	pulumi.Input

	ToRecordMapOutput() RecordMapOutput
	ToRecordMapOutputWithContext(context.Context) RecordMapOutput
}

RecordMapInput is an input type that accepts RecordMap and RecordMapOutput values. You can construct a concrete instance of `RecordMapInput` via:

RecordMap{ "key": RecordArgs{...} }

type RecordMapOutput

type RecordMapOutput struct{ *pulumi.OutputState }

func (RecordMapOutput) ElementType

func (RecordMapOutput) ElementType() reflect.Type

func (RecordMapOutput) MapIndex

func (RecordMapOutput) ToRecordMapOutput

func (o RecordMapOutput) ToRecordMapOutput() RecordMapOutput

func (RecordMapOutput) ToRecordMapOutputWithContext

func (o RecordMapOutput) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput

type RecordOutput

type RecordOutput struct{ *pulumi.OutputState }

func (RecordOutput) Domain

func (o RecordOutput) Domain() pulumi.StringOutput

The Domain.

func (RecordOutput) ElementType

func (RecordOutput) ElementType() reflect.Type

func (RecordOutput) MonitorStatus

func (o RecordOutput) MonitorStatus() pulumi.StringOutput

The D monitoring status of the record.

func (RecordOutput) Mx

MX priority, valid when the record type is MX, range 1-20. Note: must set when record type equal MX.

func (RecordOutput) RecordLine

func (o RecordOutput) RecordLine() pulumi.StringOutput

The record line.

func (RecordOutput) RecordType

func (o RecordOutput) RecordType() pulumi.StringOutput

The record type.

func (RecordOutput) Status

func (o RecordOutput) Status() pulumi.StringPtrOutput

Records the initial state, with values ranging from ENABLE and DISABLE. The default is ENABLE, and if DISABLE is passed in, resolution will not take effect and the limits of load balancing will not be verified.

func (RecordOutput) SubDomain

func (o RecordOutput) SubDomain() pulumi.StringPtrOutput

The host records, default value is `@`.

func (RecordOutput) ToRecordOutput

func (o RecordOutput) ToRecordOutput() RecordOutput

func (RecordOutput) ToRecordOutputWithContext

func (o RecordOutput) ToRecordOutputWithContext(ctx context.Context) RecordOutput

func (RecordOutput) Ttl

TTL, the range is 1-604800, and the minimum value of different levels of domain names is different. Default is 600.

func (RecordOutput) Value

func (o RecordOutput) Value() pulumi.StringOutput

The record value.

func (RecordOutput) Weight

func (o RecordOutput) Weight() pulumi.IntPtrOutput

Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.

type RecordState

type RecordState struct {
	// The Domain.
	Domain pulumi.StringPtrInput
	// The D monitoring status of the record.
	MonitorStatus pulumi.StringPtrInput
	// MX priority, valid when the record type is MX, range 1-20. Note: must set when record type equal MX.
	Mx pulumi.IntPtrInput
	// The record line.
	RecordLine pulumi.StringPtrInput
	// The record type.
	RecordType pulumi.StringPtrInput
	// Records the initial state, with values ranging from ENABLE and DISABLE. The default is ENABLE, and if DISABLE is passed in, resolution will not take effect and the limits of load balancing will not be verified.
	Status pulumi.StringPtrInput
	// The host records, default value is `@`.
	SubDomain pulumi.StringPtrInput
	// TTL, the range is 1-604800, and the minimum value of different levels of domain names is different. Default is 600.
	Ttl pulumi.IntPtrInput
	// The record value.
	Value pulumi.StringPtrInput
	// Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.
	Weight pulumi.IntPtrInput
}

func (RecordState) ElementType

func (RecordState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL