{
    "Resources": [
        {
            "Uri": "/cli/v1/envvar",
            "Interfaces": [
                {
                    "Type": "Get",
                    "Description": "Get environment variable"
                }
            ]
        },
        {
            "Uri": "/cli/v1/envvar/hostgmac",
            "Interfaces": [
                {
                    "Type": "Get",
                    "Description": "Get host GMAC address",
                    "Usage": "ipmcget -t envvar -d hostgmac -v <gmacindex>",
                    "Example": [
                        "ipmcget -t envvar -d hostgmac -v 2"
                    ],
                    "ReqBody": {
                        "Type": "object",
                        "Required": true,
                        "Properties": {
                            "gmacindex": {
                                "Required": true,
                                "Type": "string",
                                "Validator": [
                                    {
                                        "Type": "Enum",
                                        "Formula": [
                                            "2",
                                            "3"
                                        ]
                                    }
                                ],
                                "Description": "\n    2    host GMAC2\n    3    host GMAC3"
                            }
                        }
                    },
                    "RspBody": {
                        "MacAddr": "${Statements/CombineMacAddr()}"
                    },
                    "Statements": {
                        "CombineMacAddr": {
                            "Steps": [
                                {
                                    "Type": "Plugin",
                                    "Formula": "orchestrator.envvar.combine_mac_addr(ProcessingFlow[1].Destination.MacAddr)"
                                }
                            ]
                        }
                    },
                    "ProcessingFlow": [
                        {
                            "Type": "Method",
                            "Path": "/bmc/kepler/Managers/1/SOC/Env",
                            "Interface": "bmc.kepler.Managers.SOC.GMAC",
                            "Name": "GetMacAddr",
                            "Params": [
                                "${ReqBody/gmacindex}"
                            ],
                            "Destination": {
                                "MacAddr": "MacAddr"
                            }
                        }
                    ],
                    "Echoes": [
                        "ipmcget/get_gmac_macaddr",
                        ""
                    ]
                }
            ]
        }
    ]
}