Documentation ¶
Index ¶
- type YundingClient
- func (c *YundingClient) AssignSecondaryIps(request *yunding.AssignSecondaryIpsRequest) (*yunding.AssignSecondaryIpsResponse, error)
- func (c *YundingClient) CreateRdsAccount(request *yunding.CreateRdsAccountRequest) (*yunding.CreateRdsAccountResponse, error)
- func (c *YundingClient) CreateRdsDatabase(request *yunding.CreateRdsDatabaseRequest) (*yunding.CreateRdsDatabaseResponse, error)
- func (c *YundingClient) DeleteRdsAccount(request *yunding.DeleteRdsAccountRequest) (*yunding.DeleteRdsAccountResponse, error)
- func (c *YundingClient) DeleteRdsDatabase(request *yunding.DeleteRdsDatabaseRequest) (*yunding.DeleteRdsDatabaseResponse, error)
- func (c *YundingClient) DescribeInstanceInfo(request *yunding.DescribeInstanceInfoRequest) (*yunding.DescribeInstanceInfoResponse, error)
- func (c *YundingClient) DescribeRdsAccounts(request *yunding.DescribeRdsAccountsRequest) (*yunding.DescribeRdsAccountsResponse, error)
- func (c *YundingClient) DescribeRdsDatabases(request *yunding.DescribeRdsDatabasesRequest) (*yunding.DescribeRdsDatabasesResponse, error)
- func (c *YundingClient) DescribeRdsInstance(request *yunding.DescribeRdsInstanceRequest) (*yunding.DescribeRdsInstanceResponse, error)
- func (c *YundingClient) DescribeRdsInstances(request *yunding.DescribeRdsInstancesRequest) (*yunding.DescribeRdsInstancesResponse, error)
- func (c *YundingClient) DescribeRdsWhiteList(request *yunding.DescribeRdsWhiteListRequest) (*yunding.DescribeRdsWhiteListResponse, error)
- func (c *YundingClient) DescribeYdRdsInstances(request *yunding.DescribeYdRdsInstancesRequest) (*yunding.DescribeYdRdsInstancesResponse, error)
- func (c *YundingClient) DisableLogger()
- func (c *YundingClient) GrantRdsPrivilege(request *yunding.GrantRdsPrivilegeRequest) (*yunding.GrantRdsPrivilegeResponse, error)
- func (c *YundingClient) ModifyRdsWhiteList(request *yunding.ModifyRdsWhiteListRequest) (*yunding.ModifyRdsWhiteListResponse, error)
- func (c *YundingClient) SetConfig(config *core.Config)
- func (c *YundingClient) SetLogger(logger core.Logger)
- func (c *YundingClient) UnassignSecondaryIps(request *yunding.UnassignSecondaryIpsRequest) (*yunding.UnassignSecondaryIpsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YundingClient ¶
type YundingClient struct {
core.JDCloudClient
}
func NewYundingClient ¶
func NewYundingClient(credential *core.Credential) *YundingClient
func (*YundingClient) AssignSecondaryIps ¶
func (c *YundingClient) AssignSecondaryIps(request *yunding.AssignSecondaryIpsRequest) (*yunding.AssignSecondaryIpsResponse, error)
给网卡分配secondaryIp接口
func (*YundingClient) CreateRdsAccount ¶ added in v1.15.0
func (c *YundingClient) CreateRdsAccount(request *yunding.CreateRdsAccountRequest) (*yunding.CreateRdsAccountResponse, error)
创建数据库账号,用户可以使用客户端,应用程序等通过该账号和密码登录RDS数据库实例。<br>为便于管理和恢复,RDS对账号进行了限制,数据库账号只能通过控制台或者OpenAPI进行创建、删除账号以及对账号授权等,用户不能通过SQL语句对账号进行相关操作。
func (*YundingClient) CreateRdsDatabase ¶ added in v1.15.0
func (c *YundingClient) CreateRdsDatabase(request *yunding.CreateRdsDatabaseRequest) (*yunding.CreateRdsDatabaseResponse, error)
创建一个数据库。 为了实例的管理和数据恢复,RDS对用户权限进行了限制,用户仅能通过控制台或本接口创建数据库
func (*YundingClient) DeleteRdsAccount ¶ added in v1.15.0
func (c *YundingClient) DeleteRdsAccount(request *yunding.DeleteRdsAccountRequest) (*yunding.DeleteRdsAccountResponse, error)
删除数据库账号,账号删除后不可恢复,用户无法再使用该账号登录RDS实例
func (*YundingClient) DeleteRdsDatabase ¶
func (c *YundingClient) DeleteRdsDatabase(request *yunding.DeleteRdsDatabaseRequest) (*yunding.DeleteRdsDatabaseResponse, error)
从RDS实例中删除数据库。为便于管理和数据恢复,RDS对用户权限进行了控制,用户仅能通过控制台或本接口删除数据库 [MFA enabled]
func (*YundingClient) DescribeInstanceInfo ¶ added in v1.15.0
func (c *YundingClient) DescribeInstanceInfo(request *yunding.DescribeInstanceInfoRequest) (*yunding.DescribeInstanceInfoResponse, error)
查询RDS实例(MySQL、SQL Server等)的真实状态
func (*YundingClient) DescribeRdsAccounts ¶ added in v1.15.0
func (c *YundingClient) DescribeRdsAccounts(request *yunding.DescribeRdsAccountsRequest) (*yunding.DescribeRdsAccountsResponse, error)
查看某个RDS实例下所有账号信息,包括账号名称、对各个数据库的访问权限信息等
func (*YundingClient) DescribeRdsDatabases ¶ added in v1.15.0
func (c *YundingClient) DescribeRdsDatabases(request *yunding.DescribeRdsDatabasesRequest) (*yunding.DescribeRdsDatabasesResponse, error)
获取当前实例的所有数据库详细信息的列表
func (*YundingClient) DescribeRdsInstance ¶ added in v1.15.0
func (c *YundingClient) DescribeRdsInstance(request *yunding.DescribeRdsInstanceRequest) (*yunding.DescribeRdsInstanceResponse, error)
查询RDS实例(MySQL、SQL Server等)的详细信息以及MySQL只读实例详细信息
func (*YundingClient) DescribeRdsInstances ¶ added in v1.15.0
func (c *YundingClient) DescribeRdsInstances(request *yunding.DescribeRdsInstancesRequest) (*yunding.DescribeRdsInstancesResponse, error)
批量查询云数据库实例列表信息<br>此接口支持分页查询,默认每页20条。
func (*YundingClient) DescribeRdsWhiteList ¶ added in v1.15.0
func (c *YundingClient) DescribeRdsWhiteList(request *yunding.DescribeRdsWhiteListRequest) (*yunding.DescribeRdsWhiteListResponse, error)
查看RDS实例当前白名单。白名单是允许访问当前实例的IP/IP段列表,缺省情况下,白名单对本VPC开放。如果用户开启了外网访问的功能,还需要对外网的IP配置白名单。
func (*YundingClient) DescribeYdRdsInstances ¶ added in v1.15.0
func (c *YundingClient) DescribeYdRdsInstances(request *yunding.DescribeYdRdsInstancesRequest) (*yunding.DescribeYdRdsInstancesResponse, error)
查询云鼎数据库实例列表
func (*YundingClient) DisableLogger ¶
func (c *YundingClient) DisableLogger()
func (*YundingClient) GrantRdsPrivilege ¶ added in v1.15.0
func (c *YundingClient) GrantRdsPrivilege(request *yunding.GrantRdsPrivilegeRequest) (*yunding.GrantRdsPrivilegeResponse, error)
授予账号的数据库访问权限,即该账号对数据库拥有什么权限。一个账号可以对多个数据库具有访问权限。<br>为便于管理,RDS对权限进行了归类,目前提供以下两种权限<br>- ro:只读权限,用户只能读取数据库中的数据,不能进行创建、插入、删除、更改等操作。<br>- rw:读写权限,用户可以对数据库进行增删改查等操作
func (*YundingClient) ModifyRdsWhiteList ¶ added in v1.15.0
func (c *YundingClient) ModifyRdsWhiteList(request *yunding.ModifyRdsWhiteListRequest) (*yunding.ModifyRdsWhiteListResponse, error)
修改允许访问实例的IP白名单。白名单是允许访问当前实例的IP/IP段列表,缺省情况下,白名单对本VPC开放。如果用户开启了外网访问的功能,还需要对外网的IP配置白名单。
func (*YundingClient) SetConfig ¶
func (c *YundingClient) SetConfig(config *core.Config)
func (*YundingClient) SetLogger ¶
func (c *YundingClient) SetLogger(logger core.Logger)
func (*YundingClient) UnassignSecondaryIps ¶
func (c *YundingClient) UnassignSecondaryIps(request *yunding.UnassignSecondaryIpsRequest) (*yunding.UnassignSecondaryIpsResponse, error)
给网卡删除secondaryIp接口