Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.67k stars 5.1k forks source link

SecurityInsights: ThreatIntelligence (TAXII) Data Connector API not round trip consistent #21487

Closed magodo closed 4 months ago

magodo commented 1 year ago

The taxiiLookbackPeriod is defined as a "date-time" format in Swagger, which represents a RFC3339 date time. Whilst, on return it is in format "01/02/2006 15:04:05".

The pollingFrequency is defined as an enum. When specifying it using one of the enum value (a string), it returns an integer (0, 1, 2) in response.

The issue exists for both TI and TI TAXII data connector resources, at least for 2022-10-01-preview.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amirkeren.

Issue Details
The `taxiiLookbackPeriod` is defined as a "date-time" format in Swagger, which represents a RFC3339 date time. Whilst, on return it is in format "01/02/2006 15:04:05". The `pollingFrequency` is defined as an enum. When specifying it using one of the enum value (a string), it returns an integer (0, 1, 2) in response. The issue exists for both TI and TI TAXII data connector resources, at least for 2022-10-01-preview.
Author: magodo
Assignees: -
Labels: `Service Attention`, `needs-triage`, `SecurityInsights`
Milestone: -
pho-enix commented 1 year ago

This is killing the python SDK:

Unable to deserialize response data. Data: 01/01/1970 00:00:00, iso-8601

Thus I would like to encourage you to go for ISO-8601 instead of RFC3339, as ISO-8601 is a subset of RFC3339.

magodo commented 4 months ago

Service has fixed this API, closing it.