Post by AMI_archerwen on May 3, 2021 9:26:31 GMT
According "EventDestination.v1_6_0.json", RegistryPrefixes & ResourceTypes support "null" and type is "array".
"RegistryPrefixes": {
"description": "The list of the prefixes for the Message Registries that contain the MessageIds that are sent to this event destination.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall contain the array of the prefixes of the Message Registries that contain the MessageIds in the Events that shall be sent to the EventDestination. If this property is absent or the array is empty, the service shall send events with MessageIds from any Message Registry.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
},
"ResourceTypes": {
"description": "The list of Resource Type values (Schema names) that correspond to the OriginOfCondition. The version and full namespace should not be specified.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall specify an array of Resource Type values. When an event is generated, if the OriginOfCondition's Resource Type matches a value in this array, the event shall be sent to the event destination (unless it would be filtered by other property conditions such as RegistryPrefix). If this property is absent or the array is empty, the service shall send Events from any Resource type to the subscriber. This property shall contain only the general namespace for the type and not the versioned value. For example, it shall not contain Task.v1_2_0.Task and instead shall contain Task. To specify that a client is subscribing to metric reports, the EventTypes property should include `MetricReport`.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
}
1. Could we POST a subscription with a request include "RegistryPrefixes":[], "ResourceTypes": [], like below.
{
"Context": "Event_Test",
"Destination": "https://{ip}",
"EventFormatType": "Event",
"RegistryPrefixes":[],
"ResourceTypes":[],
"Protocol": "Redfish"
}
2. If item1 is yes, How do we display the property(RegistryPrefixes & ResourceTypes) after create subscription? Are these two property can display like below example?
Ex:
(1) "RegistryPrefixes":[], "ResourceTypes": []
(2) "RegistryPrefixes":[null], "ResourceTypes": [null]
(3) No display.
"RegistryPrefixes": {
"description": "The list of the prefixes for the Message Registries that contain the MessageIds that are sent to this event destination.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall contain the array of the prefixes of the Message Registries that contain the MessageIds in the Events that shall be sent to the EventDestination. If this property is absent or the array is empty, the service shall send events with MessageIds from any Message Registry.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
},
"ResourceTypes": {
"description": "The list of Resource Type values (Schema names) that correspond to the OriginOfCondition. The version and full namespace should not be specified.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall specify an array of Resource Type values. When an event is generated, if the OriginOfCondition's Resource Type matches a value in this array, the event shall be sent to the event destination (unless it would be filtered by other property conditions such as RegistryPrefix). If this property is absent or the array is empty, the service shall send Events from any Resource type to the subscriber. This property shall contain only the general namespace for the type and not the versioned value. For example, it shall not contain Task.v1_2_0.Task and instead shall contain Task. To specify that a client is subscribing to metric reports, the EventTypes property should include `MetricReport`.",
"readonly": true,
"type": "array",
"versionAdded": "v1_4_0"
}
1. Could we POST a subscription with a request include "RegistryPrefixes":[], "ResourceTypes": [], like below.
{
"Context": "Event_Test",
"Destination": "https://{ip}",
"EventFormatType": "Event",
"RegistryPrefixes":[],
"ResourceTypes":[],
"Protocol": "Redfish"
}
2. If item1 is yes, How do we display the property(RegistryPrefixes & ResourceTypes) after create subscription? Are these two property can display like below example?
Ex:
(1) "RegistryPrefixes":[], "ResourceTypes": []
(2) "RegistryPrefixes":[null], "ResourceTypes": [null]
(3) No display.