keypairAttachRequest = new KeypairAttachRequest(); // 设置被绑定密钥对id keypairAttachRequest.setKeypairId("k-***"); keypairAttachRequest.setInstanceIds(instances); client.attachKeypair(keypairAttachRequest
重点加粗、分点论述、原文展示……这些都是怎么用的?
NewClient ( ak , sk , endpoint ) // 设置要删除的密钥对id keypairId := k-*** // 构建请求体 args := & api . DeleteKeypairArgs { KeypairId : keypairId , } err := bccClient . DeleteKeypair ( args ) fmt .
导入密钥对 Instance 实例 主账号/子用户 Console RenameKeypair 重命名密钥对 Instance 实例 主账号/子用户 Console DeleteKeypair 删除密钥对 Instance 实例 主账号/子用户 Console UpdateDescKeypair 修改密钥对描述 Instance 实例 主账号/子用户 Console AttachKeypair 绑定密钥对
请求结构 PUT /v{version}/keypair/{keypairId}?{action} HTTP/1.1 Host: bcc.bj.baidubce.com Authorization: authorization string { "name" : keypairName } 请求头域 除公共头域外,无其它特殊头域。
JavaPairRDD distFile = sc.textFile(args[0]).mapToPair( new PairFunction () { @Override public Tuple2 call(String s) { return extractKey(s); } }); distFile.cache(); // Changes the log info to (date, 1)
返回参数 参数名称 类型 描述 keypair KeypairModel 创建的密钥对对象 错误码 错误码 错误描述 HTTP状态码 中文解释 Keypair.KeypairNameInvalid Keypair name is invalid. 400 密钥对名称格式不正确 Keypair.KeypairDescriptionInvalid Keypair description is invalid
quot;:"keypairId" } }
Add ( new KeyValuePair < string , string > ( grant_type , client_credentials ) ) ; paraList . Add ( new KeyValuePair < string , string > ( client_id , clientId ) ) ; paraList .
Add ( new KeyValuePair < string , string > ( grant_type , client_credentials ) ) ; paraList . Add ( new KeyValuePair < string , string > ( client_id , clientId ) ) ; paraList .