You can write codes based on Alibaba Cloud SDK to call an Alibaba Cloud API so as to flexibly deploy and quickly operate Alibaba Cloud products and services.

Obtain AccessKey of a RAM user

AccessKey is needed in the using process. To guarantee the security of cloud service, create a Resource Access Management (RAM) user that can access Container Service resources. Obtain the AccessKey of this RAM user, and use this RAM user and SDK to manage Container Service.

Follow these steps to obtain the AccessKey of the RAM user:

  1. Create a RAM user and create the AccessKey of this user.
  2. Grant permissions to this RAM user. Grant the RAM user the permissions to manage Container Service resources.

Environment preparations

PHP 5.3 or later versions.

Download SDK

Download the source codes of PHP SDK from GitHub: https://github.com/AliyunContainerService/aliyun-openapi-php-sdk

Sample

https://github.com/AliyunContainerService/aliyun-openapi-php-sdk/blob/master/aliyun-php-sdk-demo/CsDemo.php