云应用引擎 CAE-获取组件配置列表:响应示例

时间:2023-11-01 16:18:11

响应示例

状态码: 200

请求成功。

{  "api_version" : "v1",  "kind" : "ComponentConfiguration",  "items" : [ {    "type" : "env",    "data" : {      "spec" : {        "envs" : {          "TZ" : "Asia/Shanghai"        }      }    },    "operation_id" : "68e82e30-190d-40b2-9680-98a66ccb2f8f",    "operated_at" : "2023-02-16T06:35:46.23126Z",    "is_activated" : true  }, {    "type" : "volume",    "data" : {      "spec" : {        "volumes" : [ {          "volume_id" : "bef119d0-c7d1-4b58-9794-8b74faf80a59",          "resource_name" : "test-nacos",          "resource_type" : "",          "resource_sub_type" : "object_bucket",          "mount_info" : [ {            "path" : "/tmp",            "access_mode" : "ReadWriteMany",            "create_time" : "2023-02-16T03:22:59.599Z"          } ]        }, {          "volume_id" : "a061934d-52e3-4b36-aea7-6c51879f84c9",          "resource_name" : "test",          "resource_type" : "",          "resource_sub_type" : "parallel_file_system",          "mount_info" : [ {            "path" : "/temp",            "access_mode" : "ReadWriteMany",            "create_time" : "2023-02-16T03:25:08.841Z"          } ]        } ]      }    },    "operation_id" : "68e82e30-190d-40b2-9680-98a66ccb2f8f",    "operated_at" : "2023-02-16T06:35:46.23126Z",    "is_activated" : true  }, {    "type" : "rds",    "data" : {      "spec" : {        "rds_id" : "a5fdee4cf88c4277a68688a014f444bdin01",        "rds_port" : "",        "rds_address" : "100.xx.xx.xxx",        "rds_db_name" : "cae",        "rds_password" : "xxx",        "rds_username" : "cae"      }    },    "operation_id" : "b4ce410c-3ac3-40ae-9f11-0c8b98c2df19",    "operated_at" : "2023-02-16T02:14:03.416282Z",    "is_activated" : true  }, {    "type" : "scaling",    "data" : {      "spec" : {        "max_replica_count" : 1,        "triggers" : [ {          "type" : "cpu",          "metadata" : {            "type" : "Utilization",            "value" : "30"          }        }, {          "type" : "memory",          "metadata" : {            "type" : "Utilization",            "value" : "30"          }        } ]      }    },    "operation_id" : "02c81e5a-251b-4921-878e-a8f78efbadd1",    "operated_at" : "2023-02-16T07:03:07.711734Z",    "is_activated" : true  }, {    "type" : "access",    "data" : {      "metadata" : {        "annotations" : {          "deployBackend" : "k8s",          "kubernetes.io/elb.health-check-flag" : "off",          "kubernetes.io/elb.lb-algorithm" : "ROUND_ROBIN"        }      },      "spec" : {        "ip" : "100.xx.xx.xxx",        "items" : [ {          "type" : "ClusterIP",          "domain_names" : [ "test-test-config" ],          "ports" : [ {            "ip" : "",            "name" : "loadBalancer-5x095cix5deo",            "target_port" : 80,            "port" : 8080,            "protocol" : "TCP"          } ]        }, {          "type" : "LoadBalancer",          "ports" : [ {            "ip" : "",            "name" : "loadBalancer-0yzp5ud3w2pa",            "target_port" : 80,            "port" : 8080,            "protocol" : "TCP"          } ]        } ]      },      "ref" : {        "id" : "f5de88cc-64be-4f70-ac17-db745eb76e67"      }    },    "operation_id" : "68e82e30-190d-40b2-9680-98a66ccb2f8f",    "operated_at" : "2023-02-16T06:35:46.23126Z",    "is_activated" : true  }, {    "type" : "lifecycle",    "data" : {      "api_version" : "v1",      "kind" : "lifecycle",      "spec" : {        "postStart" : {          "exec" : {            "command" : [ "/bin/sh", "-c", "echo service start" ]          }        },        "preStop" : {          "exec" : {            "command" : [ "/bin/sh", "-c", "echo service end" ]          }        }      }    },    "operation_id" : "69bcf986-6f83-4f43-9ca1-595684ba0748",    "operated_at" : "2023-02-16T07:05:05.610439Z",    "is_activated" : true  }, {    "type" : "cse",    "data" : {      "spec" : {        "cse_id" : "25779525-1aac-44be-abda-f9164f1b41b8",        "config_center_addr" : "https://192.168.1.xxx:30103,https://192.168.1.xxx:30103",        "service_center_addr" : "https://192.168.1.xxx:30100,https://192.168.1.xxx:30100"      }    },    "operation_id" : "945305ee-8be5-4826-9215-45a0b545ed13",    "operated_at" : "2023-02-16T07:10:38.937075Z",    "is_activated" : true  }, {    "type" : "healthCheck",    "data" : {      "spec" : {        "livenessProbe" : {          "httpGet" : {            "path" : "",            "port" : 80,            "scheme" : "HTTP"          },          "initialDelaySeconds" : 0,          "timeoutSeconds" : 1,          "periodSeconds" : 10,          "successThreshold" : 1,          "failureThreshold" : 3        },        "readinessProbe" : {          "httpGet" : {            "path" : "",            "port" : 80,            "scheme" : "HTTP"          },          "initialDelaySeconds" : 0,          "timeoutSeconds" : 1,          "periodSeconds" : 10,          "successThreshold" : 1,          "failureThreshold" : 3        },        "startupProbe" : {          "httpGet" : {            "path" : "",            "port" : 80,            "scheme" : "HTTP",            "httpHeaders" : [ {              "name" : "x-auth-token",              "value" : "xxx"            } ]          },          "initialDelaySeconds" : 0,          "timeoutSeconds" : 1,          "periodSeconds" : 10,          "successThreshold" : 1,          "failureThreshold" : 3        }      }    },    "operation_id" : "2361fba9-ee7e-405d-8b05-afc945a43e65",    "operated_at" : "2023-02-16T07:07:23.193231Z",    "is_activated" : true  } ]}
support.huaweicloud.com/api-cae/ListComponentConfigurations.html