Modifying an API Group
Function
This API is used to modify the attributes of an API group. Only the name and remark attributes of an API group can be modified.
URI
PUT /v2/{project_id}/apic/instances/{instance_id}/api-groups/{group_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Appendix > Obtaining a Project ID in the ROMA Connect API Reference. |
instance_id |
Yes |
String |
Instance ID. |
group_id |
Yes |
String |
API group ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
API group name. The value contains 3 to 255 characters, including letters, digits, hyphens (-), underscores (_), periods (.), slashes (/), parentheses, and colons (:). The value must start with a letter or digit. Minimum: 3 Maximum: 255 |
remark |
No |
String |
Description of the API group. Maximum: 1000 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID. |
name |
String |
API group name. |
status |
Integer |
Status.
|
sl_domain |
String |
Subdomain name that ROMA Connect automatically allocates to the API group. |
sl_domains |
Array of strings |
List of subdomain names that ROMA Connect automatically allocates to the API group. |
remark |
String |
Description. |
register_time |
String |
Creation time. |
update_time |
String |
Last modification time. |
call_limits |
Integer |
Total number of times all APIs in the API group can be accessed. Set this parameter while considering the payload capacity of the backend service. By default, there is no limit on the number of API calls. This parameter is currently not supported. |
time_interval |
Integer |
Period of time for limiting the number of API calls. This parameter is currently not supported. |
time_unit |
String |
Time unit for limiting the number of API calls. This parameter is currently not supported. |
url_domains |
Array of UrlDomain objects |
List of independent domain names bound to the API group. |
on_sell_status |
Integer |
Indicates whether the API group has been listed on the Marketplace.
Currently, ROMA Connect is not interconnected with the Marketplace. The default value of this parameter is 2. |
is_default |
Integer |
Indicates whether the API group is the default group. |
version |
String |
Group version.
|
roma_app_id |
String |
ID of the integration application to which an API group belongs. This parameter is mandatory when the group version is V2. |
roma_app_name |
String |
Name of the integration application to which the API group belongs. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Domain ID. |
domain |
String |
Domain name. |
cname_status |
Integer |
CNAME resolution status of the domain name.
|
ssl_id |
String |
SSL certificate ID. |
ssl_name |
String |
SSL certificate name. |
min_ssl_version |
String |
Minimum SSL version. TLS 1.1 and TLS 1.2 are supported. Default: TLSv1.1 |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
Example Requests
{ "name" : "api_group_001", "remark" : "group1" }
Example Responses
Status code: 200
OK
{ "update_time" : "2020-07-31T06:55:55Z.866474185Z", "name" : "api_group_001", "on_sell_status" : 2, "remark" : "group1", "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ], "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "id" : "c77f5e81d9cb4424bf704ef2b0ac7600", "register_time" : "2020-07-31T06:55:55Z", "status" : 1, "is_default" : 2, "version" : "V1" }
Status code: 400
Bad Request
{ "error_code" : "APIG.2012", "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation" }
Status code: 401
Unauthorized
{ "error_code" : "APIG.1002", "error_msg" : "Incorrect token or token resolution failed" }
Status code: 403
Forbidden
{ "error_code" : "APIG.1005", "error_msg" : "No permissions to request this method" }
Status code: 404
Not Found
{ "error_code" : "APIG.3001", "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist" }
Status code: 500
Internal Server Error
{ "error_code" : "APIG.9999", "error_msg" : "System error" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot