资源编排服务 RFS-查询堆栈执行记录列表:响应消息

时间:2023-11-01 16:25:35

响应消息

  • 响应参数

    响应参数是一个堆栈执行记录列表或者失败消息结构。

    • 查询成功时返回堆栈执行记录列表。
    • 查询失败时返回失败消息结构。

    其中,执行记录结构如表2所示, 返回失败消息结构如表5所示。

  • 响应示例
    [    {        "metadata": {            "annotations": {                "aos.security.io/account": "******",                "aosmeta.cluster.id": "9c34840a-d8c2-11e7-ba71-0255ac101306",                "aosmeta.cluster.name": "aos",                "aosmeta.description": "",                "aosmeta.domain.id": "e00222f923fa4806be2df93191e83880",                "aosmeta.force": "false",                "aosmeta.labels": "",                "aosmeta.namespace": "default",                "aosmeta.project.id": "b17be51d45d74323bc39eb60315ba0df",                "aosmeta.signature": "1",                "aosmeta.template.id": "39368a8a-7743-c58b-e663-f3f9e80049eb",                "aosmeta.template.name": "tosca-hello",                "aosmeta.template.version": "nginx",                "cluster-id": "9c34840a-d8c2-11e7-ba71-0255ac101306",                "cluster-version": "v1.5.0-r000000",                "namespace": "default",                "paas-iam.alpha.kubernetes.io/domain-id": "e00222f923fa4806be2df93191e83880",                "stack.kubernetes.io/revision": "2"            },            "creationTimestamp": "2018-01-30T13:41:00Z",            "labels": {                "execution-hash": "1686326958",                "stackname": "aos-nginx"            },            "name": "aos-nginx-1686326958",            "namespace": "b17be51d45d74323bc39eb60315ba0df",            "resourceVersion": "29574440",            "selfLink": "/apis/paas/v1alpha1/namespaces/b17be51d45d74323bc39eb60315ba0df/executions/aos-nginx-1686326958",            "uid": "357f52cf-05c3-11e8-9daa-0255ac1006d2"        },        "spec": {            "actionName": "scale",            "disableStrategy": "Cancel",            "location": "172.16.6.229",            "metadata": {                "creationTimestamp": null,                "labels": {                    "execution-hash": "1686326958",                    "stackname": "aos-nginx"                },                "namespace": "b17be51d45d74323bc39eb60315ba0df"            },            "objectData": "******",            "objectReference": {                "APIVersion": "",                "FieldPath": "",                "Kind": "",                "Name": "aos-nginx",                "Namespace": "b17be51d45d74323bc39eb60315ba0df",                "ResourceVersion": "",                "UID": "7b22745e-05c2-11e8-b90c-0255ac100ece"            },            "onFailureStrategy": "DoNothing",            "source": "User",            "timeoutInMinutes": 5        },        "status": {            "actionName": "scale",            "objectStatus": {                "phase": "Succeeded",                "updateAt": "2018-01-30T13:41:13.997416Z"            },            "progress": 100,            "subObjectStatuses": {                "nginx-app": {                    "phase": "Succeeded",                    "subActionName": "scale",                    "updateAt": "2018-01-30T13:41:13.289541Z"                }            }        }    },    {            "metadata": {            "annotations": {                "aos.security.io/account": "******",                "aosmeta.cluster.id": "9c34840a-d8c2-11e7-ba71-0255ac101306",                "aosmeta.cluster.name": "aos",                "aosmeta.description": "",                "aosmeta.domain.id": "e00222f923fa4806be2df93191e83880",                "aosmeta.force": "false",                "aosmeta.labels": "",                "aosmeta.namespace": "default",                "aosmeta.project.id": "b17be51d45d74323bc39eb60315ba0df",                "aosmeta.signature": "1",                "aosmeta.template.id": "39368a8a-7743-c58b-e663-f3f9e80049eb",                "aosmeta.template.name": "tosca-hello",                "aosmeta.template.version": "nginx",                "cluster-id": "9c34840a-d8c2-11e7-ba71-0255ac101306",                "cluster-version": "v1.5.0-r000000",                "namespace": "default",                "paas-iam.alpha.kubernetes.io/domain-id": "e00222f923fa4806be2df93191e83880",                "stack.kubernetes.io/revision": "1"            },            "creationTimestamp": "2018-01-30T13:38:11Z",            "labels": {                "execution-hash": "2513653053",                "stackname": "aos-nginx"            },            "name": "aos-nginx-2513653053",            "namespace": "b17be51d45d74323bc39eb60315ba0df",            "resourceVersion": "29574154",            "selfLink": "/apis/paas/v1alpha1/namespaces/b17be51d45d74323bc39eb60315ba0df/executions/aos-nginx-2513653053",            "uid": "d0d17824-05c2-11e8-9daa-0255ac1006d2"        },        "spec": {            "actionName": "create",            "disableStrategy": "Cancel",            "location": "172.16.6.229",            "metadata": {                "creationTimestamp": null,                "labels": {                    "execution-hash": "2513653053",                    "stackname": "aos-nginx"                },                "namespace": "b17be51d45d74323bc39eb60315ba0df"            },            "objectData": "******",            "objectReference": {                "APIVersion": "",                "FieldPath": "",                "Kind": "",                "Name": "aos-nginx",                "Namespace": "b17be51d45d74323bc39eb60315ba0df",                "ResourceVersion": "",                "UID": "7b22745e-05c2-11e8-b90c-0255ac100ece"            },            "onFailureStrategy": "DoNothing",            "source": "User",            "timeoutInMinutes": 60        },        "status": {            "actionName": "create",            "objectStatus": {                "phase": "Succeeded",                "updateAt": "2018-01-30T13:38:25.137462Z"            },            "progress": 100,            "subObjectStatuses": {                "nginx-app": {                    "phase": "Succeeded",                    "subActionName": "create",                    "updateAt": "2018-01-30T13:38:25.033433Z"                },                "nginx-container": {                    "phase": "Succeeded",                    "subActionName": "create",                    "updateAt": "2018-01-30T13:38:12.162796Z"                }            }        }    }]
support.huaweicloud.com/api-aos/aos_02_0034.html