Skip to content

jiangxukai/aliyun-sdk-for-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun SDK for Go

The encapsulation of Aliyun HTTP API

Build Status

Travis CI

Version 0.1.0(beta)

Progress

Here to read more about ECS API.

Implemented ECS API

  • Instance
  • Disk
  • Snapshot
  • Image
  • Network
  • Security Group
  • Region
  • Monitor
  • Other
  • Vpc
  • VRouter
  • VSwitch
  • Route

Install:

go get -u github.com/jiangshengwu/aliyun-sdk-for-go

ECS Client Usage:

// Initialize client
cli := ecs.NewClient(
    "Your Access Key Id",
    "Your Access Key Secret",
    "ResourceOwnerAccount", // optional, set to empty string if it's no need for you
)

// Perform request
result, err := cli.SecurityGroup.DescribeSecurityGroupAttribute(map[string]interface{}{
    "RegionId":        "cn-beijing",
    "SecurityGroupId": "sg-25rh80j7f",
})

if err != nil {
    log.Error(err)
    return
}
log.Info(result)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Shell 0.4%