vapi metadata privilege: package info

The package_info structure contains the privilege information of a package element.

For an explanation of privilege information contained within package elements, see vapi.metadata.privilege.package.

Representation:

{
    "privileges"[
        "string",
        "string"
    ],
    "services"[
        {
            "key""obj-103",
            "value"{
                "operations"[
                    {
                        "key""obj-103",
                        "value"{
                            "privilege_info"[
                                {
                                    "privileges"[
                                        "string",
                                        "string"
                                    ],
                                    "property_path""string"
                                },
                                {
                                    "privileges"[
                                        "string",
                                        "string"
                                    ],
                                    "property_path""string"
                                }
                            ],
                            "privileges"[
                                "string",
                                "string"
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

Attributes:

Name Type Description
Required
privileges string[] List of default privileges to be used for all the operations present in this package. If a particular operation element has no explicit privileges defined in the privilege definition file, these privileges are used for enforcing authorization.

services list Information about all service elements contained in this package element that contain privilege information. The key in the key/value pairs is the identifier of the service element and the value in the key/value pairs is the privilege information for the service element. For an explanation of privilege information containment within service elements, see vapi.metadata.privilege.service.

When clients pass a value of this structure as a parameter, the key in the field key/value pairs must be an identifier for the resource type: com.vmware.vapi.service. When operations return a value of this structure as a result, the key in the field key/value pairs will be an identifier for the resource type: com.vmware.vapi.service.List of {"key": string, "value": service_info}