Era.Common.NetworkMessage.ConsoleApi.Policies.RpcModifyPolicyTargetsRequest

Description

Assigns and removes targets from a policy.

Properties

Name JsonSchemaType Description
addedTargets oneOf of array of Era.Common.DataDefinition.Common.Uuid and array of Era.Common.DataDefinition.Common.Uuid UUIDs of the targets which should be assigned to the policy.
policyUuid reference to Era.Common.DataDefinition.Common.Uuid UUID of the policy.
removedTargets oneOf of array of Era.Common.DataDefinition.Common.Uuid and array of Era.Common.DataDefinition.Common.Uuid UUIDs of the targets which should be removed to the policy.

Dual message (request/response)

Era.Common.NetworkMessage.ConsoleApi.Policies.RpcModifyPolicyTargetsResponse

Referenced in messages

No references.

JsonSchema

{
    "title": "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcModifyPolicyTargetsRequest",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "required": [
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcModifyPolicyTargetsRequest"
    ],
    "properties": {
        "Era.Common.NetworkMessage.ConsoleApi.Policies.RpcModifyPolicyTargetsRequest": {
            "$ref": "#/definitions/RpcModifyPolicyTargetsRequest"
        }
    },
    "definitions": {
        "RpcModifyPolicyTargetsRequest": {
            "additionalProperties": false,
            "required": [
                "policyUuid"
            ],
            "type": "object",
            "properties": {
                "addedTargets": {
                    "oneOf": [
                        {
                            "minItems": 1,
                            "type": "array",
                            "items": [
                                {
                                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                                }
                            ]
                        },
                        {
                            "maxItems": 0,
                            "type": "array",
                            "items": [
                                {
                                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                                }
                            ]
                        }
                    ]
                },
                "policyUuid": {
                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                },
                "removedTargets": {
                    "oneOf": [
                        {
                            "minItems": 1,
                            "type": "array",
                            "items": [
                                {
                                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                                }
                            ]
                        },
                        {
                            "maxItems": 0,
                            "type": "array",
                            "items": [
                                {
                                    "$ref": "Era.Common.DataDefinition.Common.Uuid#/definitions/Uuid"
                                }
                            ]
                        }
                    ]
                }
            }
        }
    }
}