Historic Shared API Name | Description | Replace API |
CreateRole | Creating a Role | CreateRocketMQRole |
DeleteRoles | Deleting the Role | DeleteRocketMQRoles |
DescribeRoles | Get role list | DescribeRocketMQRoles |
ModifyRole | Role modification | ModifyRocketMQRole |
ModifyEnvironmentRole | Modify environment role authorization | ModifyRocketMQEnvironmentRole |
CreateEnvironmentRole | Create environment role authorization | CreateRocketMQEnvironmentRole |
DescribeEnvironmentRoles | Namespace role list | DescribeRocketMQEnvironmentRoles |
DeleteEnvironmentRoles | Delete environment role authorization | DeleteRocketMQEnvironmentRoles |
DescribeMsgTrace | Querying the Message Trace | DescribeRocketMQMsgTrace |
ModifyVipInstanceState | Modify dedicated instance status | ModifyRocketMQVipInstanceState |
DescribeAppIdStats | Retrieve user information | DescribeRocketMQAppIdStats |
package com.tencent;import com.tencentcloudapi.common.Credential;import com.tencentcloudapi.common.profile.ClientProfile;import com.tencentcloudapi.common.profile.HttpProfile;import com.tencentcloudapi.common.exception.TencentCloudSDKException;import com.tencentcloudapi.tdmq.v20200217.TdmqClient;import com.tencentcloudapi.tdmq.v20200217.models.*;public class Sample{public static void main(String [] args) {try{// Instantiate an authentication object. Input parameters require passing in secretId and secretKey of the cloud account. Keep the confidentiality of the key pair.// The key can be obtained at https://console.tencentcloud.com/cam/capi.Credential cred = new Credential("", "");// Instantiate an HTTP option, optional, which can be skipped if there is no special requirement.HttpProfile httpProfile = new HttpProfile();// Recommended for use Polaris. Relevant guidelines are accessible at the following link// https://git.woa.com/tencentcloud-internal/tencentcloud-sdk-java#%E5%8C%97%E6%9E%81%E6%98%9FhttpProfile.setEndpoint("tdmq.ap-guangzhou.tencentcloudapi.woa.com");// Instantiate a client option, optional, which can be skipped if there is no special requirement.ClientProfile clientProfile = new ClientProfile();clientProfile.setHttpProfile(httpProfile);// Instantiate the client object to request the product, and clientProfile is optional.TdmqClient client = new TdmqClient(cred, "", clientProfile);// Instantiate a request object. Each interface will correspond to a request object.CreateRoleRequest req = new CreateRoleRequest();// The returned resp is an instance of CreateRoleResponse, corresponding to the request objectCreateRoleResponse resp = client.CreateRole(req);// Output string in json format.System.out.println(resp);} catch (TencentCloudSDKException e) {System.out.println(e.toString());}}}
package com.tencent;import com.tencentcloudapi.common.Credential;import com.tencentcloudapi.common.profile.ClientProfile;import com.tencentcloudapi.common.profile.HttpProfile;import com.tencentcloudapi.common.exception.TencentCloudSDKException;import com.tencentcloudapi.tdmq.v20200217.TdmqClient;import com.tencentcloudapi.tdmq.v20200217.models.*;public class Sample{public static void main(String [] args) {try{// Instantiate an authentication object. Input parameters require passing in secretId and secretKey of the cloud account. Keep the confidentiality of the key pair.// The key can be obtained at https://console.tencentcloud.com/cam/capi.Credential cred = new Credential("", "");// Instantiate an HTTP option, optional, which can be skipped if there is no special requirement.HttpProfile httpProfile = new HttpProfile();// Recommended for use Polaris. Relevant guidelines are accessible at the following link// https://git.woa.com/tencentcloud-internal/tencentcloud-sdk-java#%E5%8C%97%E6%9E%81%E6%98%9FhttpProfile.setEndpoint("tdmq.ap-guangzhou.tencentcloudapi.woa.com");// Instantiate a client option, optional, which can be skipped if there is no special requirement.ClientProfile clientProfile = new ClientProfile();clientProfile.setHttpProfile(httpProfile);// Instantiate the client object to request the product, and clientProfile is optional.TdmqClient client = new TdmqClient(cred, "", clientProfile);// Instantiate a request object. Each interface will correspond to a request object.CreateRocketMQRoleRequest req = new CreateRocketMQRoleRequest();// The returned resp is an instance of CreateRocketMQRoleResponse, corresponding to the request objectCreateRocketMQRoleResponse resp = client.CreateRocketMQRole(req);// Output string in json format.System.out.println(resp);} catch (TencentCloudSDKException e) {System.out.println(e.toString());}}}
Feedback