v20190605

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-06-05"

Variables

This section is empty.

Functions

This section is empty.

Types

type CertInfo

type CertInfo struct {

	// 证书sha1
	Hash *string `json:"Hash,omitempty" name:"Hash"`

	// 证书通用名称
	CN *string `json:"CN,omitempty" name:"CN"`

	// 备用名称
	SANs *string `json:"SANs,omitempty" name:"SANs"`

	// 公钥算法
	KeyAlgo *string `json:"KeyAlgo,omitempty" name:"KeyAlgo"`

	// 颁发者
	Issuer *string `json:"Issuer,omitempty" name:"Issuer"`

	// 有效期开始
	BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`

	// 有效期结束
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 剩余天数
	Days *int64 `json:"Days,omitempty" name:"Days"`

	// 品牌
	Brand *string `json:"Brand,omitempty" name:"Brand"`

	// 信任状态
	TrustStatus *string `json:"TrustStatus,omitempty" name:"TrustStatus"`

	// 证书类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	CertType *string `json:"CertType,omitempty" name:"CertType"`
}

type ChartHistogram

type ChartHistogram struct {

	// 项目名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 项目值
	Children []*ChartNameValue `json:"Children,omitempty" name:"Children" list`
}

type ChartNameValue

type ChartNameValue struct {

	// 图表项名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 图表项值
	Value *int64 `json:"Value,omitempty" name:"Value"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateDomain

func (c *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDomainResponse, err error)

通过域名端口添加监控

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error)

通过域名ID删除监控的域名

func (*Client) DescribeDashboard

func (c *Client) DescribeDashboard(request *DescribeDashboardRequest) (response *DescribeDashboardResponse, err error)

获取仪表盘数据

func (*Client) DescribeDomainCerts

func (c *Client) DescribeDomainCerts(request *DescribeDomainCertsRequest) (response *DescribeDomainCertsResponse, err error)

获取域名关联证书

func (*Client) DescribeDomainTags

func (c *Client) DescribeDomainTags(request *DescribeDomainTagsRequest) (response *DescribeDomainTagsResponse, err error)

获取账号下所有tag

func (*Client) DescribeDomains

func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)

通过searchType搜索已经添加的域名

func (*Client) DescribeNoticeInfo

func (c *Client) DescribeNoticeInfo(request *DescribeNoticeInfoRequest) (response *DescribeNoticeInfoResponse, err error)

获取通知额度信息

func (*Client) ModifyDomainTags

func (c *Client) ModifyDomainTags(request *ModifyDomainTagsRequest) (response *ModifyDomainTagsResponse, err error)

修改域名tag

func (*Client) RefreshDomain

func (c *Client) RefreshDomain(request *RefreshDomainRequest) (response *RefreshDomainResponse, err error)

强制重新检测域名

func (*Client) ResolveDomain

func (c *Client) ResolveDomain(request *ResolveDomainRequest) (response *ResolveDomainResponse, err error)

解析域名获得多个IP地址

type CreateDomainRequest

type CreateDomainRequest struct {
	*tchttp.BaseRequest

	// 监控的服务器类型(0:web,1:smtp,2:imap,3:pops)
	ServerType *int64 `json:"ServerType,omitempty" name:"ServerType"`

	// 添加的域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// 添加的端口
	Port *string `json:"Port,omitempty" name:"Port"`

	// 指定域名的IP
	IP *string `json:"IP,omitempty" name:"IP"`

	// 是否开启通知告警
	Notice *bool `json:"Notice,omitempty" name:"Notice"`

	// 给域名添加标签,多个以逗号隔开
	Tags *string `json:"Tags,omitempty" name:"Tags"`
}

func NewCreateDomainRequest

func NewCreateDomainRequest() (request *CreateDomainRequest)

func (*CreateDomainRequest) FromJsonString

func (r *CreateDomainRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDomainRequest) ToJsonString

func (r *CreateDomainRequest) ToJsonString() string

type CreateDomainResponse

type CreateDomainResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateDomainResponse

func NewCreateDomainResponse() (response *CreateDomainResponse)

func (*CreateDomainResponse) FromJsonString

func (r *CreateDomainResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDomainResponse) ToJsonString

func (r *CreateDomainResponse) ToJsonString() string

type DashboardResult

type DashboardResult struct {

	// 安全等级图表
	SecurityLevelPie []*ChartNameValue `json:"SecurityLevelPie,omitempty" name:"SecurityLevelPie" list`

	// 证书品牌图表
	CertBrandsPie []*ChartNameValue `json:"CertBrandsPie,omitempty" name:"CertBrandsPie" list`

	// 证书有效时间图表
	CertValidTimePie []*ChartNameValue `json:"CertValidTimePie,omitempty" name:"CertValidTimePie" list`

	// 证书类型图表
	CertTypePie []*ChartNameValue `json:"CertTypePie,omitempty" name:"CertTypePie" list`

	// ssl bugs图表
	SSLBugsLoopholeHistogram []*ChartHistogram `json:"SSLBugsLoopholeHistogram,omitempty" name:"SSLBugsLoopholeHistogram" list`

	// 合规图表
	ComplianceHistogram []*ChartHistogram `json:"ComplianceHistogram,omitempty" name:"ComplianceHistogram" list`
}

type DeleteDomainRequest

type DeleteDomainRequest struct {
	*tchttp.BaseRequest

	// 域名ID,可通过搜索域名接口获得
	DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDeleteDomainRequest

func NewDeleteDomainRequest() (request *DeleteDomainRequest)

func (*DeleteDomainRequest) FromJsonString

func (r *DeleteDomainRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDomainRequest) ToJsonString

func (r *DeleteDomainRequest) ToJsonString() string

type DeleteDomainResponse

type DeleteDomainResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteDomainResponse

func NewDeleteDomainResponse() (response *DeleteDomainResponse)

func (*DeleteDomainResponse) FromJsonString

func (r *DeleteDomainResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDomainResponse) ToJsonString

func (r *DeleteDomainResponse) ToJsonString() string

type DescribeDashboardRequest

type DescribeDashboardRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeDashboardRequest

func NewDescribeDashboardRequest() (request *DescribeDashboardRequest)

func (*DescribeDashboardRequest) FromJsonString

func (r *DescribeDashboardRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDashboardRequest) ToJsonString

func (r *DescribeDashboardRequest) ToJsonString() string

type DescribeDashboardResponse

type DescribeDashboardResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// dashboard面板数据
		// 注意:此字段可能返回 null,表示取不到有效值。
		Data *DashboardResult `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDashboardResponse

func NewDescribeDashboardResponse() (response *DescribeDashboardResponse)

func (*DescribeDashboardResponse) FromJsonString

func (r *DescribeDashboardResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDashboardResponse) ToJsonString

func (r *DescribeDashboardResponse) ToJsonString() string

type DescribeDomainCertsRequest

type DescribeDomainCertsRequest struct {
	*tchttp.BaseRequest

	// 域名ID,可通过搜索域名接口获得
	DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDescribeDomainCertsRequest

func NewDescribeDomainCertsRequest() (request *DescribeDomainCertsRequest)

func (*DescribeDomainCertsRequest) FromJsonString

func (r *DescribeDomainCertsRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainCertsRequest) ToJsonString

func (r *DescribeDomainCertsRequest) ToJsonString() string

type DescribeDomainCertsResponse

type DescribeDomainCertsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 证书信息
		Data []*CertInfo `json:"Data,omitempty" name:"Data" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDomainCertsResponse

func NewDescribeDomainCertsResponse() (response *DescribeDomainCertsResponse)

func (*DescribeDomainCertsResponse) FromJsonString

func (r *DescribeDomainCertsResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainCertsResponse) ToJsonString

func (r *DescribeDomainCertsResponse) ToJsonString() string

type DescribeDomainTagsRequest

type DescribeDomainTagsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeDomainTagsRequest

func NewDescribeDomainTagsRequest() (request *DescribeDomainTagsRequest)

func (*DescribeDomainTagsRequest) FromJsonString

func (r *DescribeDomainTagsRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainTagsRequest) ToJsonString

func (r *DescribeDomainTagsRequest) ToJsonString() string

type DescribeDomainTagsResponse

type DescribeDomainTagsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Tag数组
		Data []*string `json:"Data,omitempty" name:"Data" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDomainTagsResponse

func NewDescribeDomainTagsResponse() (response *DescribeDomainTagsResponse)

func (*DescribeDomainTagsResponse) FromJsonString

func (r *DescribeDomainTagsResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainTagsResponse) ToJsonString

func (r *DescribeDomainTagsResponse) ToJsonString() string

type DescribeDomains

type DescribeDomains struct {

	// 列表数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	Result []*DomainSiteInfo `json:"Result,omitempty" name:"Result" list`

	// 搜索出来的数量
	SearchTotal *int64 `json:"SearchTotal,omitempty" name:"SearchTotal"`

	// 总数
	Total *int64 `json:"Total,omitempty" name:"Total"`

	// 允许的监控数量
	AllowMonitoringCount *int64 `json:"AllowMonitoringCount,omitempty" name:"AllowMonitoringCount"`

	// 当前监控的数量
	CurrentMonitoringCount *int64 `json:"CurrentMonitoringCount,omitempty" name:"CurrentMonitoringCount"`

	// 允许添加域名总数
	AllowMaxAddDomain *int64 `json:"AllowMaxAddDomain,omitempty" name:"AllowMaxAddDomain"`
}

type DescribeDomainsRequest

type DescribeDomainsRequest struct {
	*tchttp.BaseRequest

	// 偏移量
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 获取数量
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 搜索的类型 Enums(none,tags,grade,brand,code,hash,limit)
	SearchType *string `json:"SearchType,omitempty" name:"SearchType"`

	// 标签,多个标签用逗号分隔
	Tag *string `json:"Tag,omitempty" name:"Tag"`

	// 等级
	Grade *string `json:"Grade,omitempty" name:"Grade"`

	// 品牌
	Brand *string `json:"Brand,omitempty" name:"Brand"`

	// 混合搜索
	Code *string `json:"Code,omitempty" name:"Code"`

	// 证书指纹
	Hash *string `json:"Hash,omitempty" name:"Hash"`

	// 搜索图标类型
	Item *string `json:"Item,omitempty" name:"Item"`

	// 搜索图标值
	Status *string `json:"Status,omitempty" name:"Status"`
}

func NewDescribeDomainsRequest

func NewDescribeDomainsRequest() (request *DescribeDomainsRequest)

func (*DescribeDomainsRequest) FromJsonString

func (r *DescribeDomainsRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainsRequest) ToJsonString

func (r *DescribeDomainsRequest) ToJsonString() string

type DescribeDomainsResponse

type DescribeDomainsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 列表数据
		Data *DescribeDomains `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDomainsResponse

func NewDescribeDomainsResponse() (response *DescribeDomainsResponse)

func (*DescribeDomainsResponse) FromJsonString

func (r *DescribeDomainsResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainsResponse) ToJsonString

func (r *DescribeDomainsResponse) ToJsonString() string

type DescribeNoticeInfoRequest

type DescribeNoticeInfoRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeNoticeInfoRequest

func NewDescribeNoticeInfoRequest() (request *DescribeNoticeInfoRequest)

func (*DescribeNoticeInfoRequest) FromJsonString

func (r *DescribeNoticeInfoRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNoticeInfoRequest) ToJsonString

func (r *DescribeNoticeInfoRequest) ToJsonString() string

type DescribeNoticeInfoResponse

type DescribeNoticeInfoResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 通知信息结果
		Data *NoticeInfoResult `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeNoticeInfoResponse

func NewDescribeNoticeInfoResponse() (response *DescribeNoticeInfoResponse)

func (*DescribeNoticeInfoResponse) FromJsonString

func (r *DescribeNoticeInfoResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNoticeInfoResponse) ToJsonString

func (r *DescribeNoticeInfoResponse) ToJsonString() string

type DomainSiteInfo

type DomainSiteInfo struct {

	// ID
	Id *int64 `json:"Id,omitempty" name:"Id"`

	// 域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// IP地址
	Ip *string `json:"Ip,omitempty" name:"Ip"`

	// 是否自动获取IP
	AutoIP *bool `json:"AutoIP,omitempty" name:"AutoIP"`

	// 监控服务类型
	ServerType *int64 `json:"ServerType,omitempty" name:"ServerType"`

	// 证书品牌
	Brand *string `json:"Brand,omitempty" name:"Brand"`

	// 评级
	Grade *string `json:"Grade,omitempty" name:"Grade"`

	// 评级Code
	GradeCode *int64 `json:"GradeCode,omitempty" name:"GradeCode"`

	// 是否监控告警
	Notice *bool `json:"Notice,omitempty" name:"Notice"`

	// 账号域名关系ID
	AccountDomainId *int64 `json:"AccountDomainId,omitempty" name:"AccountDomainId"`

	// 标签
	// 注意:此字段可能返回 null,表示取不到有效值。
	Tags []*string `json:"Tags,omitempty" name:"Tags" list`

	// 域名状态
	Status *string `json:"Status,omitempty" name:"Status"`

	// 域名端口
	Port *string `json:"Port,omitempty" name:"Port"`
}

type LimitInfo

type LimitInfo struct {

	// 通知类型
	Type *string `json:"Type,omitempty" name:"Type"`

	// 总量
	Total *int64 `json:"Total,omitempty" name:"Total"`

	// 已发送
	Sent *int64 `json:"Sent,omitempty" name:"Sent"`
}

type ModifyDomainTagsRequest

type ModifyDomainTagsRequest struct {
	*tchttp.BaseRequest

	// 账号下域名ID
	AccountDomainId *int64 `json:"AccountDomainId,omitempty" name:"AccountDomainId"`

	// 更新后的tag,多个以逗号隔开
	Tags *string `json:"Tags,omitempty" name:"Tags"`
}

func NewModifyDomainTagsRequest

func NewModifyDomainTagsRequest() (request *ModifyDomainTagsRequest)

func (*ModifyDomainTagsRequest) FromJsonString

func (r *ModifyDomainTagsRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainTagsRequest) ToJsonString

func (r *ModifyDomainTagsRequest) ToJsonString() string

type ModifyDomainTagsResponse

type ModifyDomainTagsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyDomainTagsResponse

func NewModifyDomainTagsResponse() (response *ModifyDomainTagsResponse)

func (*ModifyDomainTagsResponse) FromJsonString

func (r *ModifyDomainTagsResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainTagsResponse) ToJsonString

func (r *ModifyDomainTagsResponse) ToJsonString() string

type NoticeInfoResult

type NoticeInfoResult struct {

	// 通知ID
	Id *int64 `json:"Id,omitempty" name:"Id"`

	// 通知开关信息
	NoticeType *int64 `json:"NoticeType,omitempty" name:"NoticeType"`

	// 额度信息
	LimitInfos []*LimitInfo `json:"LimitInfos,omitempty" name:"LimitInfos" list`
}

type RefreshDomainRequest

type RefreshDomainRequest struct {
	*tchttp.BaseRequest

	// 域名列表中的ID,可通过搜索域名接口获得
	DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewRefreshDomainRequest

func NewRefreshDomainRequest() (request *RefreshDomainRequest)

func (*RefreshDomainRequest) FromJsonString

func (r *RefreshDomainRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RefreshDomainRequest) ToJsonString

func (r *RefreshDomainRequest) ToJsonString() string

type RefreshDomainResponse

type RefreshDomainResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRefreshDomainResponse

func NewRefreshDomainResponse() (response *RefreshDomainResponse)

func (*RefreshDomainResponse) FromJsonString

func (r *RefreshDomainResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RefreshDomainResponse) ToJsonString

func (r *RefreshDomainResponse) ToJsonString() string

type ResolveDomainRequest

type ResolveDomainRequest struct {
	*tchttp.BaseRequest

	// 域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`
}

func NewResolveDomainRequest

func NewResolveDomainRequest() (request *ResolveDomainRequest)

func (*ResolveDomainRequest) FromJsonString

func (r *ResolveDomainRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResolveDomainRequest) ToJsonString

func (r *ResolveDomainRequest) ToJsonString() string

type ResolveDomainResponse

type ResolveDomainResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 响应数据
		Data []*string `json:"Data,omitempty" name:"Data" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResolveDomainResponse

func NewResolveDomainResponse() (response *ResolveDomainResponse)

func (*ResolveDomainResponse) FromJsonString

func (r *ResolveDomainResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResolveDomainResponse) ToJsonString

func (r *ResolveDomainResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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