MetadataPrivilegePackageInfo

The PackageInfo structure contains the privilege information of a package element. For an explanation of privilege information contained within package elements, see Package.


Properties

array of string
privileges Required

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 Required

Information about all service elements contained in this package element that contain privilege information. The key in the map is the identifier of the service element and the value in the map is the privilege information for the service element. For an explanation of privilege information containment within service elements, see Service. When clients pass a value of this structure as a parameter, the key in the field map 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 map will be an identifier for the resource type: com.vmware.vapi.service.

JSON Example

{
    "privileges": [
        "string"
    ],
    "services": {
        "key": {
            "operations": {
                "key": {
                    "privilege_info": [
                        {
                            "privileges": [
                                "string"
                            ],
                            "property_path": "string"
                        }
                    ],
                    "privileges": [
                        "string"
                    ]
                }
            }
        }
    }
}
Returned By

Get Privilege Package
Feedback

Was this page helpful?