Errors when duplicating a perspective via API
search cancel

Errors when duplicating a perspective via API

book

Article ID: 367335

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

You may encounter an error on POST after following the duplicate perspective instructions here https://apidocs.cloudhealthtech.com/#perspectives_create-perspective-schema

Resolution

If you encounter "errors": "Could not verify schema: Undefined source group reference: [123456789123]" then you will want to remove any block with the 123456789123 number. For example:

                    {
                        "ref_id": "123456789123",
                        "name": "############",
                        "val": "############",
                        "blk_id": "############"
                    },

or

            {
                "type": "filter",
                "asset": "AwsSecurityGroupRule",
                "from": "123456789123",
                "to": "############",
                "condition": {
                    "clauses": [
                        {
                            "field": [
                                "AwsSecurityGroup",
                                "AwsAccount",
                                "Account Name"
                            ],
                            "op": "=",
                            "val": "############"
                        }
                    ]
                }
            },