Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetComputerPoliciesRequest

Description

Assigns policies to a computer. Previously assigned policies will be removed, unless they are present in this request.

Properties

Name JsonSchemaType Description
computerUuid reference to Era.Common.DataDefinition.Common.Uuid UUID of the computer, to which the policies should be assigned.
policiesUuids array of references to Era.Common.DataDefinition.Common.Uuid UUIDs of the policies to be assigned. The order of the policies will be respected, first policies in this list will be applied first.
versionGuard integer Version guard for the computer, to which the policies are assigned.

Dual message (request/response)

Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetComputerPoliciesResponse

Referenced in messages

No references.

JsonSchema

{
    "title": "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetComputerPoliciesRequest",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "required": [
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetComputerPoliciesRequest"
    ],
    "properties": {
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcSetComputerPoliciesRequest": {
            "$ref": "#/definitions/RpcSetComputerPoliciesRequest"
        }
    },
    "definitions": {
        "RpcSetComputerPoliciesRequest": {
            "additionalProperties": false,
            "required": [
                "computerUuid",
                "versionGuard"
            ],
            "type": "object",
            "properties": {
                "computerUuid": {
                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                },
                "policiesUuids": {
                    "type": "array",
                    "items": [
                        {
                            "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                        }
                    ]
                },
                "versionGuard": {
                    "type": "integer"
                }
            }
        }
    }
}