Install the SDK Package

IAM IAM

  • API Reference
    • Common request header and common response header
    • Data type
    • Error code
    • Feature Update Records
    • General Description
    • Introduction
    • Service domain
    • STS-Related Interfaces
  • API Reference_IAM
    • Common request header and common response header
    • Data type
    • Error code
    • General Description
    • Group management API
    • Introduction
    • Policy management API
    • Role Management Interfaces
    • Service domain
    • User management API
  • FAQs
    • Common Questions Overview
    • FAQs related to IAM users
    • FAQs related to product permissions
  • Function Release Records
  • Operation guide
    • Account Security Audit
    • Enterprise Account Integration
      • Federated Login Overview
      • IAM Role-based SSO
      • IAM User-based SSO
    • Group Management
    • Message Center
    • Permission Policies
      • ACL
      • Authorization
      • Managing IAM Policies
      • Permission Policy Overview
      • Policy Authentication Evaluation Logic
      • Strategy type
      • Tag-Based Authorization and Authentication
    • Role Management
      • Common scenarios
      • Create role
      • FAQs
      • Managing Roles
      • Overview
      • Related concepts
      • Using Roles
    • Settings
    • User
      • IAM User Operations
      • Two-Factor Authentication
      • User management
    • User Anomaly Behavior Analysis (Public Beta)
      • Risk Behavior Management
  • Operation records
    • Cloud Trail (Public Beta)
  • Product Announcement
    • Baidu Intelligent Cloud Enables Login Protection MFA Multi-Factor Authentication Notification for All Users
  • Product Description
    • Application scenarios
    • Concepts
    • Currently Supported Product Lines
    • Product functions
    • Product overview
    • System Restrictions
    • Enterprise Organization vs Identity and Access Management
  • Product pricing
    • Product pricing
  • Quick Start
    • Create groups and grant permissions
    • Creating IAM User Administrators
  • SDK
    • Go-SDK
      • Error handling
      • Group management API
      • Initialize SDK
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
    • Java-SDK
      • Error code
      • Group management API
      • Initialization
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
    • Python-SDK
      • Error code
      • Group management API
      • Initialization
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
  • Testing Knowledge Base SDK
  • Typical Practices
    • Baidu Intelligent Cloud Partner Guide to Creating IAM Users
    • User Management and Permission Assignment
All documents
menu
No results found, please re-enter

IAM IAM

  • API Reference
    • Common request header and common response header
    • Data type
    • Error code
    • Feature Update Records
    • General Description
    • Introduction
    • Service domain
    • STS-Related Interfaces
  • API Reference_IAM
    • Common request header and common response header
    • Data type
    • Error code
    • General Description
    • Group management API
    • Introduction
    • Policy management API
    • Role Management Interfaces
    • Service domain
    • User management API
  • FAQs
    • Common Questions Overview
    • FAQs related to IAM users
    • FAQs related to product permissions
  • Function Release Records
  • Operation guide
    • Account Security Audit
    • Enterprise Account Integration
      • Federated Login Overview
      • IAM Role-based SSO
      • IAM User-based SSO
    • Group Management
    • Message Center
    • Permission Policies
      • ACL
      • Authorization
      • Managing IAM Policies
      • Permission Policy Overview
      • Policy Authentication Evaluation Logic
      • Strategy type
      • Tag-Based Authorization and Authentication
    • Role Management
      • Common scenarios
      • Create role
      • FAQs
      • Managing Roles
      • Overview
      • Related concepts
      • Using Roles
    • Settings
    • User
      • IAM User Operations
      • Two-Factor Authentication
      • User management
    • User Anomaly Behavior Analysis (Public Beta)
      • Risk Behavior Management
  • Operation records
    • Cloud Trail (Public Beta)
  • Product Announcement
    • Baidu Intelligent Cloud Enables Login Protection MFA Multi-Factor Authentication Notification for All Users
  • Product Description
    • Application scenarios
    • Concepts
    • Currently Supported Product Lines
    • Product functions
    • Product overview
    • System Restrictions
    • Enterprise Organization vs Identity and Access Management
  • Product pricing
    • Product pricing
  • Quick Start
    • Create groups and grant permissions
    • Creating IAM User Administrators
  • SDK
    • Go-SDK
      • Error handling
      • Group management API
      • Initialize SDK
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
    • Java-SDK
      • Error code
      • Group management API
      • Initialization
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
    • Python-SDK
      • Error code
      • Group management API
      • Initialization
      • Install the SDK Package
      • Overview
      • Policy management API
      • Role Management Interfaces
      • User management API
      • Version Change Records
  • Testing Knowledge Base SDK
  • Typical Practices
    • Baidu Intelligent Cloud Partner Guide to Creating IAM Users
    • User Management and Permission Assignment
  • Document center
  • arrow
  • IAMIAM
  • arrow
  • SDK
  • arrow
  • Go-SDK
  • arrow
  • Install the SDK Package
Table of contents on this page
  • Runtime environment
  • Install SDK
  • Uninstall SDK

Install the SDK Package

Updated at:2025-10-27

Runtime environment

The GO SDK is compatible with Go 1.3 and later versions.

Install SDK

Directly download from github

Use go get to download from GitHub:

Shell
1go get github.com/baidubce/bce-sdk-go

SDK directory structure

Text
1bce-sdk-go
2 |--auth                   //BCE signature and authorization
3 |--bce                    //BCE Common basic components
4 |--http                   //HTTP communication module for BCE
5 |--Services               //BCE Related Service Catalog
6 |  |--appblb              //Application load balancer service directory
7 |  |--bbc                 //Physical server
8 |  |--bcc                 //Baidu Cloud Compute
9 |  |--bec                 //Baidu edge compute
10 |  |--bie                 //Baidu intelligent edge
11 |  |--bls                 //Log service
12 |  |--bos                 //BOS service directory
13 |  |  |--bos_client.go    //BOS client entry point
14 |  |  |--api              //BOS-related API directory
15 |  |     |--bucket.go     //Implementation of BOS bucket-related APIs
16 |  |     |--object.go     //Implementation of BOS object-related APIs
17 |  |     |--multipart.go  //Implementation of BOS multipart-related APIs
18 |  |     |--module.go     //Data models for BOS-related APIs
19 |  |     |--util.go       //Tools for BOS-related API implementation
20 |  |--cce                 //Cloud container engine
21 |  |--cdn                 //Content delivery network
22 |  |--cert                //SSL certificate service
23 |  |--cfc                 //Function compute
24 |  |--cfs                 //Cloud file system (CFS)
25 |  |--cfw                 //Cloud firewall
26 |  |--csn                 //Cloud smart network
27 |  |--ddc                 //Database dedicated cluster (DDC)
28 |  |--dts                 //Data transmission service
29 |  |--eip                 //Elastic IP
30 |  |--endpoint            //service network interface card (SNIC)
31 |  |--eni                 //Elastic network interface card (NIC)
32 |  |--esg                 //Enterprise security group
33 | |--etGatewayy           //Dedicated Gateway
34 |  |--iam                 //Identity management
35 |  |--rds                 //Cloud database
36 |  |--scs                 //SCS service directory
37 |  |--sms                 //SMS service directory
38 |  |--sts                 //STS Service Catalog
39 |  |--vca                 //VCA service directory
40 |  |--vcr                 //VCR service directory
41 | |--vpc                 //Virtual Private Cloud
42 | |--vpn                 //VPN Gateway
43 |  |--mms                 //Multimodal media asset retrieval directory
44 |--util                   //BCE Common Tool Implementation

Uninstall SDK

To uninstall the SDK, simply delete the downloaded source code.

Previous
Initialize SDK
Next
Overview