vapi metadata privilege component: get
component_id
. The vapi.metadata.privilege.component_data contains the privilege information about the component element and its fingerprint. It contains information about all the package elements that belong to this component element.
Request:
HTTP request
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
component_id | string | Identifier of the component element. |
Response:
HTTP Status Code: 200
Representations:
"value": {
"fingerprint": "string",
"info": {
"packages": [
{
"key": "obj-103",
"value": {
"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"
]
}
}
]
}
}
]
}
}
]
}
}
}
<ns0:Get-Result xmlns:ns0="http://vmware.com/vapi/metadata/privilege/component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<fingerprint>string</fingerprint>
<info>
<packages-array>
<array-item>
<value>
<services-array>
<array-item>
<value>
<operations-array>
<array-item>
<value>
<privilege_info-array>
<array-item>
<privileges-array>
<array-item>string</array-item>
<array-item>string</array-item>
</privileges-array>
<property_path>string</property_path>
</array-item>
<array-item>
<privileges-array>
<array-item>string</array-item>
<array-item>string</array-item>
</privileges-array>
<property_path>string</property_path>
</array-item>
</privilege_info-array>
<privileges-array>
<array-item>string</array-item>
<array-item>string</array-item>
</privileges-array>
</value>
<key>obj-103</key>
</array-item>
</operations-array>
</value>
<key>obj-103</key>
</array-item>
</services-array>
<privileges-array>
<array-item>string</array-item>
<array-item>string</array-item>
</privileges-array>
</value>
<key>obj-103</key>
</array-item>
</packages-array>
</info>
</value>
</ns0:Get-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | component_data | The vapi.metadata.privilege.component_data instance that corresponds to component_id . |
value.info | component_info | Privilege information of the component. This includes information about all the API in the component. |
value.info.packages | list | Privilege information of all the package elements. The key in the key/value pairs is the identifier of the package element and the value in the key/value pairs is the privilege information for the package element. For an explanation of privilege information containment within package elements, see vapi.metadata.privilege.package. 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.package . 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.package .List of {"key": string, "value": package_info} |
value.info.packages[].key | string | |
value.info.packages[].value | package_info | |
value.info.packages[].value.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. |
value.info.packages[].value.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} |
value.info.packages[].value.services[].key | string | |
value.info.packages[].value.services[].value | service_info | |
value.info.packages[].value.services[].value.operations | list | Information about all operation elements contained in this service element that contain privilege information. The key in the key/value pairs is the identifier of the operation element and the value in the key/value pairs is the privilege information for the operation element. For an explanation of containment of privilege information within operation elements, see vapi.metadata.privilege.service.operation. 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.operation . 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.operation .List of {"key": string, "value": operation_info} |
value.info.packages[].value.services[].value.operations[].key | string | |
value.info.packages[].value.services[].value.operations[].value | operation_info | |
value.info.packages[].value.services[].value.operations[].value.privileges | string[] | List of all privileges assigned to the operation element. |
value.info.packages[].value.services[].value.operations[].value.privilege_info | privilege_info[] | Privilege information of all the parameter elements of the operation element. For an explanation of containment of privilege information within parameter elements, see vapi.metadata.privilege.privilege_info. |
value.info.packages[].value.services[].value.operations[].value.privilege_info[].property_path | string | The property_path points to an entity that is used in the operation element. An entity can either be present in one of the parameter elements or if a parameter is a structure element, it could also be present in one of the field elements. If the privilege is assigned to an entity used in the parameter, |
value.info.packages[].value.services[].value.operations[].value.privilege_info[].privileges | string[] | List of privileges assigned to the entity that is being referred by vapi.metadata.privilege.privilege_info.property_path. |
value.fingerprint | string | Fingerprint of the metadata of the component. Privilege information could change when there is an infrastructure update. Since the data present in vapi.metadata.privilege.component_data.info could be quite large, You should store the fingerprint associated with a component. After an update, by invoking the fingerprint operation, you can retrieve the new fingerprint for the component. If the new fingerprint and the previously stored fingerprint do not match, clients can then use the get to retrieve the new privilege information for the component. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
404 | not_found | if the component element associated with component_id does not have any privilege information. |