MICROSOFT.DATADOG

CreationSupported_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.datadogOrganizationId == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

CreationSupported_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.datadogOrganizationId == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

MarketplaceAgreements_CreateOrUpdate

valid {
    input.Body.properties.publisher == STRING
    input.Body.properties.product == STRING
    input.Body.properties.plan == STRING
    input.Body.properties.licenseTextLink == STRING
    input.Body.properties.privacyPolicyLink == STRING
    input.Body.properties.retrieveDatetime == STRING
    input.Body.properties.signature == STRING
    input.Body.properties.accepted == BOOLEAN
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

MarketplaceAgreements_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

MonitoredSubscriptions_CreateorUpdate

enum_MonitoredSubscriptionStatus := [ "InProgress", "Active", "Failed", "Deleting" ]
enum_SubscriptionListOperation := [ "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", "Active" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.operation == enum_SubscriptionListOperation[_]
    input.Body.properties.monitoredSubscriptionList[_].subscriptionId == STRING
    input.Body.properties.monitoredSubscriptionList[_].status == enum_MonitoredSubscriptionStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].error == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendAadLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendSubscriptionLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendResourceLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.automuting == BOOLEAN
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

MonitoredSubscriptions_Delete

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

MonitoredSubscriptions_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

MonitoredSubscriptions_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

MonitoredSubscriptions_Update

enum_MonitoredSubscriptionStatus := [ "InProgress", "Active", "Failed", "Deleting" ]
enum_SubscriptionListOperation := [ "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", "Active" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.operation == enum_SubscriptionListOperation[_]
    input.Body.properties.monitoredSubscriptionList[_].subscriptionId == STRING
    input.Body.properties.monitoredSubscriptionList[_].status == enum_MonitoredSubscriptionStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].error == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendAadLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendSubscriptionLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendResourceLogs == BOOLEAN
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.automuting == BOOLEAN
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Create

enum_ManagedIdentityTypes := [ "SystemAssigned", "UserAssigned" ]
enum_MonitoringStatus := [ "Enabled", "Disabled" ]

valid {
    input.Body.sku.name == STRING
    input.Body.properties.monitoringStatus == enum_MonitoringStatus[_]
    input.Body.properties.datadogOrganizationProperties.name == STRING
    input.Body.properties.datadogOrganizationProperties.id == STRING
    input.Body.properties.datadogOrganizationProperties.linkingAuthCode == STRING
    input.Body.properties.datadogOrganizationProperties.linkingClientId == STRING
    input.Body.properties.datadogOrganizationProperties.redirectUri == STRING
    input.Body.properties.datadogOrganizationProperties.apiKey == STRING
    input.Body.properties.datadogOrganizationProperties.applicationKey == STRING
    input.Body.properties.datadogOrganizationProperties.enterpriseAppId == STRING
    input.Body.properties.datadogOrganizationProperties.cspm == BOOLEAN
    input.Body.properties.userInfo.name == STRING
    input.Body.properties.userInfo.emailAddress == STRING
    input.Body.properties.userInfo.phoneNumber == STRING
    input.Body.identity.type == enum_ManagedIdentityTypes[_]
    input.Body.tags.STRING == STRING
    input.Body.location == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Delete

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_GetDefaultKey

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Monitors_ListApiKeys

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListByResourceGroup

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListHosts

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListLinkedResources

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListMonitoredResources

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_RefreshSetPasswordLink

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_SetDefaultKey

valid {
    input.Body.createdBy == STRING
    input.Body.name == STRING
    input.Body.key == STRING
    input.Body.created == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Update

enum_MonitoringStatus := [ "Enabled", "Disabled" ]

valid {
    input.Body.properties.monitoringStatus == enum_MonitoringStatus[_]
    input.Body.properties.cspm == BOOLEAN
    input.Body.tags.STRING == STRING
    input.Body.sku.name == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

SingleSignOnConfigurations_CreateOrUpdate

enum_SingleSignOnStates := [ "Initial", "Enable", "Disable", "Existing" ]

valid {
    input.Body.properties.singleSignOnState == enum_SingleSignOnStates[_]
    input.Body.properties.enterpriseAppId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SingleSignOnConfigurations_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SingleSignOnConfigurations_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_CreateOrUpdate

enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.logRules.sendAadLogs == BOOLEAN
    input.Body.properties.logRules.sendSubscriptionLogs == BOOLEAN
    input.Body.properties.logRules.sendResourceLogs == BOOLEAN
    input.Body.properties.logRules.filteringTags[_].name == STRING
    input.Body.properties.logRules.filteringTags[_].value == STRING
    input.Body.properties.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.metricRules.filteringTags[_].name == STRING
    input.Body.properties.metricRules.filteringTags[_].value == STRING
    input.Body.properties.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.automuting == BOOLEAN
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}