Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "central" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type AuditLogs struct + Item []Item + type ClearInstanceStorageRequest struct + InstanceId string + Lang string + SourceIp string + StorageCategory string + StorageSpace string + func CreateClearInstanceStorageRequest() (request *ClearInstanceStorageRequest) + type ClearInstanceStorageResponse struct + RequestId string + func CreateClearInstanceStorageResponse() (response *ClearInstanceStorageResponse) + type Client struct + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) ClearInstanceStorage(request *ClearInstanceStorageRequest) (response *ClearInstanceStorageResponse, err error) + func (client *Client) ClearInstanceStorageWithCallback(request *ClearInstanceStorageRequest, ...) <-chan int + func (client *Client) ClearInstanceStorageWithChan(request *ClearInstanceStorageRequest) (<-chan *ClearInstanceStorageResponse, <-chan error) + func (client *Client) ConfigInstanceWhiteList(request *ConfigInstanceWhiteListRequest) (response *ConfigInstanceWhiteListResponse, err error) + func (client *Client) ConfigInstanceWhiteListWithCallback(request *ConfigInstanceWhiteListRequest, ...) <-chan int + func (client *Client) ConfigInstanceWhiteListWithChan(request *ConfigInstanceWhiteListRequest) (<-chan *ConfigInstanceWhiteListResponse, <-chan error) + func (client *Client) DeleteAlarmReceiveConfig(request *DeleteAlarmReceiveConfigRequest) (response *DeleteAlarmReceiveConfigResponse, err error) + func (client *Client) DeleteAlarmReceiveConfigWithCallback(request *DeleteAlarmReceiveConfigRequest, ...) <-chan int + func (client *Client) DeleteAlarmReceiveConfigWithChan(request *DeleteAlarmReceiveConfigRequest) (<-chan *DeleteAlarmReceiveConfigResponse, <-chan error) + func (client *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error) + func (client *Client) DescribeAuditLogsWithCallback(request *DescribeAuditLogsRequest, ...) <-chan int + func (client *Client) DescribeAuditLogsWithChan(request *DescribeAuditLogsRequest) (<-chan *DescribeAuditLogsResponse, <-chan error) + func (client *Client) DescribeEventLogs(request *DescribeEventLogsRequest) (response *DescribeEventLogsResponse, err error) + func (client *Client) DescribeEventLogsWithCallback(request *DescribeEventLogsRequest, ...) <-chan int + func (client *Client) DescribeEventLogsWithChan(request *DescribeEventLogsRequest) (<-chan *DescribeEventLogsResponse, <-chan error) + func (client *Client) DescribeInstanceAttribue(request *DescribeInstanceAttribueRequest) (response *DescribeInstanceAttribueResponse, err error) + func (client *Client) DescribeInstanceAttribueWithCallback(request *DescribeInstanceAttribueRequest, ...) <-chan int + func (client *Client) DescribeInstanceAttribueWithChan(request *DescribeInstanceAttribueRequest) (<-chan *DescribeInstanceAttribueResponse, <-chan error) + func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttributeRequest) (response *DescribeInstanceAttributeResponse, err error) + func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeInstanceAttributeRequest, ...) <-chan int + func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanceAttributeRequest) (<-chan *DescribeInstanceAttributeResponse, <-chan error) + func (client *Client) DescribeInstanceStorage(request *DescribeInstanceStorageRequest) (response *DescribeInstanceStorageResponse, err error) + func (client *Client) DescribeInstanceStorageWithCallback(request *DescribeInstanceStorageRequest, ...) <-chan int + func (client *Client) DescribeInstanceStorageWithChan(request *DescribeInstanceStorageRequest) (<-chan *DescribeInstanceStorageResponse, <-chan error) + func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) + func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, ...) <-chan int + func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) + func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) + func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, ...) <-chan int + func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) + func (client *Client) DescribeSessionLogs(request *DescribeSessionLogsRequest) (response *DescribeSessionLogsResponse, err error) + func (client *Client) DescribeSessionLogsWithCallback(request *DescribeSessionLogsRequest, ...) <-chan int + func (client *Client) DescribeSessionLogsWithChan(request *DescribeSessionLogsRequest) (<-chan *DescribeSessionLogsResponse, <-chan error) + func (client *Client) DisableInstancePublicAccess(request *DisableInstancePublicAccessRequest) (response *DisableInstancePublicAccessResponse, err error) + func (client *Client) DisableInstancePublicAccessWithCallback(request *DisableInstancePublicAccessRequest, ...) <-chan int + func (client *Client) DisableInstancePublicAccessWithChan(request *DisableInstancePublicAccessRequest) (<-chan *DisableInstancePublicAccessResponse, <-chan error) + func (client *Client) EnableInstancePublicAccess(request *EnableInstancePublicAccessRequest) (response *EnableInstancePublicAccessResponse, err error) + func (client *Client) EnableInstancePublicAccessWithCallback(request *EnableInstancePublicAccessRequest, ...) <-chan int + func (client *Client) EnableInstancePublicAccessWithChan(request *EnableInstancePublicAccessRequest) (<-chan *EnableInstancePublicAccessResponse, <-chan error) + func (client *Client) ListTagKeys(request *ListTagKeysRequest) (response *ListTagKeysResponse, err error) + func (client *Client) ListTagKeysWithCallback(request *ListTagKeysRequest, ...) <-chan int + func (client *Client) ListTagKeysWithChan(request *ListTagKeysRequest) (<-chan *ListTagKeysResponse, <-chan error) + func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) + func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, ...) <-chan int + func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) + func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRequest) (response *ModifyInstanceAttributeResponse, err error) + func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanceAttributeRequest, ...) <-chan int + func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAttributeRequest) (<-chan *ModifyInstanceAttributeResponse, <-chan error) + func (client *Client) ModifyInstanceStorage(request *ModifyInstanceStorageRequest) (response *ModifyInstanceStorageResponse, err error) + func (client *Client) ModifyInstanceStorageWithCallback(request *ModifyInstanceStorageRequest, ...) <-chan int + func (client *Client) ModifyInstanceStorageWithChan(request *ModifyInstanceStorageRequest) (<-chan *ModifyInstanceStorageResponse, <-chan error) + func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) + func (client *Client) MoveResourceGroupWithCallback(request *MoveResourceGroupRequest, ...) <-chan int + func (client *Client) MoveResourceGroupWithChan(request *MoveResourceGroupRequest) (<-chan *MoveResourceGroupResponse, <-chan error) + func (client *Client) RefundInstance(request *RefundInstanceRequest) (response *RefundInstanceResponse, err error) + func (client *Client) RefundInstanceWithCallback(request *RefundInstanceRequest, ...) <-chan int + func (client *Client) RefundInstanceWithChan(request *RefundInstanceRequest) (<-chan *RefundInstanceResponse, <-chan error) + func (client *Client) StartInstance(request *StartInstanceRequest) (response *StartInstanceResponse, err error) + func (client *Client) StartInstanceWithCallback(request *StartInstanceRequest, ...) <-chan int + func (client *Client) StartInstanceWithChan(request *StartInstanceRequest) (<-chan *StartInstanceResponse, <-chan error) + func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) + func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, ...) <-chan int + func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) + func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) + func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, ...) <-chan int + func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) + type ConfigInstanceWhiteListRequest struct + InstanceId string + Lang string + SourceIp string + WhiteList *[]string + func CreateConfigInstanceWhiteListRequest() (request *ConfigInstanceWhiteListRequest) + type ConfigInstanceWhiteListResponse struct + RequestId string + func CreateConfigInstanceWhiteListResponse() (response *ConfigInstanceWhiteListResponse) + type DeleteAlarmReceiveConfigRequest struct + ConfigId string + InstanceId string + SourceIp string + func CreateDeleteAlarmReceiveConfigRequest() (request *DeleteAlarmReceiveConfigRequest) + type DeleteAlarmReceiveConfigResponse struct + RequestId string + func CreateDeleteAlarmReceiveConfigResponse() (response *DeleteAlarmReceiveConfigResponse) + type DescribeAuditLogsRequest struct + Accessid string + AlarmLevel string + AlarmName string + ClientPrg string + ClientUser string + Cost string + CurrentPage requests.Integer + DataSet string + DbId string + DbName string + DbType string + Dip string + Dir string + Dmac string + Dport string + EffectRow string + EndTime string + HostName string + InstanceId string + LoginUser string + OpType string + PageSize requests.Integer + Payload string + QueryString string + Result string + ResultDesc string + Sessionid string + Sip string + Smac string + Sort string + SourceIp string + Sport string + SqlLen string + Sqlid string + StartTime string + func CreateDescribeAuditLogsRequest() (request *DescribeAuditLogsRequest) + type DescribeAuditLogsResponse struct + AuditLogs []Item + RequestId string + TotalCount int + func CreateDescribeAuditLogsResponse() (response *DescribeAuditLogsResponse) + type DescribeEventLogsRequest struct + Accessid string + ClientPrg string + ClientUser string + Cost string + CurrentPage requests.Integer + DataSet string + DbId string + DbName string + DbType string + Dip string + Dir string + Dmac string + Dport string + EffectRow string + EndTime string + EventLevel string + EventName string + HostName string + InstanceId string + LoginUser string + OpType string + PageSize requests.Integer + Payload string + QueryString string + Result string + ResultDesc string + Sessionid string + Sip string + Smac string + Sort string + SourceIp string + Sport string + SqlLen string + Sqlid string + StartTime string + func CreateDescribeEventLogsRequest() (request *DescribeEventLogsRequest) + type DescribeEventLogsResponse struct + EventLogs []ItemInDescribeEventLogs + RequestId string + TotalCount int + func CreateDescribeEventLogsResponse() (response *DescribeEventLogsResponse) + type DescribeInstanceAttribueRequest struct + InstanceId string + Lang string + SourceIp string + func CreateDescribeInstanceAttribueRequest() (request *DescribeInstanceAttribueRequest) + type DescribeInstanceAttribueResponse struct + InstanceAttribue InstanceAttribue + RequestId string + func CreateDescribeInstanceAttribueResponse() (response *DescribeInstanceAttribueResponse) + type DescribeInstanceAttributeRequest struct + InstanceId string + Lang string + SourceIp string + func CreateDescribeInstanceAttributeRequest() (request *DescribeInstanceAttributeRequest) + type DescribeInstanceAttributeResponse struct + InstanceAttribute InstanceAttribute + RequestId string + func CreateDescribeInstanceAttributeResponse() (response *DescribeInstanceAttributeResponse) + type DescribeInstanceStorageRequest struct + InstanceId string + Lang string + SourceIp string + func CreateDescribeInstanceStorageRequest() (request *DescribeInstanceStorageRequest) + type DescribeInstanceStorageResponse struct + InstanceStorages []InstanceStorage + RequestId string + func CreateDescribeInstanceStorageResponse() (response *DescribeInstanceStorageResponse) + type DescribeInstancesRequest struct + CurrentPage requests.Integer + InstanceId *[]string + InstanceStatus string + Lang string + PageSize requests.Integer + ResourceGroupId string + SourceIp string + Tag *[]DescribeInstancesTag + func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) + type DescribeInstancesResponse struct + Instances []Instance + RequestId string + TotalCount int64 + func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) + type DescribeInstancesTag struct + Key string + Value string + type DescribeRegionsRequest struct + AcceptLanguage string + Lang string + SourceIp string + func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) + type DescribeRegionsResponse struct + Regions []Region + RequestId string + func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) + type DescribeSessionLogsRequest struct + ClientPrg string + ClientUser string + CurrentPage requests.Integer + DbId string + DbName string + DbType string + Dip string + Dir string + Dmac string + Dport string + EndTime string + HostName string + InstanceId string + LoginUser string + PageSize requests.Integer + ReqFlow string + RspFlow string + SessionStatus string + Sessionid string + Sip string + Smac string + Sort string + SourceIp string + Sport string + SqlCount string + StartTime string + func CreateDescribeSessionLogsRequest() (request *DescribeSessionLogsRequest) + type DescribeSessionLogsResponse struct + RequestId string + SessionLogs []Item + TotalCount int + func CreateDescribeSessionLogsResponse() (response *DescribeSessionLogsResponse) + type DisableInstancePublicAccessRequest struct + InstanceId string + Lang string + SourceIp string + func CreateDisableInstancePublicAccessRequest() (request *DisableInstancePublicAccessRequest) + type DisableInstancePublicAccessResponse struct + RequestId string + func CreateDisableInstancePublicAccessResponse() (response *DisableInstancePublicAccessResponse) + type EnableInstancePublicAccessRequest struct + InstanceId string + Lang string + SourceIp string + func CreateEnableInstancePublicAccessRequest() (request *EnableInstancePublicAccessRequest) + type EnableInstancePublicAccessResponse struct + RequestId string + func CreateEnableInstancePublicAccessResponse() (response *EnableInstancePublicAccessResponse) + type EventLogs struct + Item []ItemInDescribeEventLogs + type Instance struct + Description string + ExpireTime int64 + InstanceId string + InstanceStatus string + InternetEndpoint string + IntranetEndpoint string + LicenseCode string + PublicNetworkAccess bool + RegionId string + SeriesCode string + StartTime int64 + VpcId string + VswitchId string + type InstanceAttribue struct + Description string + ExpireTime int64 + InstanceId string + InstanceStatus int + InternetEndpoint string + IntranetEndpoint string + LicenseCode string + PublicNetworkAccess bool + RegionId string + SeriesCode string + StartTime int64 + VpcId string + VswitchId string + WhiteList []string + type InstanceAttribute struct + Description string + ExpireTime int64 + InstanceId string + InstanceStatus string + InternetEndpoint string + IntranetEndpoint string + LicenseCode string + PublicNetworkAccess bool + RegionId string + SeriesCode string + StartTime int64 + VpcId string + VswitchId string + WhiteList []string + type InstanceStorage struct + StorageCapacity int64 + StorageCategory string + StorageSpace string + StorageTime int64 + StorageUsed int64 + type InstanceStorages struct + InstanceStorage []InstanceStorage + type Instances struct + Instance []Instance + type Item struct + Accessid string + AlarmFlag int + AlarmLevel int + AlarmName string + C1 string + C2 string + C3 string + C4 string + C5 string + ClientPrg string + ClientUser string + Cost int + DataSet string + DataSetSize int + DateTime string + DbName string + DbType string + Dip string + Dmac int + Dport int + EffectRow int + Encode string + EndTime int + HostName string + LoginUser string + NormalEnd int + OpType string + Payload string + PickIp string + PickUser string + ProCon int + RelateInfo string + RelateIp string + RelateUser string + RequestFlow int + ResponseFlow int + Result int + ResultDesc string + SessionStatus int + Sessionid string + Sip string + Smac int + Sport int + SqlCount int + SqlLen int + Sqlid string + StartTime int + StrInfo string + type ItemInDescribeEventLogs struct + A1 string + A2 string + A3 string + A4 string + A5 string + Accessid string + C1 string + C2 string + C3 string + C4 string + C5 string + ClientPrg string + ClientUser string + Cost int + DataSet string + DataSetSize int + DateTime string + DbName string + DbType string + Dip string + Dmac int + Dport int + EffectRow int + EventLevel int + EventName string + HostName string + IsStatistics int + LoginUser string + OpType int + Payload string + PickIp string + PickUser string + RelateInfo string + RelateIp string + RelateUser string + Result int + ResultDesc string + RuleGroupId string + RuleId string + Sessionid string + Sip string + Smac int + Sport int + SqlLen int + Sqlid string + type ListTagKeysRequest struct + CurrentPage requests.Integer + Lang string + PageSize requests.Integer + ResourceType string + SourceIp string + func CreateListTagKeysRequest() (request *ListTagKeysRequest) + type ListTagKeysResponse struct + CurrentPage int + PageSize int + RequestId string + TagKeys []TagKey + TotalCount int + func CreateListTagKeysResponse() (response *ListTagKeysResponse) + type ListTagResourcesRequest struct + Lang string + NextToken string + ResourceId *[]string + ResourceType string + SourceIp string + Tag *[]ListTagResourcesTag + func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) + type ListTagResourcesResponse struct + NextToken string + RequestId string + TagResources []TagResource + func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) + type ListTagResourcesTag struct + Key string + Value string + type ModifyInstanceAttributeRequest struct + Description string + InstanceId string + Lang string + SourceIp string + func CreateModifyInstanceAttributeRequest() (request *ModifyInstanceAttributeRequest) + type ModifyInstanceAttributeResponse struct + RequestId string + func CreateModifyInstanceAttributeResponse() (response *ModifyInstanceAttributeResponse) + type ModifyInstanceStorageRequest struct + InstanceId string + Lang string + SourceIp string + StorageCategory string + StorageSpace string + StorageTime requests.Integer + func CreateModifyInstanceStorageRequest() (request *ModifyInstanceStorageRequest) + type ModifyInstanceStorageResponse struct + RequestId string + func CreateModifyInstanceStorageResponse() (response *ModifyInstanceStorageResponse) + type MoveResourceGroupRequest struct + Lang string + ResourceGroupId string + ResourceId string + ResourceType string + SourceIp string + func CreateMoveResourceGroupRequest() (request *MoveResourceGroupRequest) + type MoveResourceGroupResponse struct + RequestId string + func CreateMoveResourceGroupResponse() (response *MoveResourceGroupResponse) + type RefundInstanceRequest struct + InstanceId string + SourceIp string + func CreateRefundInstanceRequest() (request *RefundInstanceRequest) + type RefundInstanceResponse struct + RequestId string + func CreateRefundInstanceResponse() (response *RefundInstanceResponse) + type Region struct + LocalName string + RegionEndpoint string + RegionId string + type Regions struct + Region []Region + type SessionLogs struct + Item []Item + type StartInstanceRequest struct + InstanceId string + Lang string + SourceIp string + VswitchId string + func CreateStartInstanceRequest() (request *StartInstanceRequest) + type StartInstanceResponse struct + RequestId string + func CreateStartInstanceResponse() (response *StartInstanceResponse) + type TagKey struct + TagCount int + TagKey string + type TagKeys struct + TagKey []TagKey + type TagResource struct + ResourceId string + ResourceType string + TagKey string + TagValue string + type TagResources struct + TagResource []TagResource + type TagResourcesRequest struct + Lang string + ResourceId *[]string + ResourceType string + SourceIp string + Tag *[]TagResourcesTag + func CreateTagResourcesRequest() (request *TagResourcesRequest) + type TagResourcesResponse struct + RequestId string + func CreateTagResourcesResponse() (response *TagResourcesResponse) + type TagResourcesTag struct + Key string + Value string + type UntagResourcesRequest struct + All requests.Boolean + Lang string + ResourceId *[]string + ResourceType string + SourceIp string + TagKey *[]string + func CreateUntagResourcesRequest() (request *UntagResourcesRequest) + type UntagResourcesResponse struct + RequestId string + func CreateUntagResourcesResponse() (response *UntagResourcesResponse) + type WhiteListInDescribeInstanceAttribue struct + Cidr []string + type WhiteListInDescribeInstanceAttribute struct + Cidr []string