udns

package
v0.22.26 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package udns include resources of ucloud udns product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateUDNSZoneVPCRequest

type AssociateUDNSZoneVPCRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// VPC资源ID
	VPCId *string `required:"true"`

	// VPC所属项目ID
	VPCProjectId *string `required:"true"`
}

AssociateUDNSZoneVPCRequest is request schema for AssociateUDNSZoneVPC action

type AssociateUDNSZoneVPCResponse

type AssociateUDNSZoneVPCResponse struct {
	response.CommonBase
}

AssociateUDNSZoneVPCResponse is response schema for AssociateUDNSZoneVPC action

type CreateUDNSRecordRequest

type CreateUDNSRecordRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// 主机记录
	Name *string `required:"true"`

	// 记录的备注信息
	Remark *string `required:"false"`

	// TTL值,范围为5-600,单位为秒。默认为5
	TTL *int `required:"false"`

	// 记录类型。枚举值,“A”,"CNAME","MX","AAAA","SRV","PTR","TXT"。
	Type *string `required:"true"`

	// 数值组,支持逗号分割。格式为:Value|权重|IsEnabled,其中权重支持1-10,IsEnabled为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
	Value *string `required:"true"`

	// 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
	ValueType *string `required:"true"`
}

CreateUDNSRecordRequest is request schema for CreateUDNSRecord action

type CreateUDNSRecordResponse

type CreateUDNSRecordResponse struct {
	response.CommonBase

	// 域名记录的资源ID
	DNSRecordId string
}

CreateUDNSRecordResponse is response schema for CreateUDNSRecord action

type CreateUDNSZoneRequest

type CreateUDNSZoneRequest struct {
	request.CommonBase

	// 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费,默认为按月付费
	ChargeType *string `required:"false"`

	// 代金券ID,默认不使用
	CouponId *string `required:"false"`

	// 域名字符串
	DNSZoneName *string `required:"true"`

	// 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
	IsRecursionEnabled *string `required:"false"`

	// 购买时长,默认为1
	Quantity *int `required:"false"`

	// 备注
	Remark *string `required:"false"`

	// 所属业务组名称
	Tag *string `required:"false"`

	// 域名类型。枚举值,“private”,内网DNS;“public”,公网DNS,暂只支持private。
	Type *string `required:"true"`
}

CreateUDNSZoneRequest is request schema for CreateUDNSZone action

type CreateUDNSZoneResponse

type CreateUDNSZoneResponse struct {
	response.CommonBase

	// 域名资源ID
	DNSZoneId string
}

CreateUDNSZoneResponse is response schema for CreateUDNSZone action

type DeleteUDNSRecordRequest

type DeleteUDNSRecordRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// 域名记录资源ID
	RecordIds []string `required:"true"`
}

DeleteUDNSRecordRequest is request schema for DeleteUDNSRecord action

type DeleteUDNSRecordResponse

type DeleteUDNSRecordResponse struct {
	response.CommonBase
}

DeleteUDNSRecordResponse is response schema for DeleteUDNSRecord action

type DescribeUDNSDomainRequest

type DescribeUDNSDomainRequest struct {
	request.CommonBase

	// zone名称
	DNSZoneName *string `required:"true"`

	// 返回数量
	Limit *int `required:"false"`

	// 查询数量偏移
	Offset *int `required:"false"`

	// VPI资源ID
	VPCId *string `required:"true"`
}

DescribeUDNSDomainRequest is request schema for DescribeUDNSDomain action

type DescribeUDNSDomainResponse

type DescribeUDNSDomainResponse struct {
	response.CommonBase

	// 查询记录
	RecordInfos []RecordInfo

	// 总条数
	TotalCount int
}

DescribeUDNSDomainResponse is response schema for DescribeUDNSDomain action

type DescribeUDNSRecordRequest

type DescribeUDNSRecordRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// 数据分页值, 默认为20
	Limit *int `required:"false"`

	// 数据偏移量, 默认为0
	Offset *int `required:"false"`

	// 域名记录资源ID
	RecordIds []string `required:"false"`
}

DescribeUDNSRecordRequest is request schema for DescribeUDNSRecord action

type DescribeUDNSRecordResponse

type DescribeUDNSRecordResponse struct {
	response.CommonBase

	// 域名记录详细信息
	RecordInfos []RecordInfo

	// 资源数量
	TotalCount int
}

DescribeUDNSRecordResponse is response schema for DescribeUDNSRecord action

type DescribeUDNSZoneRequest

type DescribeUDNSZoneRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneIds []string `required:"false"`

	// 数据分页值, 默认为20
	Limit *int `required:"false"`

	// 数据偏移量, 默认为0
	Offset *int `required:"false"`
}

DescribeUDNSZoneRequest is request schema for DescribeUDNSZone action

type DescribeUDNSZoneResponse

type DescribeUDNSZoneResponse struct {
	response.CommonBase

	// 域名资源信息
	DNSZoneInfos []ZoneInfo

	// 符合查询条件的域名数量
	TotalCount int
}

DescribeUDNSZoneResponse is response schema for DescribeUDNSZone action

type DisassociateUDNSZoneVPCRequest

type DisassociateUDNSZoneVPCRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// VPC资源ID
	VPCId *string `required:"true"`

	// VPC所属项目ID
	VPCProjectId *string `required:"true"`
}

DisassociateUDNSZoneVPCRequest is request schema for DisassociateUDNSZoneVPC action

type DisassociateUDNSZoneVPCResponse

type DisassociateUDNSZoneVPCResponse struct {
	response.CommonBase
}

DisassociateUDNSZoneVPCResponse is response schema for DisassociateUDNSZoneVPC action

type ModifyUDNSRecordRequest

type ModifyUDNSRecordRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// 域名记录资源ID
	RecordId *string `required:"true"`

	// 记录的备注信息
	Remark *string `required:"false"`

	// TTL值,单位为秒
	TTL *int `required:"false"`

	// 数值组,支持逗号分割。格式为:Value|权重|Enable,其中权重支持1-10,Enable为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
	Value *string `required:"false"`

	// 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
	ValueType *string `required:"false"`
}

ModifyUDNSRecordRequest is request schema for ModifyUDNSRecord action

type ModifyUDNSRecordResponse

type ModifyUDNSRecordResponse struct {
	response.CommonBase
}

ModifyUDNSRecordResponse is response schema for ModifyUDNSRecord action

type ModifyUDNSZoneRequest

type ModifyUDNSZoneRequest struct {
	request.CommonBase

	// 域名资源ID
	DNSZoneId *string `required:"true"`

	// 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
	IsRecursionEnabled *string `required:"false"`

	// 备注
	Remark *string `required:"false"`
}

ModifyUDNSZoneRequest is request schema for ModifyUDNSZone action

type ModifyUDNSZoneResponse

type ModifyUDNSZoneResponse struct {
	response.CommonBase
}

ModifyUDNSZoneResponse is response schema for ModifyUDNSZone action

type RecordInfo

type RecordInfo struct {

	// 主机记录
	Name string

	// 域名记录资源ID
	RecordId string

	// 记录备注信息
	Remark string

	// TTL值,单位为秒
	TTL int

	// 记录类型
	Type string

	// 数值组
	ValueSet []ValueSet

	// 记录策略,标准或随机应答
	ValueType string
}

RecordInfo - DescribeUDNSRecord

type UDNSClient

type UDNSClient struct {
	*ucloud.Client
}

UDNSClient is the client of UDNS

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UDNSClient

NewClient will return a instance of UDNSClient

func (*UDNSClient) AssociateUDNSZoneVPC

API: AssociateUDNSZoneVPC

绑定域名与VPC

func (*UDNSClient) CreateUDNSRecord

func (c *UDNSClient) CreateUDNSRecord(req *CreateUDNSRecordRequest) (*CreateUDNSRecordResponse, error)

API: CreateUDNSRecord

创建域名记录

func (*UDNSClient) CreateUDNSZone

func (c *UDNSClient) CreateUDNSZone(req *CreateUDNSZoneRequest) (*CreateUDNSZoneResponse, error)

API: CreateUDNSZone

创建域名

func (*UDNSClient) DeleteUDNSRecord

func (c *UDNSClient) DeleteUDNSRecord(req *DeleteUDNSRecordRequest) (*DeleteUDNSRecordResponse, error)

API: DeleteUDNSRecord

删除域名记录

func (*UDNSClient) DescribeUDNSDomain

func (c *UDNSClient) DescribeUDNSDomain(req *DescribeUDNSDomainRequest) (*DescribeUDNSDomainResponse, error)

API: DescribeUDNSDomain

zone下所有域名的rr记录

func (*UDNSClient) DescribeUDNSRecord

func (c *UDNSClient) DescribeUDNSRecord(req *DescribeUDNSRecordRequest) (*DescribeUDNSRecordResponse, error)

API: DescribeUDNSRecord

获取域名记录

func (*UDNSClient) DescribeUDNSZone

func (c *UDNSClient) DescribeUDNSZone(req *DescribeUDNSZoneRequest) (*DescribeUDNSZoneResponse, error)

API: DescribeUDNSZone

获取域名信息

func (*UDNSClient) DisassociateUDNSZoneVPC

API: DisassociateUDNSZoneVPC

解绑域名和VPC

func (*UDNSClient) ModifyUDNSRecord

func (c *UDNSClient) ModifyUDNSRecord(req *ModifyUDNSRecordRequest) (*ModifyUDNSRecordResponse, error)

API: ModifyUDNSRecord

修改域名记录

func (*UDNSClient) ModifyUDNSZone

func (c *UDNSClient) ModifyUDNSZone(req *ModifyUDNSZoneRequest) (*ModifyUDNSZoneResponse, error)

API: ModifyUDNSZone

修改域名备注/递归查询状态

func (*UDNSClient) NewAssociateUDNSZoneVPCRequest

func (c *UDNSClient) NewAssociateUDNSZoneVPCRequest() *AssociateUDNSZoneVPCRequest

NewAssociateUDNSZoneVPCRequest will create request of AssociateUDNSZoneVPC action.

func (*UDNSClient) NewCreateUDNSRecordRequest

func (c *UDNSClient) NewCreateUDNSRecordRequest() *CreateUDNSRecordRequest

NewCreateUDNSRecordRequest will create request of CreateUDNSRecord action.

func (*UDNSClient) NewCreateUDNSZoneRequest

func (c *UDNSClient) NewCreateUDNSZoneRequest() *CreateUDNSZoneRequest

NewCreateUDNSZoneRequest will create request of CreateUDNSZone action.

func (*UDNSClient) NewDeleteUDNSRecordRequest

func (c *UDNSClient) NewDeleteUDNSRecordRequest() *DeleteUDNSRecordRequest

NewDeleteUDNSRecordRequest will create request of DeleteUDNSRecord action.

func (*UDNSClient) NewDescribeUDNSDomainRequest

func (c *UDNSClient) NewDescribeUDNSDomainRequest() *DescribeUDNSDomainRequest

NewDescribeUDNSDomainRequest will create request of DescribeUDNSDomain action.

func (*UDNSClient) NewDescribeUDNSRecordRequest

func (c *UDNSClient) NewDescribeUDNSRecordRequest() *DescribeUDNSRecordRequest

NewDescribeUDNSRecordRequest will create request of DescribeUDNSRecord action.

func (*UDNSClient) NewDescribeUDNSZoneRequest

func (c *UDNSClient) NewDescribeUDNSZoneRequest() *DescribeUDNSZoneRequest

NewDescribeUDNSZoneRequest will create request of DescribeUDNSZone action.

func (*UDNSClient) NewDisassociateUDNSZoneVPCRequest

func (c *UDNSClient) NewDisassociateUDNSZoneVPCRequest() *DisassociateUDNSZoneVPCRequest

NewDisassociateUDNSZoneVPCRequest will create request of DisassociateUDNSZoneVPC action.

func (*UDNSClient) NewModifyUDNSRecordRequest

func (c *UDNSClient) NewModifyUDNSRecordRequest() *ModifyUDNSRecordRequest

NewModifyUDNSRecordRequest will create request of ModifyUDNSRecord action.

func (*UDNSClient) NewModifyUDNSZoneRequest

func (c *UDNSClient) NewModifyUDNSZoneRequest() *ModifyUDNSZoneRequest

NewModifyUDNSZoneRequest will create request of ModifyUDNSZone action.

type VPCInfo

type VPCInfo struct {

	// VPC名称
	Name string

	// VPC地址空间
	Network []string

	// VPC ID
	VPCId string

	// VPC所属项目ID
	VPCProjectId string

	// VPC类型:Normal 公有云 Hybrid 托管云
	VPCType string
}

VPCInfo - ZoneInfo

type ValueSet

type ValueSet struct {

	// 主机记录
	Data string

	// 是否启用
	IsEnabled int

	// 权重
	Weight int
}

ValueSet - RecordInfos

type ZoneInfo

type ZoneInfo struct {

	// 计费类型(Dynamic、Month、Year)
	ChargeType string

	// 创建时间
	CreateTime int

	// 域名名称
	DNSZoneName string

	// 过期时间
	ExpireTime int

	// 是否开启自动续费(Yes No)
	IsAutoRenew string

	// 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
	IsRecursionEnabled string

	// 记录相关ID
	RecordInfos []string

	// 备注
	Remark string

	// 业务组
	Tag string

	// 绑定的VPC信息
	VPCInfos []VPCInfo
}

ZoneInfo - DescribeUDNSZone

Jump to

Keyboard shortcuts

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