diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp new file mode 100644 index 000000000000..339c53688a9f --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -0,0 +1,202 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogMonitorResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DatadogMonitorResource, + KeyName = "monitorName", + SegmentName = "monitors", + NamePattern = "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + >; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + sku?: ResourceSku; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + identity?: IdentityProperties; +} + +@armResourceOperations +interface DatadogMonitorResources { + /** + * Get the properties of a specific monitor resource. + */ + @summary("Get the properties of a specific monitor resource.") + get is ArmResourceRead; + + /** + * Create a monitor resource. + */ + @summary("Create a monitor resource.") + create is Azure.ResourceManager.Legacy.CreateOrUpdateAsync< + DatadogMonitorResource, + OptionalRequestBody = true + >; + + /** + * Update a monitor resource. + */ + @summary("Update a monitor resource.") + @patch(#{ implicitOptionality: false }) + update is Azure.ResourceManager.Legacy.CreateOrReplaceAsync< + DatadogMonitorResource, + Request = DatadogMonitorResourceUpdateParameters, + Response = ArmResponse | ArmResourceCreatedResponse< + DatadogMonitorResource, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >, + OptionalRequestBody = true + >; + + /** + * Delete a monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Delete a monitor resource.") + delete is ArmResourceDeleteWithoutOkAsync< + DatadogMonitorResource, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List all monitors under the specified resource group. + */ + @summary("List all monitors under the specified resource group.") + listByResourceGroup is ArmResourceListByParent< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List all monitors under the specified subscription. + */ + @summary("List all monitors under the specified subscription.") + list is ArmListBySubscription< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List the api keys for a given monitor resource. + */ + @list + @summary("List the api keys for a given monitor resource.") + listApiKeys is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Get the default api key. + */ + @summary("Get the default api key.") + getDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Set the default api key. + */ + @summary("Set the default api key.") + setDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + DatadogApiKey, + OkResponse, + OptionalRequestBody = true + >; + + /** + * List the hosts for a given monitor resource. + */ + @list + @summary("List the hosts for a given monitor resource.") + listHosts is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List all Azure resources associated to the same Datadog organization as the target resource. + */ + @list + @summary("List all Azure resources associated to the same Datadog organization as the target resource.") + listLinkedResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List the resources currently being monitored by the Datadog monitor resource. + */ + @list + @summary("List the resources currently being monitored by the Datadog monitor resource.") + listMonitoredResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Refresh the set password link and return a latest one. + */ + @summary("Refresh the set password link and return a latest one.") + refreshSetPasswordLink is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Get marketplace and organization info mapped to the given monitor. + */ + @summary("Get marketplace and organization info mapped to the given monitor.") + @action("getBillingInfo") + billingInfoGet is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Reinstate integration with your Datadog organization by choosing one of the available subscription plans. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @summary("Reinstate integration with your Datadog organization by choosing one of the available subscription plans.") + resubscribe is ArmResourceActionAsync< + DatadogMonitorResource, + ResubscribeProperties, + DatadogMonitorResource, + OptionalRequestBody = true + >; +} + +@@maxLength(DatadogMonitorResource.name, 32); +@@minLength(DatadogMonitorResource.name, 2); +@@doc(DatadogMonitorResource.name, "Monitor resource name"); +@@doc(DatadogMonitorResource.properties, + "Properties specific to the monitor resource." +); +@@doc(DatadogMonitorResources.create::parameters.resource, ""); +@@doc(DatadogMonitorResources.update::parameters.resource, ""); +@@doc(DatadogMonitorResources.setDefaultKey::parameters.body, ""); +@@doc(DatadogMonitorResources.resubscribe::parameters.body, + "Resubscribe Properties" +); diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp new file mode 100644 index 000000000000..541457107925 --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -0,0 +1,56 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +@parentResource(DatadogMonitorResource) +model DatadogSingleSignOnResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = DatadogSingleSignOnResource, + KeyName = "configurationName", + SegmentName = "singleSignOnConfigurations", + NamePattern = "" + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@armResourceOperations +interface DatadogSingleSignOnResources { + /** + * Gets the datadog single sign-on resource for the given Monitor. + */ + @summary("Gets the datadog single sign-on resource for the given Monitor.") + get is ArmResourceRead; + + /** + * Configures single-sign-on for this resource. + */ + @summary("Configures single-sign-on for this resource.") + create is Azure.ResourceManager.Legacy.CreateOrUpdateAsync< + DatadogSingleSignOnResource, + OptionalRequestBody = true + >; + + /** + * List the single sign-on configurations for a given monitor resource. + */ + @summary("List the single sign-on configurations for a given monitor resource.") + list is ArmResourceListByParent< + DatadogSingleSignOnResource, + Response = ArmResponse + >; +} + +@@doc(DatadogSingleSignOnResource.name, "Configuration name"); +@@doc(DatadogSingleSignOnResource.properties, ""); +@@doc(DatadogSingleSignOnResources.create::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp new file mode 100644 index 000000000000..f0c1cfcd6c82 --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -0,0 +1,91 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; +/** + * The request to update subscriptions needed to be monitored by the Datadog monitor resource. + */ +@parentResource(DatadogMonitorResource) +model MonitoredSubscriptionProperties + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = MonitoredSubscriptionProperties, + KeyName = "configurationName", + SegmentName = "monitoredSubscriptions", + NamePattern = "" + >; +} + +@armResourceOperations +interface MonitoredSubscriptions { + /** + * List the subscriptions currently being monitored by the Datadog monitor resource. + */ + @summary("List the subscriptions currently being monitored by the Datadog monitor resource.") + get is ArmResourceRead; + + /** + * Add the subscriptions that should be monitored by the Datadog monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Add the subscriptions that should be monitored by the Datadog monitor resource.") + createorUpdate is Azure.ResourceManager.Legacy.CreateOrUpdateAsync< + MonitoredSubscriptionProperties, + Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + MonitoredSubscriptionProperties, + ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + > | ArmAcceptedLroResponse, + OptionalRequestBody = true + >; + + /** + * Updates the subscriptions that are being monitored by the Datadog monitor resource + */ + @summary("Updates the subscriptions that are being monitored by the Datadog monitor resource") + @patch(#{ implicitOptionality: false }) + update is Azure.ResourceManager.Legacy.CreateOrReplaceAsync< + MonitoredSubscriptionProperties, + Request = MonitoredSubscriptionProperties, + Response = ArmResponse | ArmAcceptedLroResponse & + Azure.Core.Foundations.RetryAfterHeader>, + OptionalRequestBody = true + >; + + /** + * Updates the subscriptions that are being monitored by the Datadog monitor resource + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Updates the subscriptions that are being monitored by the Datadog monitor resource") + delete is ArmResourceDeleteWithoutOkAsync< + MonitoredSubscriptionProperties, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List the subscriptions currently being monitored by the Datadog monitor resource. + */ + @summary("List the subscriptions currently being monitored by the Datadog monitor resource.") + list is ArmResourceListByParent< + MonitoredSubscriptionProperties, + Response = ArmResponse + >; +} + +@@doc(MonitoredSubscriptionProperties.name, + "The configuration name. Only 'default' value is supported." +); +@@doc(MonitoredSubscriptionProperties.properties, + "The request to update subscriptions needed to be monitored by the Datadog monitor resource." +); +@@doc(MonitoredSubscriptions.createorUpdate::parameters.resource, ""); +@@doc(MonitoredSubscriptions.update::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp new file mode 100644 index 000000000000..a600d5657734 --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -0,0 +1,61 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; +/** + * Capture logs and metrics of Azure resources based on ARM tags. + */ +@parentResource(DatadogMonitorResource) +model MonitoringTagRules + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = MonitoringTagRules, + KeyName = "ruleSetName", + SegmentName = "tagRules", + NamePattern = "" + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@armResourceOperations +interface TagRules { + /** + * Get a tag rule set for a given monitor resource. + */ + @summary("Get a tag rule set for a given monitor resource.") + get is ArmResourceRead; + + /** + * Create or update a tag rule set for a given monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Create or update a tag rule set for a given monitor resource.") + createOrUpdate is Azure.ResourceManager.Legacy.CreateOrUpdateAsync< + MonitoringTagRules, + Response = ArmResourceUpdatedResponse, + OptionalRequestBody = true + >; + /** + * List the tag rules for a given monitor resource. + */ + @summary("List the tag rules for a given monitor resource.") + list is ArmResourceListByParent< + MonitoringTagRules, + Response = ArmResponse + >; +} + +@@doc(MonitoringTagRules.name, "Rule set name"); +@@doc(MonitoringTagRules.properties, + "Definition of the properties for a TagRules resource." +); +@@doc(TagRules.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp new file mode 100644 index 000000000000..dbc83068e0a5 --- /dev/null +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -0,0 +1,113 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.Datadog; + +// Client decorators for operations (migrated from @operationId) + +// DatadogMonitorResources operations +@@clientLocation(DatadogMonitorResources.get, "Monitors", "!csharp"); +@@clientName(DatadogMonitorResources.get, "Get"); + +@@clientLocation(DatadogMonitorResources.create, "Monitors"); +@@clientName(DatadogMonitorResources.create, "Create"); + +@@clientLocation(DatadogMonitorResources.update, "Monitors"); +@@clientName(DatadogMonitorResources.update, "Update"); + +@@clientLocation(DatadogMonitorResources.delete, "Monitors"); +@@clientName(DatadogMonitorResources.delete, "Delete"); + +@@clientLocation(DatadogMonitorResources.listByResourceGroup, "Monitors"); +@@clientName(DatadogMonitorResources.listByResourceGroup, + "ListByResourceGroup" +); + +@@clientLocation(DatadogMonitorResources.list, "Monitors", "!csharp"); +@@clientName(DatadogMonitorResources.list, "List", "!csharp"); + +@@clientLocation(DatadogMonitorResources.listApiKeys, "Monitors"); +@@clientName(DatadogMonitorResources.listApiKeys, "ListApiKeys"); + +@@clientLocation(DatadogMonitorResources.getDefaultKey, "Monitors"); +@@clientName(DatadogMonitorResources.getDefaultKey, "GetDefaultKey"); + +@@clientLocation(DatadogMonitorResources.setDefaultKey, "Monitors"); +@@clientName(DatadogMonitorResources.setDefaultKey, "SetDefaultKey"); + +@@clientLocation(DatadogMonitorResources.listHosts, "Monitors"); +@@clientName(DatadogMonitorResources.listHosts, "ListHosts"); + +@@clientLocation(DatadogMonitorResources.listLinkedResources, "Monitors"); +@@clientName(DatadogMonitorResources.listLinkedResources, + "ListLinkedResources" +); + +@@clientLocation(DatadogMonitorResources.listMonitoredResources, "Monitors"); +@@clientName(DatadogMonitorResources.listMonitoredResources, + "ListMonitoredResources" +); + +@@clientLocation(DatadogMonitorResources.refreshSetPasswordLink, "Monitors"); +@@clientName(DatadogMonitorResources.refreshSetPasswordLink, + "RefreshSetPasswordLink" +); + +@@clientLocation(DatadogMonitorResources.billingInfoGet, "BillingInfo"); +@@clientName(DatadogMonitorResources.billingInfoGet, "Get"); +@@clientLocation(DatadogMonitorResources.resubscribe, "Organizations"); + +// DatadogSingleSignOnResources operations +@@clientLocation(DatadogSingleSignOnResources.get, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.get, "Get"); + +@@clientLocation(DatadogSingleSignOnResources.create, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.create, "CreateOrUpdate"); + +@@clientLocation(DatadogSingleSignOnResources.list, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.list, "List"); + +// MarketplaceAgreementsOperationGroup operations +@@clientLocation(MarketplaceAgreementsOperationGroup.list, + "MarketplaceAgreements" +); +@@clientName(MarketplaceAgreementsOperationGroup.list, "List"); + +@@clientLocation(MarketplaceAgreementsOperationGroup.createOrUpdate, + "MarketplaceAgreements" +); +@@clientName(MarketplaceAgreementsOperationGroup.createOrUpdate, + "CreateOrUpdate" +); + +// CreationSupportedOperationGroup operations +@@clientLocation(CreationSupportedOperationGroup.list, "CreationSupported"); +@@clientName(CreationSupportedOperationGroup.list, "List"); + +@@clientLocation(CreationSupportedOperationGroup.get, "CreationSupported"); +@@clientName(CreationSupportedOperationGroup.get, "Get"); + +// Existing client decorators for parameters and models +@@clientName(DatadogMonitorResources.create::parameters.resource, "body"); +@@clientName(DatadogMonitorResources.update::parameters.resource, "body"); + +@@clientName(TagRules.createOrUpdate::parameters.resource, "body"); + +@@clientName(DatadogSingleSignOnResources.create::parameters.resource, "body"); + +@@clientName(MonitoredSubscriptions.createorUpdate::parameters.resource, + "body" +); +@@clientName(MonitoredSubscriptions.update::parameters.resource, "body"); +@@summary(Operations.list, + "List all operations provided by Microsoft.Datadog for the 2025-06-11 api version." +); +@@doc(Operations.list, + "List all operations provided by Microsoft.Datadog for the 2025-06-11 api version." +); diff --git a/specification/datadog/Datadog.Management/client.tsp b/specification/datadog/Datadog.Management/client.tsp new file mode 100644 index 000000000000..d0f58308bc5f --- /dev/null +++ b/specification/datadog/Datadog.Management/client.tsp @@ -0,0 +1,11 @@ +import "@azure-tools/typespec-client-generator-core"; +import "./main.tsp"; +using Azure.ClientGenerator.Core; +using Microsoft.Datadog; + +@@clientName(Microsoft.Datadog, "MicrosoftDatadogClient", "javascript"); +@@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); +@@clientName(CreateResourceSupportedResponse, + "CreateResourceSupportedResult", + "csharp" +); diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_GetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..bd520614bdea --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_GetDefaultKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + } + } + }, + "operationId": "Monitors_GetDefaultKey", + "title": "Monitors_GetDefaultKey" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_List.json new file mode 100644 index 000000000000..a0a0978af0c2 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + { + "name": "", + "created": "2019-04-05 09:19:53", + "createdBy": "jane@example.com", + "key": "2111111111111111aaaaaaaaaaaaaaaa" + } + ] + } + } + }, + "operationId": "Monitors_ListApiKeys", + "title": "Monitors_ListApiKeys" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_SetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..99e5a5edbc9f --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/ApiKeys_SetDefaultKey.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "requestBody": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Monitors_SetDefaultKey", + "title": "Monitors_SetDefaultKey" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/BillingInfo_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/BillingInfo_Get.json new file mode 100644 index 000000000000..a999fdfffe64 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/BillingInfo_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "marketplaceSaasInfo": { + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "marketplaceName": "MP_RESOURCE", + "marketplaceStatus": "Status", + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "subscribed": true + }, + "partnerBillingEntity": { + "name": "datadogOrganizationName", + "id": "1234567890", + "partnerEntityUri": "https://example.com" + } + } + } + }, + "operationId": "BillingInfo_Get", + "title": "BillingInfo_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_Get.json new file mode 100644 index 000000000000..0a1d5267ecff --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_Get.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + } + }, + "operationId": "CreationSupported_Get", + "title": "CreationSupported_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_List.json new file mode 100644 index 000000000000..898e8257763d --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/CreationSupported_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + ] + } + } + }, + "operationId": "CreationSupported_List", + "title": "CreationSupported_List" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Hosts_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Hosts_List.json new file mode 100644 index 000000000000..698e8eeb0a7f --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Hosts_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "vm1", + "aliases": [ + "vm1", + "65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd" + ], + "apps": [ + "ntp", + "agent" + ], + "meta": { + "agentVersion": "7.19.2", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "" + } + } + }, + { + "name": "vm2", + "aliases": [ + "vm2", + "df631d9a-8178-4580-bf60-c697a5e8df4d" + ], + "apps": [ + "infra", + "agent" + ], + "meta": { + "agentVersion": "7.18.1", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "HTTP" + } + } + } + ] + } + } + }, + "operationId": "Monitors_ListHosts", + "title": "Monitors_ListHosts" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/LinkedResources_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/LinkedResources_List.json new file mode 100644 index 000000000000..27c57f7379a6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/LinkedResources_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor", + "location": "West US 2" + } + ] + } + } + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_Create.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..6dafca2fca22 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_Create.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "accepted": true + } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", + "properties": { + "accepted": true, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + } + }, + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "title": "MarketplaceAgreements_CreateOrUpdate" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..b2aee94ed4f6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MarketplaceAgreements_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "planid1", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + }, + { + "name": "planid2", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLin2k", + "plan": "planid2", + "privacyPolicyLink": "test.privacyPolicyLink2", + "product": "offid2", + "publisher": "pubid2", + "retrieveDatetime": "2017-08-14T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + ] + } + } + }, + "operationId": "MarketplaceAgreements_List", + "title": "MarketplaceAgreements_List" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredResources_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredResources_List.json new file mode 100644 index 000000000000..2633a1d0c880 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", + "reasonForLogsStatus": "CapturedByRules", + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "sendingMetrics": true + } + ] + } + } + }, + "operationId": "Monitors_ListMonitoredResources", + "title": "Monitors_ListMonitoredResources" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..adb223b6ddb9 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,209 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddBegin" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "title": "Monitors_AddMonitoredSubscriptions" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Delete.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..f723577388f9 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "MonitoredSubscriptions_Delete", + "title": "Monitors_DeleteMonitoredSubscriptions" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..19934f9363aa --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Get.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + } + }, + "operationId": "MonitoredSubscriptions_Get", + "title": "Monitors_GetMonitoredSubscriptions" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..a44da644a864 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_List.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + ] + } + } + }, + "operationId": "MonitoredSubscriptions_List", + "title": "Monitors_GetMonitoredSubscriptions" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Update.json b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..88b0938b26f6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/MonitoredSubscriptions_Update.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddComplete" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_Update", + "title": "Monitors_UpdateMonitoredSubscriptions" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Create.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Create.json new file mode 100644 index 000000000000..0f6983983b61 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Create.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "id": "myOrg123", + "linkingAuthCode": "someAuthCode", + "linkingClientId": "00000000-0000-0000-0000-000000000000", + "resourceCollection": false + }, + "monitoringStatus": "Enabled", + "userInfo": { + "name": "Alice", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123-456-7890" + } + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Create", + "title": "Monitors_Create" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Delete.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Delete.json new file mode 100644 index 000000000000..8bcb433bd1d5 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "Monitors_Delete", + "title": "Monitors_Delete" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Get.json new file mode 100644 index 000000000000..b62a13d9fff6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "resourceCollection": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Get", + "title": "Monitors_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_List.json new file mode 100644 index 000000000000..51cd03bb2bda --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "resourceCollection": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_List", + "title": "Monitors_List" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_ListByResourceGroup.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..7f9235a7fa3e --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_ListByResourceGroup", + "title": "Monitors_ListByResourceGroup" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Update.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Update.json new file mode 100644 index 000000000000..cce799fc0fb7 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Monitors_Update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Update", + "title": "Monitors_Update" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Operations_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Operations_List.json new file mode 100644 index 000000000000..8eec7bc9849a --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Operations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-06-11" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "Microsoft.Datadog/monitors/write", + "display": { + "description": "Write monitors resource", + "operation": "write", + "provider": "Microsoft.Datadog", + "resource": "monitors" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/Organizations_Resubscribe.json b/specification/datadog/Datadog.Management/examples/2025-06-11/Organizations_Resubscribe.json new file mode 100644 index 000000000000..f0f52ff6d5f2 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/Organizations_Resubscribe.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "azureSubscriptionId": "subscriptionId", + "resourceGroup": "resourceGroup", + "sku": { + "name": "planName" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "marketplaceSubscriptionStatus": "Active", + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Datadog/monitor/monitorname/resubscribe?api-version=2025-06-11" + } + } + }, + "operationId": "Organizations_Resubscribe", + "title": "Organizations_Resubscribe" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/RefreshSetPassword_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..27e8ff152b56 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/RefreshSetPassword_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" + } + } + }, + "operationId": "Monitors_RefreshSetPasswordLink", + "title": "Monitors_RefreshSetPasswordLink" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..c3b4f7a34a28 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + } + }, + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "title": "SingleSignOnConfigurations_CreateOrUpdate" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..3691d1da796f --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + } + }, + "operationId": "SingleSignOnConfigurations_Get", + "title": "SingleSignOnConfigurations_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..8d422b7adc7c --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/SingleSignOnConfigurations_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + ] + } + } + }, + "operationId": "SingleSignOnConfigurations_List", + "title": "SingleSignOnConfigurations_List" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..749477e4f95b --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_CreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_CreateOrUpdate", + "title": "TagRules_CreateOrUpdate" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_Get.json b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_Get.json new file mode 100644 index 000000000000..1ad806c132bf --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_Get.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ] + }, + "automuting": true, + "customMetrics": false, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_Get", + "title": "TagRules_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_List.json b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_List.json new file mode 100644 index 000000000000..58e3b2f3a23a --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2025-06-11/TagRules_List.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ] + }, + "automuting": true, + "customMetrics": false, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "operationId": "TagRules_List", + "title": "TagRules_List" +} diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp new file mode 100644 index 000000000000..0733970d805d --- /dev/null +++ b/specification/datadog/Datadog.Management/main.tsp @@ -0,0 +1,56 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.9 + * Date: 2025-09-19T02:46:17.676Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./DatadogMonitorResource.tsp"; +import "./MonitoringTagRules.tsp"; +import "./DatadogSingleSignOnResource.tsp"; +import "./MonitoredSubscriptionProperties.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; + +@armProviderNamespace +@service(#{ title: "Microsoft.Datadog" }) +@versioned(Versions) +// FIXME: Common type version v1 is not supported for now. Set to v3. +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Datadog; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2025-06-11 API version. + */ + v2025_06_11: "2025-06-11", +} + +/** + * This is the interface that implements the standard Azure Resource Manager operation that returns + * all supported RP operations. You should have exactly one declaration for each + * Azure Resource Manager service. It implements + * GET "/providers/Microsoft.ContosoProviderHub/operations" + */ +interface Operations + extends Azure.ResourceManager.Legacy.Operations< + ArmResponse, + ErrorResponse + > {} diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp new file mode 100644 index 000000000000..c79c61623477 --- /dev/null +++ b/specification/datadog/Datadog.Management/models.tsp @@ -0,0 +1,955 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.Datadog; +/** + * Represents a paginated list of operation results. + */ +model OperationListResult { + /** + * The list of operations. + */ + @pageItems + value: OperationResult[]; + + /** + * The URL to get the next set of results, if any. + */ + @nextLink + nextLink?: string; +} +/** + * The type of identity that created the resource. + */ +union CreatedByType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + User: "User", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Application: "Application", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ManagedIdentity: "ManagedIdentity", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Key: "Key", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union ProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleted: "Deleted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotSpecified: "NotSpecified", +} + +/** + * Flag specifying if the resource monitoring is enabled or disabled. + */ +union MonitoringStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + */ +union MarketplaceSubscriptionStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Provisioning: "Provisioning", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Suspended: "Suspended", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unsubscribed: "Unsubscribed", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union LiftrResourceCategories { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MonitorLogs: "MonitorLogs", +} + +/** + * Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. + */ +union ManagedIdentityTypes { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SystemAssigned: "SystemAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserAssigned: "UserAssigned", +} + +/** + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. + */ +union TagAction { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Include: "Include", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Exclude: "Exclude", +} + +/** + * Various states of the SSO resource + */ +union SingleSignOnStates { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Initial: "Initial", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enable: "Enable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disable: "Disable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Existing: "Existing", +} + +/** + * The operation for the patch on the resource. + */ +union Operation { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AddBegin: "AddBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AddComplete: "AddComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeleteBegin: "DeleteBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeleteComplete: "DeleteComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", +} + +/** + * The state of monitoring. + */ +union Status { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", +} + +/** + * Response of a list operation. + */ +model DatadogAgreementResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogAgreementResource { + /** + * ARM id of the resource. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Name of the agreement. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * The type of the resource. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Represents the properties of the resource. + */ + properties?: DatadogAgreementProperties; + + /** + * Metadata pertaining to creation and last modification of the resource. + */ + @visibility(Lifecycle.Read) + systemData?: SystemData; +} + +/** + * Terms properties. + */ +model DatadogAgreementProperties { + /** + * Publisher identifier string. + */ + publisher?: string; + + /** + * Product identifier string. + */ + product?: string; + + /** + * Plan identifier string. + */ + plan?: string; + + /** + * Link to HTML with Microsoft and Publisher terms. + */ + licenseTextLink?: string; + + /** + * Link to the privacy policy of the publisher. + */ + privacyPolicyLink?: string; + + /** + * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + retrieveDatetime?: utcDateTime; + + /** + * Terms signature. + */ + signature?: string; + + /** + * If any version of the terms have been accepted, otherwise false. + */ + accepted?: boolean; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model CreateResourceSupportedResponseList + is Azure.Core.Page; + +/** + * Datadog resource can be created or not. + */ +model CreateResourceSupportedResponse { + /** + * Represents the properties of the resource. + */ + properties?: CreateResourceSupportedProperties; +} + +/** + * Datadog resource can be created or not properties. + */ +model CreateResourceSupportedProperties { + /** + * The ARM id of the subscription. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature. + */ + @visibility(Lifecycle.Read) + creationSupported?: boolean; +} + +/** + * Response of a list operation. + */ +model DatadogApiKeyListResponse is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogApiKey { + /** + * The user that created the API key. + */ + createdBy?: string; + + /** + * The name of the API key. + */ + name?: string; + + /** + * The value of the API key. + */ + key: string; + + /** + * The time of creation of the API key. + */ + created?: string; +} + +/** + * Response of a list operation. + */ +model DatadogHostListResponse is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogHost { + /** + * The name of the host. + */ + name?: string; + + /** + * The aliases for the host installed via the Datadog agent. + */ + aliases?: string[]; + + /** + * The Datadog integrations reporting metrics for the host. + */ + apps?: string[]; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + meta?: DatadogHostMetadata; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogHostMetadata { + /** + * The agent version. + */ + agentVersion?: string; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + installMethod?: DatadogInstallMethod; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + logsAgent?: DatadogLogsAgent; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogInstallMethod { + /** + * The tool. + */ + tool?: string; + + /** + * The tool version. + */ + toolVersion?: string; + + /** + * The installer version. + */ + installerVersion?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogLogsAgent { + /** + * The transport. + */ + transport?: string; +} + +/** + * Response of a list operation. + */ +model LinkedResourceListResponse is Azure.Core.Page; + +/** + * The definition of a linked resource. + */ +model LinkedResource { + /** + * The ARM id of the linked resource. + */ + id?: string; + + /** + * The location of the linked resource. + */ + location?: string; +} + +/** + * Response of a list operation. + */ +model MonitoredResourceListResponse is Azure.Core.Page; + +/** + * The properties of a resource currently being monitored by the Datadog monitor resource. + */ +model MonitoredResource { + /** + * The ARM id of the resource. + */ + id?: string; + + /** + * Flag indicating if resource is sending metrics to Datadog. + */ + sendingMetrics?: boolean; + + /** + * Reason for why the resource is sending metrics (or why it is not sending). + */ + reasonForMetricsStatus?: string; + + /** + * Flag indicating if resource is sending logs to Datadog. + */ + sendingLogs?: boolean; + + /** + * Reason for why the resource is sending logs (or why it is not sending). + */ + reasonForLogsStatus?: string; +} + +/** + * A Microsoft.Datadog REST API operation. + */ +model OperationResult { + /** + * Operation name, i.e., {provider}/{resource}/{operation}. + */ + name?: string; + + /** + * The object that represents the operation. + */ + display?: OperationDisplay; + + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; +} + +/** + * The object that represents the operation. + */ +model OperationDisplay { + /** + * Service provider, i.e., Microsoft.Datadog. + */ + provider?: string; + + /** + * Type on which the operation is performed, e.g., 'monitors'. + */ + resource?: string; + + /** + * Operation type, e.g., read, write, delete, etc. + */ + operation?: string; + + /** + * Description of the operation, e.g., 'Write monitors'. + */ + description?: string; +} + +/** + * Response of a list operation. + */ +model DatadogMonitorResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model ResourceSku { + /** + * Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'. + */ + name: string; +} + +/** + * Properties specific to the monitor resource. + */ +model MonitorProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Flag specifying if the resource monitoring is enabled or disabled. + */ + monitoringStatus?: MonitoringStatus = MonitoringStatus.Enabled; + + /** + * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + */ + @visibility(Lifecycle.Read) + marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; + + /** + * Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. + */ + datadogOrganizationProperties?: DatadogOrganizationProperties; + + /** + * Includes name, email and optionally, phone number. User Information can't be null. + */ + userInfo?: UserInfo; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + liftrResourceCategory?: LiftrResourceCategories; + + /** + * The priority of the resource. + */ + @visibility(Lifecycle.Read) + liftrResourcePreference?: int32; +} + +/** + * Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. + */ +model DatadogOrganizationProperties { + /** + * Name of the Datadog organization. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + name?: string; + + /** + * Id of the Datadog organization. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + id?: string; + + /** + * The auth code used to linking to an existing Datadog organization. + */ + @visibility(Lifecycle.Create) + @secret + linkingAuthCode?: string; + + /** + * The client_id from an existing in exchange for an auth token to link organization. + */ + @visibility(Lifecycle.Create) + @secret + linkingClientId?: string; + + /** + * The redirect URI for linking. + */ + @visibility(Lifecycle.Create) + redirectUri?: string; + + /** + * Api key associated to the Datadog organization. + */ + @visibility(Lifecycle.Create) + @secret + apiKey?: string; + + /** + * Application key associated to the Datadog organization. + */ + @visibility(Lifecycle.Create) + @secret + applicationKey?: string; + + /** + * The Id of the Enterprise App used for Single sign on. + */ + @visibility(Lifecycle.Create) + enterpriseAppId?: string; + + /** + * The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. + */ + cspm?: boolean; + + /** + * The configuration which describes the state of resource collection. This collects configuration information for all resources in a subscription. + */ + resourceCollection?: boolean; +} + +/** + * Includes name, email and optionally, phone number. User Information can't be null. + */ +model UserInfo { + /** + * Name of the user + */ + @maxLength(50) + name?: string; + + /** + * Email of the user used by Datadog for contacting them if needed + */ + @pattern("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$") + emailAddress?: string; + + /** + * Phone number of the user used by Datadog for contacting them if needed + */ + @maxLength(40) + phoneNumber?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model IdentityProperties { + /** + * The identity ID. + */ + @visibility(Lifecycle.Read) + principalId?: string; + + /** + * The tenant ID of resource. + */ + @visibility(Lifecycle.Read) + tenantId?: string; + + /** + * Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. + */ + type?: ManagedIdentityTypes; +} + +/** + * The parameters for a PATCH request to a monitor resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogMonitorResourceUpdateParameters { + /** + * The set of properties that can be update in a PATCH request to a monitor resource. + */ + properties?: MonitorUpdateProperties; + + /** + * The new tags of the monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + sku?: ResourceSku; +} + +/** + * The set of properties that can be update in a PATCH request to a monitor resource. + */ +model MonitorUpdateProperties { + /** + * Flag specifying if the resource monitoring is enabled or disabled. + */ + monitoringStatus?: MonitoringStatus = MonitoringStatus.Enabled; + + /** + * The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. + */ + cspm?: boolean; + + /** + * The new resource collection value of the monitor resource. This collects configuration information for all resources in a subscription. + */ + resourceCollection?: boolean; +} + +/** + * Marketplace Subscription and Organization details to which resource gets billed into. + */ +model BillingInfoResponse { + /** + * Marketplace Subscription details + */ + marketplaceSaasInfo?: MarketplaceSaaSInfo; + + /** + * Partner Billing Entity details: Organization Info + */ + partnerBillingEntity?: PartnerBillingEntity; +} + +/** + * Marketplace SAAS Info of the resource. + */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model MarketplaceSaaSInfo { + /** + * Marketplace Subscription Id. This is a GUID-formatted string. + */ + marketplaceSubscriptionId?: string; + + /** + * Marketplace Subscription Details: SAAS Name + */ + marketplaceName?: string; + + /** + * Marketplace Subscription Details: SaaS Subscription Status + */ + marketplaceStatus?: string; + + /** + * The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + */ + billedAzureSubscriptionId?: string; + + /** + * Flag specifying if the Marketplace status is subscribed or not. + */ + subscribed?: boolean; +} + +/** + * Partner Billing details associated with the resource. + */ +model PartnerBillingEntity { + /** + * The Datadog Organization Id. + */ + id?: string; + + /** + * The Datadog Organization Name. + */ + name?: string; + + /** + * Link to the datadog organization page + */ + partnerEntityUri?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogSetPasswordLink { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + setPasswordLink?: string; +} + +/** + * Response of a list operation. + */ +model MonitoringTagRulesListResponse is Azure.Core.Page; + +/** + * Definition of the properties for a TagRules resource. + */ +model MonitoringTagRulesProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Set of rules for sending logs for the Monitor resource. + */ + logRules?: LogRules; + + /** + * Set of rules for sending metrics for the Monitor resource. + */ + metricRules?: MetricRules; + + /** + * Set of rules for managing agents for the Monitor resource. + */ + agentRules?: AgentRules; + + /** + * Configuration to enable/disable auto-muting flag + */ + automuting?: boolean; + + /** + * Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent. + */ + customMetrics?: boolean; +} + +/** + * Set of rules for sending logs for the Monitor resource. + */ +model LogRules { + /** + * Flag specifying if AAD logs should be sent for the Monitor resource. + */ + sendAadLogs?: boolean; + + /** + * Flag specifying if Azure subscription logs should be sent for the Monitor resource. + */ + sendSubscriptionLogs?: boolean; + + /** + * Flag specifying if Azure resource logs should be sent for the Monitor resource. + */ + sendResourceLogs?: boolean; + + /** + * List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + */ + filteringTags?: FilteringTag[]; +} + +/** + * The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. + */ +model FilteringTag { + /** + * The name (also known as the key) of the tag. + */ + name?: string; + + /** + * The value of the tag. + */ + value?: string; + + /** + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. + */ + action?: TagAction; +} + +/** + * Set of rules for sending metrics for the Monitor resource. + */ +model MetricRules { + /** + * List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + */ + filteringTags?: FilteringTag[]; +} + +/** + * Set of rules for managing agents for the Monitor resource. + */ +model AgentRules { + /** + * Flag specifying if agent monitoring should be enabled for the Monitor resource. + */ + enableAgentMonitoring?: boolean; + + /** + * List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + */ + filteringTags?: FilteringTag[]; +} + +/** + * Response of a list operation. + */ +model DatadogSingleSignOnResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogSingleSignOnProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Various states of the SSO resource + */ + singleSignOnState?: SingleSignOnStates; + + /** + * The Id of the Enterprise App used for Single sign-on. + */ + enterpriseAppId?: string; + + /** + * The login URL specific to this Datadog Organization. + */ + @visibility(Lifecycle.Read) + singleSignOnUrl?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model MonitoredSubscriptionPropertiesList + is Azure.Core.Page; + +/** + * The request to update subscriptions needed to be monitored by the Datadog monitor resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model SubscriptionList { + /** + * The operation for the patch on the resource. + */ + @visibility(Lifecycle.Create, Lifecycle.Update) + operation?: Operation; + + /** + * List of subscriptions and the state of the monitoring. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + monitoredSubscriptionList?: MonitoredSubscription[]; +} + +/** + * The list of subscriptions and it's monitoring status by current Datadog monitor. + */ +model MonitoredSubscription { + /** + * The subscriptionId to be monitored. + */ + subscriptionId?: string; + + /** + * The state of monitoring. + */ + status?: Status; + + /** + * The reason of not monitoring the subscription. + */ + error?: string; + + /** + * Definition of the properties for a TagRules resource. + */ + tagRules?: MonitoringTagRulesProperties; +} + +/** + * Resubscribe Properties + */ +model ResubscribeProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + sku?: ResourceSku; + + /** + * Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe + */ + azureSubscriptionId?: string; + + /** + * Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe + */ + resourceGroup?: string; +} diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp new file mode 100644 index 000000000000..f71bd6464de8 --- /dev/null +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -0,0 +1,84 @@ +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface MarketplaceAgreementsOperationGroup { + /** + * List Datadog marketplace agreements in the subscription. + */ + @summary("List Datadog marketplace agreements in the subscription.") + @autoRoute + @get + @list + @action("agreements") + list is ArmProviderActionSync< + Response = DatadogAgreementResourceListResponse, + Scope = SubscriptionActionScope, + Parameters = {} + >; + /** + * Create Datadog marketplace agreement in the subscription. + */ + @summary("Create Datadog marketplace agreement in the subscription.") + @autoRoute + @put + @action("agreements/default") + createOrUpdate is ArmProviderActionSync< + Request = DatadogAgreementResource, + Response = DatadogAgreementResource, + Scope = SubscriptionActionScope, + Parameters = {}, + OptionalRequestBody = true + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface CreationSupportedOperationGroup { + /** + * Informs if the current subscription is being already monitored for selected Datadog organization. + */ + @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") + @autoRoute + @get + @list + @action("subscriptionStatuses") + list is ArmProviderActionSync< + Response = CreateResourceSupportedResponseList, + Scope = SubscriptionActionScope, + Parameters = { + /** + * Datadog Organization Id + */ + @query("datadogOrganizationId") + datadogOrganizationId: string; + } + >; + /** + * Informs if the current subscription is being already monitored for selected Datadog organization. + */ + @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") + @autoRoute + @get + @action("subscriptionStatuses/default") + get is ArmProviderActionSync< + Response = CreateResourceSupportedResponse, + Scope = SubscriptionActionScope, + Parameters = { + /** + * Datadog Organization Id + */ + @query("datadogOrganizationId") + datadogOrganizationId: string; + } + >; +} diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml new file mode 100644 index 000000000000..0dee4eca5946 --- /dev/null +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -0,0 +1,45 @@ +parameters: + "service-dir": + default: "sdk/datadog" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" + examples-dir: "{project-root}/examples" + emit-lro-options: "all" + "@azure-tools/typespec-python": + emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-datadog" + namespace: "azure.mgmt.datadog" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-datadog" + namespace: "com.azure.resourcemanager.datadog" + service-name: "Microsoft Datadog" + flavor: azure + "@azure-tools/typespec-ts": + service-dir: sdk/datadog + emitter-output-dir: "{output-dir}/{service-dir}/arm-datadog" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-datadog" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/datadog" + emitter-output-dir: "{output-dir}/{service-dir}/armdatadog" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armdatadog" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/datadog.json new file mode 100644 index 000000000000..53078102065b --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/datadog.json @@ -0,0 +1,2674 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Datadog", + "version": "2024-03-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Microsoft Entra ID OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "get": { + "tags": [ + "Agreements" + ], + "summary": "List Datadog marketplace agreements in the subscription.", + "operationId": "MarketplaceAgreements_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogAgreementResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MarketplaceAgreements_List": { + "$ref": "./examples/MarketplaceAgreements_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default": { + "put": { + "tags": [ + "Agreements" + ], + "summary": "Create Datadog marketplace agreement in the subscription.", + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MarketplaceAgreements_CreateOrUpdate": { + "$ref": "./examples/MarketplaceAgreements_Create.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "get": { + "tags": [ + "CreateResource" + ], + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "operationId": "CreationSupported_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DatadogOrganizationId" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponseList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "CreationSupported_List": { + "$ref": "./examples/CreationSupported_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default": { + "get": { + "tags": [ + "CreateResource" + ], + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "operationId": "CreationSupported_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DatadogOrganizationId" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreationSupported_Get": { + "$ref": "./examples/CreationSupported_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "List the api keys for a given monitor resource.", + "operationId": "Monitors_ListApiKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogApiKeyListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListApiKeys": { + "$ref": "./examples/ApiKeys_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "Get the default api key.", + "operationId": "Monitors_GetDefaultKey", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetDefaultKey": { + "$ref": "./examples/ApiKeys_GetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "Set the default api key.", + "operationId": "Monitors_SetDefaultKey", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_SetDefaultKey": { + "$ref": "./examples/ApiKeys_SetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { + "post": { + "tags": [ + "Hosts" + ], + "summary": "List the hosts for a given monitor resource.", + "operationId": "Monitors_ListHosts", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogHostListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListHosts": { + "$ref": "./examples/Hosts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { + "post": { + "tags": [ + "LinkedResources" + ], + "summary": "List all Azure resources associated to the same Datadog organization as the target resource.", + "operationId": "Monitors_ListLinkedResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LinkedResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListLinkedResources": { + "$ref": "./examples/LinkedResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "post": { + "tags": [ + "MonitoredResources" + ], + "summary": "List the resources currently being monitored by the Datadog monitor resource.", + "operationId": "Monitors_ListMonitoredResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListMonitoredResources": { + "$ref": "./examples/MonitoredResources_List.json" + } + } + } + }, + "/providers/Microsoft.Datadog/operations": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all operations provided by Microsoft.Datadog for the 2024-03-01 api version.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all monitors under the specified subscription.", + "operationId": "Monitors_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_List": { + "$ref": "./examples/Monitors_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all monitors under the specified resource group.", + "operationId": "Monitors_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "Get the properties of a specific monitor resource.", + "operationId": "Monitors_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" + } + } + }, + "put": { + "tags": [ + "MonitorsResource" + ], + "summary": "Create a monitor resource.", + "operationId": "Monitors_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" + } + } + }, + "patch": { + "tags": [ + "MonitorsResource" + ], + "summary": "Update a monitor resource.", + "operationId": "Monitors_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" + } + } + }, + "delete": { + "tags": [ + "MonitorsResource" + ], + "summary": "Delete a monitor resource.", + "operationId": "Monitors_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success" + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_Delete": { + "$ref": "./examples/Monitors_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { + "post": { + "tags": [ + "ConnectedResources" + ], + "summary": "Get marketplace and organization info mapped to the given monitor.", + "operationId": "BillingInfo_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/BillingInfoResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingInfo_Get": { + "$ref": "./examples/BillingInfo_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { + "post": { + "tags": [ + "RefreshSetPasswordLink" + ], + "summary": "Refresh the set password link and return a latest one.", + "operationId": "Monitors_RefreshSetPasswordLink", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSetPasswordLink" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_RefreshSetPasswordLink": { + "$ref": "./examples/RefreshSetPassword_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { + "get": { + "tags": [ + "Rules" + ], + "summary": "List the tag rules for a given monitor resource.", + "operationId": "TagRules_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRulesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Create or update a tag rule set for a given monitor resource.", + "operationId": "TagRules_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Rule set name", + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "Rules" + ], + "summary": "Get a tag rule set for a given monitor resource.", + "operationId": "TagRules_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Rule set name", + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations": { + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "List the single sign-on configurations for a given monitor resource.", + "operationId": "SingleSignOnConfigurations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SingleSignOnConfigurations_List": { + "$ref": "./examples/SingleSignOnConfigurations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}": { + "put": { + "tags": [ + "SingleSignOn" + ], + "summary": "Configures single-sign-on for this resource.", + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "SingleSignOnConfigurations_CreateOrUpdate": { + "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "Gets the datadog single sign-on resource for the given Monitor.", + "operationId": "SingleSignOnConfigurations_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "get": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "get": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Get.json" + } + } + }, + "put": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "Add the subscriptions that should be monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_AddMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" + } + } + }, + "patch": { + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "operationId": "MonitoredSubscriptions_Update", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_UpdateMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Update.json" + } + } + }, + "delete": { + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "operationId": "MonitoredSubscriptions_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success" + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_DeleteMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Delete.json" + } + } + } + } + }, + "definitions": { + "DatadogAgreementProperties": { + "description": "Terms properties.", + "type": "object", + "properties": { + "publisher": { + "description": "Publisher identifier string.", + "type": "string" + }, + "product": { + "description": "Product identifier string.", + "type": "string" + }, + "plan": { + "description": "Plan identifier string.", + "type": "string" + }, + "licenseTextLink": { + "description": "Link to HTML with Microsoft and Publisher terms.", + "type": "string" + }, + "privacyPolicyLink": { + "description": "Link to the privacy policy of the publisher.", + "type": "string" + }, + "retrieveDatetime": { + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.", + "type": "string" + }, + "signature": { + "description": "Terms signature.", + "type": "string" + }, + "accepted": { + "description": "If any version of the terms have been accepted, otherwise false.", + "type": "boolean" + } + } + }, + "DatadogAgreementResource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the agreement.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatadogAgreementProperties", + "description": "Represents the properties of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogAgreementResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "CreateResourceSupportedProperties": { + "description": "Datadog resource can be created or not properties.", + "type": "object", + "properties": { + "name": { + "description": "The ARM id of the subscription.", + "type": "string", + "readOnly": true + }, + "creationSupported": { + "description": "Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature. ", + "type": "boolean", + "readOnly": true + } + } + }, + "CreateResourceSupportedResponse": { + "description": "Datadog resource can be created or not.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/CreateResourceSupportedProperties", + "description": "Represents the properties of the resource." + } + } + }, + "CreateResourceSupportedResponseList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "DatadogApiKey": { + "required": [ + "key" + ], + "type": "object", + "properties": { + "createdBy": { + "description": "The user that created the API key.", + "type": "string" + }, + "name": { + "description": "The name of the API key.", + "type": "string" + }, + "key": { + "description": "The value of the API key.", + "type": "string" + }, + "created": { + "description": "The time of creation of the API key.", + "type": "string" + } + } + }, + "DatadogApiKeyListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "DatadogInstallMethod": { + "type": "object", + "properties": { + "tool": { + "description": "The tool.", + "type": "string" + }, + "toolVersion": { + "description": "The tool version.", + "type": "string" + }, + "installerVersion": { + "description": "The installer version.", + "type": "string" + } + } + }, + "DatadogLogsAgent": { + "type": "object", + "properties": { + "transport": { + "description": "The transport.", + "type": "string" + } + } + }, + "DatadogHostMetadata": { + "type": "object", + "properties": { + "agentVersion": { + "description": "The agent version.", + "type": "string" + }, + "installMethod": { + "$ref": "#/definitions/DatadogInstallMethod" + }, + "logsAgent": { + "$ref": "#/definitions/DatadogLogsAgent" + } + } + }, + "DatadogHost": { + "type": "object", + "properties": { + "name": { + "description": "The name of the host.", + "type": "string" + }, + "aliases": { + "description": "The aliases for the host installed via the Datadog agent.", + "type": "array", + "items": { + "type": "string" + } + }, + "apps": { + "description": "The Datadog integrations reporting metrics for the host.", + "type": "array", + "items": { + "type": "string" + } + }, + "meta": { + "$ref": "#/definitions/DatadogHostMetadata" + } + } + }, + "DatadogHostListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogHost" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "LinkedResource": { + "description": "The definition of a linked resource.", + "type": "object", + "properties": { + "id": { + "description": "The ARM id of the linked resource.", + "type": "string" + }, + "location": { + "description": "The location of the linked resource.", + "type": "string" + } + } + }, + "LinkedResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LinkedResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MonitoredResource": { + "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "id": { + "description": "The ARM id of the resource.", + "type": "string" + }, + "sendingMetrics": { + "description": "Flag indicating if resource is sending metrics to Datadog.", + "type": "boolean" + }, + "reasonForMetricsStatus": { + "description": "Reason for why the resource is sending metrics (or why it is not sending).", + "type": "string" + }, + "sendingLogs": { + "description": "Flag indicating if resource is sending logs to Datadog.", + "type": "boolean" + }, + "reasonForLogsStatus": { + "description": "Reason for why the resource is sending logs (or why it is not sending).", + "type": "string" + } + } + }, + "MonitoredResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "BillingInfoResponse": { + "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "type": "object", + "properties": { + "marketplaceSaasInfo": { + "description": "Marketplace Subscription details", + "$ref": "#/definitions/MarketplaceSaaSInfo" + }, + "partnerBillingEntity": { + "description": "Partner Billing Entity details: Organization Info", + "$ref": "#/definitions/PartnerBillingEntity" + } + } + }, + "MarketplaceSaaSInfo": { + "description": "Marketplace SAAS Info of the resource.", + "type": "object", + "properties": { + "marketplaceSubscriptionId": { + "description": "Marketplace Subscription Id. This is a GUID-formatted string.", + "type": "string" + }, + "marketplaceName": { + "description": "Marketplace Subscription Details: SAAS Name", + "type": "string" + }, + "marketplaceStatus": { + "description": "Marketplace Subscription Details: SaaS Subscription Status", + "type": "string" + }, + "billedAzureSubscriptionId": { + "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into.", + "type": "string" + }, + "subscribed": { + "description": "Flag specifying if the Marketplace status is subscribed or not.", + "type": "boolean" + } + } + }, + "PartnerBillingEntity": { + "description": "Partner Billing details associated with the resource.", + "type": "object", + "properties": { + "id": { + "description": "The Datadog Organization Id.", + "type": "string" + }, + "name": { + "description": "The Datadog Organization Name.", + "type": "string" + }, + "partnerEntityUri": { + "description": "Link to the datadog organization page", + "type": "string" + } + } + }, + "MonitoredSubscription": { + "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", + "type": "object", + "properties": { + "subscriptionId": { + "description": "The subscriptionId to be monitored.", + "required": [ + "subscriptionId" + ], + "type": "string" + }, + "status": { + "description": "The state of monitoring.", + "enum": [ + "InProgress", + "Active", + "Failed", + "Deleting" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "Status" + }, + "type": "string" + }, + "error": { + "description": "The reason of not monitoring the subscription.", + "type": "string" + }, + "tagRules": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + } + } + }, + "SubscriptionList": { + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "operation": { + "description": "The operation for the patch on the resource.", + "enum": [ + "AddBegin", + "AddComplete", + "DeleteBegin", + "DeleteComplete", + "Active" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "Operation" + }, + "x-ms-mutability": [ + "create", + "update" + ] + }, + "monitoredSubscriptionList": { + "description": "List of subscriptions and the state of the monitoring.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredSubscription" + } + } + } + }, + "MonitoredSubscriptionProperties": { + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "name": { + "description": "Name of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/SubscriptionList" + } + } + }, + "MonitoredSubscriptionPropertiesList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Service provider, i.e., Microsoft.Datadog.", + "type": "string" + }, + "resource": { + "description": "Type on which the operation is performed, e.g., 'monitors'.", + "type": "string" + }, + "operation": { + "description": "Operation type, e.g., read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation, e.g., 'Write monitors'.", + "type": "string" + } + } + }, + "OperationResult": { + "description": "A Microsoft.Datadog REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name, i.e., {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + } + } + }, + "OperationListResult": { + "description": "Result of GET request to list the Microsoft.Datadog operations.", + "type": "object", + "properties": { + "value": { + "description": "List of operations supported by the Microsoft.Datadog provider.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string" + } + } + }, + "ResourceSku": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "description": "Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'.", + "type": "string" + } + } + }, + "ProvisioningState": { + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + }, + "readOnly": true + }, + "MonitoringStatus": { + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MonitoringStatus" + } + }, + "MarketplaceSubscriptionStatus": { + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "enum": [ + "Provisioning", + "Active", + "Suspended", + "Unsubscribed" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MarketplaceSubscriptionStatus" + }, + "readOnly": true + }, + "DatadogOrganizationProperties": { + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.", + "type": "object", + "properties": { + "name": { + "description": "Name of the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "id": { + "description": "Id of the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "linkingAuthCode": { + "description": "The auth code used to linking to an existing Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "linkingClientId": { + "description": "The client_id from an existing in exchange for an auth token to link organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "redirectUri": { + "description": "The redirect URI for linking.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "apiKey": { + "description": "Api key associated to the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "applicationKey": { + "description": "Application key associated to the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign on.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "cspm": { + "description": "The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", + "type": "boolean" + } + } + }, + "UserInfo": { + "description": "Includes name, email and optionally, phone number. User Information can't be null.", + "type": "object", + "properties": { + "name": { + "description": "Name of the user", + "maxLength": 50, + "type": "string" + }, + "emailAddress": { + "description": "Email of the user used by Datadog for contacting them if needed", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", + "type": "string" + }, + "phoneNumber": { + "description": "Phone number of the user used by Datadog for contacting them if needed", + "maxLength": 40, + "type": "string" + } + }, + "x-ms-secret": true + }, + "LiftrResourceCategories": { + "enum": [ + "Unknown", + "MonitorLogs" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "LiftrResourceCategories" + }, + "readOnly": true + }, + "MonitorProperties": { + "description": "Properties specific to the monitor resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + }, + "marketplaceSubscriptionStatus": { + "$ref": "#/definitions/MarketplaceSubscriptionStatus" + }, + "datadogOrganizationProperties": { + "$ref": "#/definitions/DatadogOrganizationProperties" + }, + "userInfo": { + "$ref": "#/definitions/UserInfo" + }, + "liftrResourceCategory": { + "$ref": "#/definitions/LiftrResourceCategories" + }, + "liftrResourcePreference": { + "description": "The priority of the resource.", + "format": "int32", + "type": "integer", + "readOnly": true + } + } + }, + "ManagedIdentityTypes": { + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", + "x-ms-enum": { + "modelAsString": true, + "name": "ManagedIdentityTypes" + } + }, + "IdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The identity ID.", + "type": "string", + "readOnly": true + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ManagedIdentityTypes" + } + } + }, + "DatadogMonitorResource": { + "required": [ + "location" + ], + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the monitor resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the monitor resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the monitor resource.", + "type": "string", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + }, + "properties": { + "$ref": "#/definitions/MonitorProperties" + }, + "identity": { + "$ref": "#/definitions/IdentityProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogMonitorResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MonitorUpdateProperties": { + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + }, + "cspm": { + "description": "The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", + "type": "boolean" + } + } + }, + "DatadogMonitorResourceUpdateParameters": { + "description": "The parameters for a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties" + }, + "tags": { + "description": "The new tags of the monitor resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + } + } + }, + "DatadogSetPasswordLink": { + "type": "object", + "properties": { + "setPasswordLink": { + "type": "string" + } + } + }, + "TagAction": { + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", + "enum": [ + "Include", + "Exclude" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "TagAction" + } + }, + "FilteringTag": { + "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", + "type": "object", + "properties": { + "name": { + "description": "The name (also known as the key) of the tag.", + "type": "string" + }, + "value": { + "description": "The value of the tag.", + "type": "string" + }, + "action": { + "$ref": "#/definitions/TagAction" + } + } + }, + "LogRules": { + "description": "Set of rules for sending logs for the Monitor resource.", + "type": "object", + "properties": { + "sendAadLogs": { + "description": "Flag specifying if AAD logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendSubscriptionLogs": { + "description": "Flag specifying if Azure subscription logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendResourceLogs": { + "description": "Flag specifying if Azure resource logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "MetricRules": { + "description": "Set of rules for sending metrics for the Monitor resource.", + "type": "object", + "properties": { + "filteringTags": { + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "AgentRules": { + "description": "Set of rules for managing agents for the Monitor resource.", + "type": "object", + "properties": { + "enableAgentMonitoring": { + "description": "Flag specifying if agent monitoring should be enabled for the Monitor resource.", + "type": "boolean" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "MonitoringTagRulesProperties": { + "description": "Definition of the properties for a TagRules resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "logRules": { + "$ref": "#/definitions/LogRules" + }, + "metricRules": { + "$ref": "#/definitions/MetricRules" + }, + "agentRules": { + "$ref": "#/definitions/AgentRules" + }, + "automuting": { + "description": "Configuration to enable/disable auto-muting flag", + "type": "boolean" + }, + "customMetrics": { + "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent.", + "type": "boolean" + } + } + }, + "MonitoringTagRules": { + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "name": { + "description": "Name of the rule set.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the rule set.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the rule set.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "MonitoringTagRulesListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "SingleSignOnStates": { + "description": "Various states of the SSO resource", + "enum": [ + "Initial", + "Enable", + "Disable", + "Existing" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "SingleSignOnStates" + } + }, + "DatadogSingleSignOnProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates" + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign-on.", + "type": "string" + }, + "singleSignOnUrl": { + "description": "The login URL specific to this Datadog Organization.", + "type": "string", + "readOnly": true + } + } + }, + "DatadogSingleSignOnResource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the configuration.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatadogSingleSignOnProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogSingleSignOnResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + } + }, + "parameters": { + "MonitorNameParameter": { + "in": "path", + "name": "monitorName", + "description": "Monitor resource name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$", + "minLength": 2, + "maxLength": 32 + }, + "DatadogOrganizationId": { + "in": "query", + "name": "datadogOrganizationId", + "description": "Datadog Organization Id", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..8dc2ddb42e72 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_GetDefaultKey.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "createdBy": "john@example.com", + "name": "", + "key": "1111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:20:30" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_List.json new file mode 100644 index 000000000000..5541961b1f33 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_List.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "createdBy": "john@example.com", + "name": "", + "key": "1111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:20:30" + }, + { + "createdBy": "jane@example.com", + "name": "", + "key": "2111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:19:53" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..f82466f11b10 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/ApiKeys_SetDefaultKey.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "requestBody": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/BillingInfo_Get.json new file mode 100644 index 000000000000..9dda6a1936b8 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/BillingInfo_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "marketplaceSaasInfo": { + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "marketplaceName": "MP_RESOURCE", + "marketplaceStatus": "Status", + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "subscribed": true + }, + "partnerBillingEntity": { + "id": "1234567890", + "name": "datadogOrganizationName", + "partnerEntityUri": "https://example.com" + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_Get.json new file mode 100644 index 000000000000..b12ef343052f --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "datadogOrganizationId": "00000000-0000-0000-0000" + }, + "responses": { + "200": { + "body": { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_List.json new file mode 100644 index 000000000000..2d13fa57c195 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/CreationSupported_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "datadogOrganizationId": "00000000-0000-0000-0000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Hosts_List.json new file mode 100644 index 000000000000..7ff87536e891 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Hosts_List.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "vm1", + "aliases": [ + "vm1", + "65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd" + ], + "apps": [ + "ntp", + "agent" + ], + "meta": { + "agentVersion": "7.19.2", + "installMethod": { + "tool": "install_script", + "toolVersion": "install_script", + "installerVersion": "install_script-1.0.0" + }, + "logsAgent": { + "transport": "" + } + } + }, + { + "name": "vm2", + "aliases": [ + "vm2", + "df631d9a-8178-4580-bf60-c697a5e8df4d" + ], + "apps": [ + "infra", + "agent" + ], + "meta": { + "agentVersion": "7.18.1", + "installMethod": { + "tool": "install_script", + "toolVersion": "install_script", + "installerVersion": "install_script-1.0.0" + }, + "logsAgent": { + "transport": "HTTP" + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/LinkedResources_List.json new file mode 100644 index 000000000000..94c4111d500c --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/LinkedResources_List.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor", + "location": "West US 2" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..70d043b7ad0a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_Create.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "body": { + "properties": { + "accepted": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", + "name": "default", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid1", + "product": "offid1", + "plan": "planid1", + "licenseTextLink": "test.licenseLink1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..70c9cfe9f278 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MarketplaceAgreements_List.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", + "name": "planid1", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid1", + "product": "offid1", + "plan": "planid1", + "licenseTextLink": "test.licenseLink1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": false + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", + "name": "planid2", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid2", + "product": "offid2", + "plan": "planid2", + "licenseTextLink": "test.licenseLin2k", + "privacyPolicyLink": "test.privacyPolicyLink2", + "retrieveDatetime": "2017-08-14T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": false + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredResources_List.json new file mode 100644 index 000000000000..2496b9964fe9 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredResources_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", + "sendingMetrics": true, + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "reasonForLogsStatus": "CapturedByRules" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..702c808c54a9 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,207 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "operation": "AddBegin", + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..342e9f59e2e0 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..662898459c9c --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..fd2c93f12a58 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_List.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..07086b281912 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/MonitoredSubscriptions_Update.json @@ -0,0 +1,142 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "operation": "AddComplete", + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Create.json new file mode 100644 index 000000000000..fa09b2571892 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Create.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "body": { + "sku": { + "name": "free_Monthly" + }, + "properties": { + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": "someAuthCode", + "linkingClientId": "00000000-0000-0000-0000-000000000000", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "cspm": false + }, + "userInfo": { + "name": "Alice", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123-456-7890" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Delete.json new file mode 100644 index 000000000000..6bbf78c55e6a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Get.json new file mode 100644 index 000000000000..577530b7d2e6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null, + "cspm": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_List.json new file mode 100644 index 000000000000..9b93a78a90e0 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null, + "cspm": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..3efb41fc1335 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Update.json new file mode 100644 index 000000000000..46b21f1666a7 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Monitors_Update.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "body": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Operations_List.json new file mode 100644 index 000000000000..f85ebc25a6c6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/Operations_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Datadog/monitors/write", + "display": { + "provider": "Microsoft.Datadog", + "resource": "monitors", + "operation": "write", + "description": "Write monitors resource" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..504900674181 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/RefreshSetPassword_Get.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..8fd91de6fbd9 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": null + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": null + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..1dd1cc311da5 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..c512536a84cf --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/SingleSignOnConfigurations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..e029cff33abc --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_CreateOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default", + "body": { + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_Get.json new file mode 100644 index 000000000000..e1bd22157a37 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_Get.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "automuting": true, + "customMetrics": false + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_List.json new file mode 100644 index 000000000000..543fc8a9247a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2024-03-01/examples/TagRules_List.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2024-03-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "automuting": true, + "customMetrics": false + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/datadog.json new file mode 100644 index 000000000000..0fe48cbf6afc --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/datadog.json @@ -0,0 +1,2759 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Datadog", + "version": "2025-01-07" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Microsoft Entra ID OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "get": { + "tags": [ + "Agreements" + ], + "summary": "List Datadog marketplace agreements in the subscription.", + "operationId": "MarketplaceAgreements_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogAgreementResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MarketplaceAgreements_List": { + "$ref": "./examples/MarketplaceAgreements_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default": { + "put": { + "tags": [ + "Agreements" + ], + "summary": "Create Datadog marketplace agreement in the subscription.", + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MarketplaceAgreements_CreateOrUpdate": { + "$ref": "./examples/MarketplaceAgreements_Create.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "get": { + "tags": [ + "CreateResource" + ], + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "operationId": "CreationSupported_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DatadogOrganizationId" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponseList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "CreationSupported_List": { + "$ref": "./examples/CreationSupported_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default": { + "get": { + "tags": [ + "CreateResource" + ], + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "operationId": "CreationSupported_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/DatadogOrganizationId" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreationSupported_Get": { + "$ref": "./examples/CreationSupported_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "List the api keys for a given monitor resource.", + "operationId": "Monitors_ListApiKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogApiKeyListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListApiKeys": { + "$ref": "./examples/ApiKeys_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "Get the default api key.", + "operationId": "Monitors_GetDefaultKey", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetDefaultKey": { + "$ref": "./examples/ApiKeys_GetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { + "post": { + "tags": [ + "ApiKey" + ], + "summary": "Set the default api key.", + "operationId": "Monitors_SetDefaultKey", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_SetDefaultKey": { + "$ref": "./examples/ApiKeys_SetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { + "post": { + "tags": [ + "Hosts" + ], + "summary": "List the hosts for a given monitor resource.", + "operationId": "Monitors_ListHosts", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogHostListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListHosts": { + "$ref": "./examples/Hosts_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { + "post": { + "tags": [ + "LinkedResources" + ], + "summary": "List all Azure resources associated to the same Datadog organization as the target resource.", + "operationId": "Monitors_ListLinkedResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LinkedResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListLinkedResources": { + "$ref": "./examples/LinkedResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "post": { + "tags": [ + "MonitoredResources" + ], + "summary": "List the resources currently being monitored by the Datadog monitor resource.", + "operationId": "Monitors_ListMonitoredResources", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListMonitoredResources": { + "$ref": "./examples/MonitoredResources_List.json" + } + } + } + }, + "/providers/Microsoft.Datadog/operations": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all operations provided by Microsoft.Datadog for the 2025-01-07 api version.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all monitors under the specified subscription.", + "operationId": "Monitors_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_List": { + "$ref": "./examples/Monitors_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "List all monitors under the specified resource group.", + "operationId": "Monitors_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { + "get": { + "tags": [ + "MonitorsResource" + ], + "summary": "Get the properties of a specific monitor resource.", + "operationId": "Monitors_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" + } + } + }, + "put": { + "tags": [ + "MonitorsResource" + ], + "summary": "Create a monitor resource.", + "operationId": "Monitors_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" + } + } + }, + "patch": { + "tags": [ + "MonitorsResource" + ], + "summary": "Update a monitor resource.", + "operationId": "Monitors_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" + } + } + }, + "delete": { + "tags": [ + "MonitorsResource" + ], + "summary": "Delete a monitor resource.", + "operationId": "Monitors_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success" + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_Delete": { + "$ref": "./examples/Monitors_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { + "post": { + "tags": [ + "ConnectedResources" + ], + "summary": "Get marketplace and organization info mapped to the given monitor.", + "operationId": "BillingInfo_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/BillingInfoResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingInfo_Get": { + "$ref": "./examples/BillingInfo_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { + "post": { + "tags": [ + "RefreshSetPasswordLink" + ], + "summary": "Refresh the set password link and return a latest one.", + "operationId": "Monitors_RefreshSetPasswordLink", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSetPasswordLink" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_RefreshSetPasswordLink": { + "$ref": "./examples/RefreshSetPassword_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { + "get": { + "tags": [ + "Rules" + ], + "summary": "List the tag rules for a given monitor resource.", + "operationId": "TagRules_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRulesListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { + "put": { + "tags": [ + "Rules" + ], + "summary": "Create or update a tag rule set for a given monitor resource.", + "operationId": "TagRules_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Rule set name", + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "Rules" + ], + "summary": "Get a tag rule set for a given monitor resource.", + "operationId": "TagRules_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Rule set name", + "in": "path", + "name": "ruleSetName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations": { + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "List the single sign-on configurations for a given monitor resource.", + "operationId": "SingleSignOnConfigurations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResourceListResponse" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SingleSignOnConfigurations_List": { + "$ref": "./examples/SingleSignOnConfigurations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}": { + "put": { + "tags": [ + "SingleSignOn" + ], + "summary": "Configures single-sign-on for this resource.", + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "SingleSignOnConfigurations_CreateOrUpdate": { + "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" + } + } + }, + "get": { + "tags": [ + "SingleSignOn" + ], + "summary": "Gets the datadog single sign-on resource for the given Monitor.", + "operationId": "SingleSignOnConfigurations_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "get": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "get": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Get.json" + } + } + }, + "put": { + "tags": [ + "monitoredSubscriptions" + ], + "summary": "Add the subscriptions that should be monitored by the Datadog monitor resource.", + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_AddMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" + } + } + }, + "patch": { + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "operationId": "MonitoredSubscriptions_Update", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "The configuration name. Only 'default' value is supported.", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_UpdateMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Update.json" + } + } + }, + "delete": { + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "operationId": "MonitoredSubscriptions_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "description": "Configuration name", + "in": "path", + "name": "configurationName", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "202": { + "description": "Success" + }, + "204": { + "description": "Success" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Monitors_DeleteMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/resubscribe": { + "post": { + "tags": [ + "Resubscribe" + ], + "summary": "Reinstate integration with your Datadog organization by choosing one of the available subscription plans.", + "operationId": "Organizations_Resubscribe", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MonitorNameParameter" + }, + { + "in": "body", + "name": "body", + "description": "Resubscribe Properties", + "schema": { + "$ref": "#/definitions/ResubscribeProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "202": { + "headers": { + "Location": { + "type": "string" + } + }, + "description": "Accepted" + }, + "default": { + "description": "Default error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Organizations_Resubscribe": { + "$ref": "./examples/Organizations_Resubscribe.json" + } + } + } + } + }, + "definitions": { + "DatadogAgreementProperties": { + "description": "Terms properties.", + "type": "object", + "properties": { + "publisher": { + "description": "Publisher identifier string.", + "type": "string" + }, + "product": { + "description": "Product identifier string.", + "type": "string" + }, + "plan": { + "description": "Plan identifier string.", + "type": "string" + }, + "licenseTextLink": { + "description": "Link to HTML with Microsoft and Publisher terms.", + "type": "string" + }, + "privacyPolicyLink": { + "description": "Link to the privacy policy of the publisher.", + "type": "string" + }, + "retrieveDatetime": { + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.", + "type": "string" + }, + "signature": { + "description": "Terms signature.", + "type": "string" + }, + "accepted": { + "description": "If any version of the terms have been accepted, otherwise false.", + "type": "boolean" + } + } + }, + "DatadogAgreementResource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the agreement.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatadogAgreementProperties", + "description": "Represents the properties of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogAgreementResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "CreateResourceSupportedProperties": { + "description": "Datadog resource can be created or not properties.", + "type": "object", + "properties": { + "name": { + "description": "The ARM id of the subscription.", + "type": "string", + "readOnly": true + }, + "creationSupported": { + "description": "Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature. ", + "type": "boolean", + "readOnly": true + } + } + }, + "CreateResourceSupportedResponse": { + "description": "Datadog resource can be created or not.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/CreateResourceSupportedProperties", + "description": "Represents the properties of the resource." + } + } + }, + "CreateResourceSupportedResponseList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "DatadogApiKey": { + "required": [ + "key" + ], + "type": "object", + "properties": { + "createdBy": { + "description": "The user that created the API key.", + "type": "string" + }, + "name": { + "description": "The name of the API key.", + "type": "string" + }, + "key": { + "description": "The value of the API key.", + "type": "string" + }, + "created": { + "description": "The time of creation of the API key.", + "type": "string" + } + } + }, + "DatadogApiKeyListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "DatadogInstallMethod": { + "type": "object", + "properties": { + "tool": { + "description": "The tool.", + "type": "string" + }, + "toolVersion": { + "description": "The tool version.", + "type": "string" + }, + "installerVersion": { + "description": "The installer version.", + "type": "string" + } + } + }, + "DatadogLogsAgent": { + "type": "object", + "properties": { + "transport": { + "description": "The transport.", + "type": "string" + } + } + }, + "DatadogHostMetadata": { + "type": "object", + "properties": { + "agentVersion": { + "description": "The agent version.", + "type": "string" + }, + "installMethod": { + "$ref": "#/definitions/DatadogInstallMethod" + }, + "logsAgent": { + "$ref": "#/definitions/DatadogLogsAgent" + } + } + }, + "DatadogHost": { + "type": "object", + "properties": { + "name": { + "description": "The name of the host.", + "type": "string" + }, + "aliases": { + "description": "The aliases for the host installed via the Datadog agent.", + "type": "array", + "items": { + "type": "string" + } + }, + "apps": { + "description": "The Datadog integrations reporting metrics for the host.", + "type": "array", + "items": { + "type": "string" + } + }, + "meta": { + "$ref": "#/definitions/DatadogHostMetadata" + } + } + }, + "DatadogHostListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogHost" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "LinkedResource": { + "description": "The definition of a linked resource.", + "type": "object", + "properties": { + "id": { + "description": "The ARM id of the linked resource.", + "type": "string" + }, + "location": { + "description": "The location of the linked resource.", + "type": "string" + } + } + }, + "LinkedResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/LinkedResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MonitoredResource": { + "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "id": { + "description": "The ARM id of the resource.", + "type": "string" + }, + "sendingMetrics": { + "description": "Flag indicating if resource is sending metrics to Datadog.", + "type": "boolean" + }, + "reasonForMetricsStatus": { + "description": "Reason for why the resource is sending metrics (or why it is not sending).", + "type": "string" + }, + "sendingLogs": { + "description": "Flag indicating if resource is sending logs to Datadog.", + "type": "boolean" + }, + "reasonForLogsStatus": { + "description": "Reason for why the resource is sending logs (or why it is not sending).", + "type": "string" + } + } + }, + "MonitoredResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "BillingInfoResponse": { + "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "type": "object", + "properties": { + "marketplaceSaasInfo": { + "description": "Marketplace Subscription details", + "$ref": "#/definitions/MarketplaceSaaSInfo" + }, + "partnerBillingEntity": { + "description": "Partner Billing Entity details: Organization Info", + "$ref": "#/definitions/PartnerBillingEntity" + } + } + }, + "MarketplaceSaaSInfo": { + "description": "Marketplace SAAS Info of the resource.", + "type": "object", + "properties": { + "marketplaceSubscriptionId": { + "description": "Marketplace Subscription Id. This is a GUID-formatted string.", + "type": "string" + }, + "marketplaceName": { + "description": "Marketplace Subscription Details: SAAS Name", + "type": "string" + }, + "marketplaceStatus": { + "description": "Marketplace Subscription Details: SaaS Subscription Status", + "type": "string" + }, + "billedAzureSubscriptionId": { + "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into.", + "type": "string" + }, + "subscribed": { + "description": "Flag specifying if the Marketplace status is subscribed or not.", + "type": "boolean" + } + } + }, + "PartnerBillingEntity": { + "description": "Partner Billing details associated with the resource.", + "type": "object", + "properties": { + "id": { + "description": "The Datadog Organization Id.", + "type": "string" + }, + "name": { + "description": "The Datadog Organization Name.", + "type": "string" + }, + "partnerEntityUri": { + "description": "Link to the datadog organization page", + "type": "string" + } + } + }, + "MonitoredSubscription": { + "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", + "type": "object", + "properties": { + "subscriptionId": { + "description": "The subscriptionId to be monitored.", + "required": [ + "subscriptionId" + ], + "type": "string" + }, + "status": { + "description": "The state of monitoring.", + "enum": [ + "InProgress", + "Active", + "Failed", + "Deleting" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "Status" + }, + "type": "string" + }, + "error": { + "description": "The reason of not monitoring the subscription.", + "type": "string" + }, + "tagRules": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + } + } + }, + "SubscriptionList": { + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "operation": { + "description": "The operation for the patch on the resource.", + "enum": [ + "AddBegin", + "AddComplete", + "DeleteBegin", + "DeleteComplete", + "Active" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "Operation" + }, + "x-ms-mutability": [ + "create", + "update" + ] + }, + "monitoredSubscriptionList": { + "description": "List of subscriptions and the state of the monitoring.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredSubscription" + } + } + } + }, + "MonitoredSubscriptionProperties": { + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "type": "object", + "properties": { + "name": { + "description": "Name of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the monitored subscription resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/SubscriptionList" + } + } + }, + "MonitoredSubscriptionPropertiesList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Service provider, i.e., Microsoft.Datadog.", + "type": "string" + }, + "resource": { + "description": "Type on which the operation is performed, e.g., 'monitors'.", + "type": "string" + }, + "operation": { + "description": "Operation type, e.g., read, write, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of the operation, e.g., 'Write monitors'.", + "type": "string" + } + } + }, + "OperationResult": { + "description": "A Microsoft.Datadog REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name, i.e., {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + } + } + }, + "OperationListResult": { + "description": "Result of GET request to list the Microsoft.Datadog operations.", + "type": "object", + "properties": { + "value": { + "description": "List of operations supported by the Microsoft.Datadog provider.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string" + } + } + }, + "ResourceSku": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "description": "Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'.", + "type": "string" + } + } + }, + "ProvisioningState": { + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + }, + "readOnly": true + }, + "MonitoringStatus": { + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "enum": [ + "Enabled", + "Disabled" + ], + "default": "Enabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MonitoringStatus" + } + }, + "MarketplaceSubscriptionStatus": { + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "enum": [ + "Provisioning", + "Active", + "Suspended", + "Unsubscribed" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "MarketplaceSubscriptionStatus" + }, + "readOnly": true + }, + "DatadogOrganizationProperties": { + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.", + "type": "object", + "properties": { + "name": { + "description": "Name of the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "id": { + "description": "Id of the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "linkingAuthCode": { + "description": "The auth code used to linking to an existing Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "linkingClientId": { + "description": "The client_id from an existing in exchange for an auth token to link organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "redirectUri": { + "description": "The redirect URI for linking.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "apiKey": { + "description": "Api key associated to the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "applicationKey": { + "description": "Application key associated to the Datadog organization.", + "type": "string", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign on.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "cspm": { + "description": "The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", + "type": "boolean" + } + } + }, + "UserInfo": { + "description": "Includes name, email and optionally, phone number. User Information can't be null.", + "type": "object", + "properties": { + "name": { + "description": "Name of the user", + "maxLength": 50, + "type": "string" + }, + "emailAddress": { + "description": "Email of the user used by Datadog for contacting them if needed", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", + "type": "string" + }, + "phoneNumber": { + "description": "Phone number of the user used by Datadog for contacting them if needed", + "maxLength": 40, + "type": "string" + } + }, + "x-ms-secret": true + }, + "LiftrResourceCategories": { + "enum": [ + "Unknown", + "MonitorLogs" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "LiftrResourceCategories" + }, + "readOnly": true + }, + "MonitorProperties": { + "description": "Properties specific to the monitor resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + }, + "marketplaceSubscriptionStatus": { + "$ref": "#/definitions/MarketplaceSubscriptionStatus" + }, + "datadogOrganizationProperties": { + "$ref": "#/definitions/DatadogOrganizationProperties" + }, + "userInfo": { + "$ref": "#/definitions/UserInfo" + }, + "liftrResourceCategory": { + "$ref": "#/definitions/LiftrResourceCategories" + }, + "liftrResourcePreference": { + "description": "The priority of the resource.", + "format": "int32", + "type": "integer", + "readOnly": true + } + } + }, + "ManagedIdentityTypes": { + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", + "x-ms-enum": { + "modelAsString": true, + "name": "ManagedIdentityTypes" + } + }, + "IdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "description": "The identity ID.", + "type": "string", + "readOnly": true + }, + "tenantId": { + "description": "The tenant ID of resource.", + "type": "string", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ManagedIdentityTypes" + } + } + }, + "DatadogMonitorResource": { + "required": [ + "location" + ], + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the monitor resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the monitor resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the monitor resource.", + "type": "string", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + }, + "properties": { + "$ref": "#/definitions/MonitorProperties" + }, + "identity": { + "$ref": "#/definitions/IdentityProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogMonitorResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "MonitorUpdateProperties": { + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "monitoringStatus": { + "$ref": "#/definitions/MonitoringStatus" + }, + "cspm": { + "description": "The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", + "type": "boolean" + } + } + }, + "DatadogMonitorResourceUpdateParameters": { + "description": "The parameters for a PATCH request to a monitor resource.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties" + }, + "tags": { + "description": "The new tags of the monitor resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + } + } + }, + "ResubscribeProperties": { + "description": "Resubscribe Properties", + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku" + }, + "azureSubscriptionId": { + "description": "Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe", + "type": "string" + }, + "resourceGroup": { + "description": "Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe", + "type": "string" + } + } + }, + "DatadogSetPasswordLink": { + "type": "object", + "properties": { + "setPasswordLink": { + "type": "string" + } + } + }, + "TagAction": { + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", + "enum": [ + "Include", + "Exclude" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "TagAction" + } + }, + "FilteringTag": { + "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", + "type": "object", + "properties": { + "name": { + "description": "The name (also known as the key) of the tag.", + "type": "string" + }, + "value": { + "description": "The value of the tag.", + "type": "string" + }, + "action": { + "$ref": "#/definitions/TagAction" + } + } + }, + "LogRules": { + "description": "Set of rules for sending logs for the Monitor resource.", + "type": "object", + "properties": { + "sendAadLogs": { + "description": "Flag specifying if AAD logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendSubscriptionLogs": { + "description": "Flag specifying if Azure subscription logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "sendResourceLogs": { + "description": "Flag specifying if Azure resource logs should be sent for the Monitor resource.", + "type": "boolean" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "MetricRules": { + "description": "Set of rules for sending metrics for the Monitor resource.", + "type": "object", + "properties": { + "filteringTags": { + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "AgentRules": { + "description": "Set of rules for managing agents for the Monitor resource.", + "type": "object", + "properties": { + "enableAgentMonitoring": { + "description": "Flag specifying if agent monitoring should be enabled for the Monitor resource.", + "type": "boolean" + }, + "filteringTags": { + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "type": "array", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "MonitoringTagRulesProperties": { + "description": "Definition of the properties for a TagRules resource.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "logRules": { + "$ref": "#/definitions/LogRules" + }, + "metricRules": { + "$ref": "#/definitions/MetricRules" + }, + "agentRules": { + "$ref": "#/definitions/AgentRules" + }, + "automuting": { + "description": "Configuration to enable/disable auto-muting flag", + "type": "boolean" + }, + "customMetrics": { + "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent.", + "type": "boolean" + } + } + }, + "MonitoringTagRules": { + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "name": { + "description": "Name of the rule set.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "The id of the rule set.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the rule set.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "MonitoringTagRulesListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + }, + "SingleSignOnStates": { + "description": "Various states of the SSO resource", + "enum": [ + "Initial", + "Enable", + "Disable", + "Existing" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "SingleSignOnStates" + } + }, + "DatadogSingleSignOnProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates" + }, + "enterpriseAppId": { + "description": "The Id of the Enterprise App used for Single sign-on.", + "type": "string" + }, + "singleSignOnUrl": { + "description": "The login URL specific to this Datadog Organization.", + "type": "string", + "readOnly": true + } + } + }, + "DatadogSingleSignOnResource": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the resource.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the configuration.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatadogSingleSignOnProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + } + }, + "DatadogSingleSignOnResourceListResponse": { + "description": "Response of a list operation.", + "type": "object", + "properties": { + "value": { + "description": "Results of a list operation.", + "type": "array", + "items": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "nextLink": { + "description": "Link to the next set of results, if any.", + "type": "string" + } + } + } + }, + "parameters": { + "MonitorNameParameter": { + "in": "path", + "name": "monitorName", + "description": "Monitor resource name", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$", + "minLength": 2, + "maxLength": 32 + }, + "DatadogOrganizationId": { + "in": "query", + "name": "datadogOrganizationId", + "description": "Datadog Organization Id", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..be4fd8758314 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_GetDefaultKey.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "createdBy": "john@example.com", + "name": "", + "key": "1111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:20:30" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_List.json new file mode 100644 index 000000000000..c60e56426d7a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_List.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "createdBy": "john@example.com", + "name": "", + "key": "1111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:20:30" + }, + { + "createdBy": "jane@example.com", + "name": "", + "key": "2111111111111111aaaaaaaaaaaaaaaa", + "created": "2019-04-05 09:19:53" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..557524ffe86f --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/ApiKeys_SetDefaultKey.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "requestBody": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/BillingInfo_Get.json new file mode 100644 index 000000000000..2859ef0fb158 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/BillingInfo_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "marketplaceSaasInfo": { + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "marketplaceName": "MP_RESOURCE", + "marketplaceStatus": "Status", + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "subscribed": true + }, + "partnerBillingEntity": { + "id": "1234567890", + "name": "datadogOrganizationName", + "partnerEntityUri": "https://example.com" + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_Get.json new file mode 100644 index 000000000000..41cf624ecf76 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "datadogOrganizationId": "00000000-0000-0000-0000" + }, + "responses": { + "200": { + "body": { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_List.json new file mode 100644 index 000000000000..a73e13c1e228 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/CreationSupported_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "datadogOrganizationId": "00000000-0000-0000-0000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Hosts_List.json new file mode 100644 index 000000000000..7f814e37c82b --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Hosts_List.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "vm1", + "aliases": [ + "vm1", + "65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd" + ], + "apps": [ + "ntp", + "agent" + ], + "meta": { + "agentVersion": "7.19.2", + "installMethod": { + "tool": "install_script", + "toolVersion": "install_script", + "installerVersion": "install_script-1.0.0" + }, + "logsAgent": { + "transport": "" + } + } + }, + { + "name": "vm2", + "aliases": [ + "vm2", + "df631d9a-8178-4580-bf60-c697a5e8df4d" + ], + "apps": [ + "infra", + "agent" + ], + "meta": { + "agentVersion": "7.18.1", + "installMethod": { + "tool": "install_script", + "toolVersion": "install_script", + "installerVersion": "install_script-1.0.0" + }, + "logsAgent": { + "transport": "HTTP" + } + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/LinkedResources_List.json new file mode 100644 index 000000000000..a84d7102015c --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/LinkedResources_List.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor", + "location": "West US 2" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..28ada7101608 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_Create.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "body": { + "properties": { + "accepted": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", + "name": "default", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid1", + "product": "offid1", + "plan": "planid1", + "licenseTextLink": "test.licenseLink1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..a8ef5d71c1e7 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MarketplaceAgreements_List.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", + "name": "planid1", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid1", + "product": "offid1", + "plan": "planid1", + "licenseTextLink": "test.licenseLink1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": false + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", + "name": "planid2", + "type": "Microsoft.Datadog/agreements", + "properties": { + "publisher": "pubid2", + "product": "offid2", + "plan": "planid2", + "licenseTextLink": "test.licenseLin2k", + "privacyPolicyLink": "test.privacyPolicyLink2", + "retrieveDatetime": "2017-08-14T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER", + "accepted": false + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredResources_List.json new file mode 100644 index 000000000000..ba8ca3ca22aa --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredResources_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", + "sendingMetrics": true, + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "reasonForLogsStatus": "CapturedByRules" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..97908faae59b --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,207 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "operation": "AddBegin", + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..d1d31abfc8e4 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..a344a418f457 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Get.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..d39e467d4cab --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_List.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..eebbeae37af6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/MonitoredSubscriptions_Update.json @@ -0,0 +1,142 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "operation": "AddComplete", + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "properties": { + "monitoredSubscriptionList": [ + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Active", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + }, + { + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "status": "Failed", + "tagRules": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Create.json new file mode 100644 index 000000000000..3a203ade15d0 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Create.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "body": { + "sku": { + "name": "free_Monthly" + }, + "properties": { + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": "someAuthCode", + "linkingClientId": "00000000-0000-0000-0000-000000000000", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "cspm": false + }, + "userInfo": { + "name": "Alice", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123-456-7890" + } + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Delete.json new file mode 100644 index 000000000000..54779bf770ab --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Get.json new file mode 100644 index 000000000000..41a119088bbe --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Get.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null, + "cspm": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_List.json new file mode 100644 index 000000000000..7e5ea2fd9b48 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_List.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null, + "cspm": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..9240593da6ef --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Update.json new file mode 100644 index 000000000000..e315d02c3a2e --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Monitors_Update.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "body": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Operations_List.json new file mode 100644 index 000000000000..836f1ef5d6bd --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Operations_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2025-01-07" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Datadog/monitors/write", + "display": { + "provider": "Microsoft.Datadog", + "resource": "monitors", + "operation": "write", + "description": "Write monitors resource" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Organizations_Resubscribe.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Organizations_Resubscribe.json new file mode 100644 index 000000000000..20c19dd9924d --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/Organizations_Resubscribe.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "body": { + "sku": { + "name": "planName" + }, + "azureSubscriptionId": "subscriptionId", + "resourceGroup": "resourceGroup" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Succeeded", + "monitoringStatus": "Enabled", + "marketplaceSubscriptionStatus": "Active", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "enterpriseAppId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Datadog/monitor/monitorname/resubscribe?api-version=2025-01-07" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..a1b0fec3db4a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/RefreshSetPassword_Get.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..9516cff00718 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default", + "body": { + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": null + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": null + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..ca43dba1f199 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "configurationName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..32612bf01034 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/SingleSignOnConfigurations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "singleSignOnState": "Enable", + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..e023a7c7e4c4 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_CreateOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default", + "body": { + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "automuting": true + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_Get.json new file mode 100644 index 000000000000..25b26f86cb0b --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_Get.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor", + "ruleSetName": "default" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "automuting": true, + "customMetrics": false + } + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_List.json new file mode 100644 index 000000000000..6c51dd66de86 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-01-07/examples/TagRules_List.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-01-07", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "myMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "type": "Microsoft.Datadog/monitors/tagRules", + "properties": { + "logRules": { + "sendAadLogs": false, + "sendSubscriptionLogs": true, + "sendResourceLogs": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "metricRules": { + "filteringTags": [] + }, + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "value": "Prod", + "action": "Include" + }, + { + "name": "Environment", + "value": "Dev", + "action": "Exclude" + } + ] + }, + "automuting": true, + "customMetrics": false + } + } + ] + } + } + } +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/datadog.json new file mode 100644 index 000000000000..14675f48f414 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/datadog.json @@ -0,0 +1,3164 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Datadog", + "version": "2025-06-11", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "DatadogMonitorResources" + }, + { + "name": "TagRules" + }, + { + "name": "DatadogSingleSignOnResources" + }, + { + "name": "MonitoredSubscriptions" + } + ], + "paths": { + "/providers/Microsoft.Datadog/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "summary": "List all operations provided by Microsoft.Datadog for the 2025-06-11 api version.", + "description": "List all operations provided by Microsoft.Datadog for the 2025-06-11 api version.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "get": { + "operationId": "MarketplaceAgreements_List", + "summary": "List Datadog marketplace agreements in the subscription.", + "description": "List Datadog marketplace agreements in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DatadogAgreementResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MarketplaceAgreements_List": { + "$ref": "./examples/MarketplaceAgreements_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default": { + "put": { + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "summary": "Create Datadog marketplace agreement in the subscription.", + "description": "Create Datadog marketplace agreement in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "body", + "in": "body", + "description": "The request body", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MarketplaceAgreements_CreateOrUpdate": { + "$ref": "./examples/MarketplaceAgreements_Create.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { + "get": { + "operationId": "Monitors_List", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List all monitors under the specified subscription.", + "description": "List all monitors under the specified subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_List": { + "$ref": "./examples/Monitors_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "get": { + "operationId": "CreationSupported_List", + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "description": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponseList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreationSupported_List": { + "$ref": "./examples/CreationSupported_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default": { + "get": { + "operationId": "CreationSupported_Get", + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "description": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreationSupported_Get": { + "$ref": "./examples/CreationSupported_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { + "get": { + "operationId": "Monitors_ListByResourceGroup", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List all monitors under the specified resource group.", + "description": "List all monitors under the specified resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { + "get": { + "operationId": "Monitors_Get", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Get the properties of a specific monitor resource.", + "description": "Get the properties of a specific monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" + } + } + }, + "put": { + "operationId": "Monitors_Create", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Create a monitor resource.", + "description": "Create a monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'DatadogMonitorResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DatadogMonitorResource" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Monitors_Update", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Update a monitor resource.", + "description": "Update a monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DatadogMonitorResource" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Monitors_Delete", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Delete a monitor resource.", + "description": "Delete a monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Delete": { + "$ref": "./examples/Monitors_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { + "post": { + "operationId": "BillingInfo_Get", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Get marketplace and organization info mapped to the given monitor.", + "description": "Get marketplace and organization info mapped to the given monitor.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BillingInfoResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingInfo_Get": { + "$ref": "./examples/BillingInfo_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { + "post": { + "operationId": "Monitors_GetDefaultKey", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Get the default api key.", + "description": "Get the default api key.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetDefaultKey": { + "$ref": "./examples/ApiKeys_GetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { + "post": { + "operationId": "Monitors_ListApiKeys", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List the api keys for a given monitor resource.", + "description": "List the api keys for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogApiKeyListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_ListApiKeys": { + "$ref": "./examples/ApiKeys_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { + "post": { + "operationId": "Monitors_ListHosts", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List the hosts for a given monitor resource.", + "description": "List the hosts for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogHostListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_ListHosts": { + "$ref": "./examples/Hosts_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { + "post": { + "operationId": "Monitors_ListLinkedResources", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List all Azure resources associated to the same Datadog organization as the target resource.", + "description": "List all Azure resources associated to the same Datadog organization as the target resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LinkedResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_ListLinkedResources": { + "$ref": "./examples/LinkedResources_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "post": { + "operationId": "Monitors_ListMonitoredResources", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "List the resources currently being monitored by the Datadog monitor resource.", + "description": "List the resources currently being monitored by the Datadog monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_ListMonitoredResources": { + "$ref": "./examples/MonitoredResources_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "get": { + "operationId": "MonitoredSubscriptions_List", + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "get": { + "operationId": "MonitoredSubscriptions_Get", + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Get.json" + } + } + }, + "put": { + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Add the subscriptions that should be monitored by the Datadog monitor resource.", + "description": "Add the subscriptions that should be monitored by the Datadog monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Resource 'MonitoredSubscriptionProperties' update operation succeeded", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "201": { + "description": "Resource 'MonitoredSubscriptionProperties' create operation succeeded", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_AddMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/MonitoredSubscriptionProperties" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "MonitoredSubscriptions_Update", + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_UpdateMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/MonitoredSubscriptionProperties" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "MonitoredSubscriptions_Delete", + "tags": [ + "MonitoredSubscriptions" + ], + "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_DeleteMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { + "post": { + "operationId": "Monitors_RefreshSetPasswordLink", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Refresh the set password link and return a latest one.", + "description": "Refresh the set password link and return a latest one.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogSetPasswordLink" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_RefreshSetPasswordLink": { + "$ref": "./examples/RefreshSetPassword_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/resubscribe": { + "post": { + "operationId": "Organizations_Resubscribe", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Reinstate integration with your Datadog organization by choosing one of the available subscription plans.", + "description": "Reinstate integration with your Datadog organization by choosing one of the available subscription plans.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "body", + "in": "body", + "description": "Resubscribe Properties", + "required": false, + "schema": { + "$ref": "#/definitions/ResubscribeProperties" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Organizations_Resubscribe": { + "$ref": "./examples/Organizations_Resubscribe.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DatadogMonitorResource" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { + "post": { + "operationId": "Monitors_SetDefaultKey", + "tags": [ + "DatadogMonitorResources" + ], + "summary": "Set the default api key.", + "description": "Set the default api key.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_SetDefaultKey": { + "$ref": "./examples/ApiKeys_SetDefaultKey.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations": { + "get": { + "operationId": "SingleSignOnConfigurations_List", + "tags": [ + "DatadogSingleSignOnResources" + ], + "summary": "List the single sign-on configurations for a given monitor resource.", + "description": "List the single sign-on configurations for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_List": { + "$ref": "./examples/SingleSignOnConfigurations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}": { + "get": { + "operationId": "SingleSignOnConfigurations_Get", + "tags": [ + "DatadogSingleSignOnResources" + ], + "summary": "Gets the datadog single sign-on resource for the given Monitor.", + "description": "Gets the datadog single sign-on resource for the given Monitor.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "Configuration name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" + } + } + }, + "put": { + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "tags": [ + "DatadogSingleSignOnResources" + ], + "summary": "Configures single-sign-on for this resource.", + "description": "Configures single-sign-on for this resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "configurationName", + "in": "path", + "description": "Configuration name", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'DatadogSingleSignOnResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "201": { + "description": "Resource 'DatadogSingleSignOnResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleSignOnConfigurations_CreateOrUpdate": { + "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DatadogSingleSignOnResource" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { + "get": { + "operationId": "TagRules_List", + "tags": [ + "TagRules" + ], + "summary": "List the tag rules for a given monitor resource.", + "description": "List the tag rules for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoringTagRulesListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { + "get": { + "operationId": "TagRules_Get", + "tags": [ + "TagRules" + ], + "summary": "Get a tag rule set for a given monitor resource.", + "description": "Get a tag rule set for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "ruleSetName", + "in": "path", + "description": "Rule set name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" + } + } + }, + "put": { + "operationId": "TagRules_CreateOrUpdate", + "tags": [ + "TagRules" + ], + "summary": "Create or update a tag rule set for a given monitor resource.", + "description": "Create or update a tag rule set for a given monitor resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string", + "minLength": 2, + "maxLength": 32, + "pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]+$" + }, + { + "name": "ruleSetName", + "in": "path", + "description": "Rule set name", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + } + ], + "responses": { + "200": { + "description": "Resource 'MonitoringTagRules' update operation succeeded", + "schema": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" + } + } + } + } + }, + "definitions": { + "AgentRules": { + "type": "object", + "description": "Set of rules for managing agents for the Monitor resource.", + "properties": { + "enableAgentMonitoring": { + "type": "boolean", + "description": "Flag specifying if agent monitoring should be enabled for the Monitor resource." + }, + "filteringTags": { + "type": "array", + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "BillingInfoResponse": { + "type": "object", + "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "properties": { + "marketplaceSaasInfo": { + "$ref": "#/definitions/MarketplaceSaaSInfo", + "description": "Marketplace Subscription details" + }, + "partnerBillingEntity": { + "$ref": "#/definitions/PartnerBillingEntity", + "description": "Partner Billing Entity details: Organization Info" + } + } + }, + "CreateResourceSupportedProperties": { + "type": "object", + "description": "Datadog resource can be created or not properties.", + "properties": { + "name": { + "type": "string", + "description": "The ARM id of the subscription.", + "readOnly": true + }, + "creationSupported": { + "type": "boolean", + "description": "Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature.", + "readOnly": true + } + } + }, + "CreateResourceSupportedResponse": { + "type": "object", + "description": "Datadog resource can be created or not.", + "properties": { + "properties": { + "$ref": "#/definitions/CreateResourceSupportedProperties", + "description": "Represents the properties of the resource." + } + } + }, + "CreateResourceSupportedResponseList": { + "type": "object", + "description": "Paged collection of CreateResourceSupportedResponse items", + "properties": { + "value": { + "type": "array", + "description": "The CreateResourceSupportedResponse items on this page", + "items": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DatadogAgreementProperties": { + "type": "object", + "description": "Terms properties.", + "properties": { + "publisher": { + "type": "string", + "description": "Publisher identifier string." + }, + "product": { + "type": "string", + "description": "Product identifier string." + }, + "plan": { + "type": "string", + "description": "Plan identifier string." + }, + "licenseTextLink": { + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." + }, + "privacyPolicyLink": { + "type": "string", + "description": "Link to the privacy policy of the publisher." + }, + "retrieveDatetime": { + "type": "string", + "format": "date-time", + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." + }, + "signature": { + "type": "string", + "description": "Terms signature." + }, + "accepted": { + "type": "boolean", + "description": "If any version of the terms have been accepted, otherwise false." + } + } + }, + "DatadogAgreementResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ARM id of the resource.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Name of the agreement.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource.", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/DatadogAgreementProperties", + "description": "Represents the properties of the resource." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "Metadata pertaining to creation and last modification of the resource.", + "readOnly": true + } + } + }, + "DatadogAgreementResourceListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The DatadogAgreementResource items on this page", + "items": { + "$ref": "#/definitions/DatadogAgreementResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DatadogApiKey": { + "type": "object", + "properties": { + "createdBy": { + "type": "string", + "description": "The user that created the API key." + }, + "name": { + "type": "string", + "description": "The name of the API key." + }, + "key": { + "type": "string", + "description": "The value of the API key." + }, + "created": { + "type": "string", + "description": "The time of creation of the API key." + } + }, + "required": [ + "key" + ] + }, + "DatadogApiKeyListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The DatadogApiKey items on this page", + "items": { + "$ref": "#/definitions/DatadogApiKey" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DatadogHost": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the host." + }, + "aliases": { + "type": "array", + "description": "The aliases for the host installed via the Datadog agent.", + "items": { + "type": "string" + } + }, + "apps": { + "type": "array", + "description": "The Datadog integrations reporting metrics for the host.", + "items": { + "type": "string" + } + }, + "meta": { + "$ref": "#/definitions/DatadogHostMetadata" + } + } + }, + "DatadogHostListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The DatadogHost items on this page", + "items": { + "$ref": "#/definitions/DatadogHost" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DatadogHostMetadata": { + "type": "object", + "properties": { + "agentVersion": { + "type": "string", + "description": "The agent version." + }, + "installMethod": { + "$ref": "#/definitions/DatadogInstallMethod" + }, + "logsAgent": { + "$ref": "#/definitions/DatadogLogsAgent" + } + } + }, + "DatadogInstallMethod": { + "type": "object", + "properties": { + "tool": { + "type": "string", + "description": "The tool." + }, + "toolVersion": { + "type": "string", + "description": "The tool version." + }, + "installerVersion": { + "type": "string", + "description": "The installer version." + } + } + }, + "DatadogLogsAgent": { + "type": "object", + "properties": { + "transport": { + "type": "string", + "description": "The transport." + } + } + }, + "DatadogMonitorResource": { + "type": "object", + "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorProperties", + "description": "Properties specific to the monitor resource." + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + }, + "identity": { + "$ref": "#/definitions/IdentityProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "DatadogMonitorResourceListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The DatadogMonitorResource items on this page", + "items": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DatadogMonitorResourceUpdateParameters": { + "type": "object", + "description": "The parameters for a PATCH request to a monitor resource.", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties", + "description": "The set of properties that can be update in a PATCH request to a monitor resource." + }, + "tags": { + "type": "object", + "description": "The new tags of the monitor resource.", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" + } + } + }, + "DatadogOrganizationProperties": { + "type": "object", + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.", + "properties": { + "name": { + "type": "string", + "description": "Name of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "id": { + "type": "string", + "description": "Id of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "linkingAuthCode": { + "type": "string", + "format": "password", + "description": "The auth code used to linking to an existing Datadog organization.", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "linkingClientId": { + "type": "string", + "format": "password", + "description": "The client_id from an existing in exchange for an auth token to link organization.", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "redirectUri": { + "type": "string", + "description": "The redirect URI for linking.", + "x-ms-mutability": [ + "create" + ] + }, + "apiKey": { + "type": "string", + "format": "password", + "description": "Api key associated to the Datadog organization.", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "applicationKey": { + "type": "string", + "format": "password", + "description": "Application key associated to the Datadog organization.", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "enterpriseAppId": { + "type": "string", + "description": "The Id of the Enterprise App used for Single sign on.", + "x-ms-mutability": [ + "create" + ] + }, + "cspm": { + "type": "boolean", + "description": "The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks." + }, + "resourceCollection": { + "type": "boolean", + "description": "The configuration which describes the state of resource collection. This collects configuration information for all resources in a subscription." + } + } + }, + "DatadogSetPasswordLink": { + "type": "object", + "properties": { + "setPasswordLink": { + "type": "string" + } + } + }, + "DatadogSingleSignOnProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true + }, + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates", + "description": "Various states of the SSO resource" + }, + "enterpriseAppId": { + "type": "string", + "description": "The Id of the Enterprise App used for Single sign-on." + }, + "singleSignOnUrl": { + "type": "string", + "description": "The login URL specific to this Datadog Organization.", + "readOnly": true + } + } + }, + "DatadogSingleSignOnResource": { + "type": "object", + "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", + "properties": { + "properties": { + "$ref": "#/definitions/DatadogSingleSignOnProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "DatadogSingleSignOnResourceListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The DatadogSingleSignOnResource items on this page", + "items": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FilteringTag": { + "type": "object", + "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", + "properties": { + "name": { + "type": "string", + "description": "The name (also known as the key) of the tag." + }, + "value": { + "type": "string", + "description": "The value of the tag." + }, + "action": { + "$ref": "#/definitions/TagAction", + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion." + } + } + }, + "IdentityProperties": { + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "The identity ID.", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "The tenant ID of resource.", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ManagedIdentityTypes", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'." + } + } + }, + "LiftrResourceCategories": { + "type": "string", + "enum": [ + "Unknown", + "MonitorLogs" + ], + "x-ms-enum": { + "name": "LiftrResourceCategories", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "MonitorLogs", + "value": "MonitorLogs" + } + ] + } + }, + "LinkedResource": { + "type": "object", + "description": "The definition of a linked resource.", + "properties": { + "id": { + "type": "string", + "description": "The ARM id of the linked resource." + }, + "location": { + "type": "string", + "description": "The location of the linked resource." + } + } + }, + "LinkedResourceListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The LinkedResource items on this page", + "items": { + "$ref": "#/definitions/LinkedResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LogRules": { + "type": "object", + "description": "Set of rules for sending logs for the Monitor resource.", + "properties": { + "sendAadLogs": { + "type": "boolean", + "description": "Flag specifying if AAD logs should be sent for the Monitor resource." + }, + "sendSubscriptionLogs": { + "type": "boolean", + "description": "Flag specifying if Azure subscription logs should be sent for the Monitor resource." + }, + "sendResourceLogs": { + "type": "boolean", + "description": "Flag specifying if Azure resource logs should be sent for the Monitor resource." + }, + "filteringTags": { + "type": "array", + "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "ManagedIdentityTypes": { + "type": "string", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", + "enum": [ + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "ManagedIdentityTypes", + "modelAsString": true, + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + } + ] + } + }, + "MarketplaceSaaSInfo": { + "type": "object", + "description": "Marketplace SAAS Info of the resource.", + "properties": { + "marketplaceSubscriptionId": { + "type": "string", + "description": "Marketplace Subscription Id. This is a GUID-formatted string." + }, + "marketplaceName": { + "type": "string", + "description": "Marketplace Subscription Details: SAAS Name" + }, + "marketplaceStatus": { + "type": "string", + "description": "Marketplace Subscription Details: SaaS Subscription Status" + }, + "billedAzureSubscriptionId": { + "type": "string", + "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into." + }, + "subscribed": { + "type": "boolean", + "description": "Flag specifying if the Marketplace status is subscribed or not." + } + } + }, + "MarketplaceSubscriptionStatus": { + "type": "string", + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "enum": [ + "Provisioning", + "Active", + "Suspended", + "Unsubscribed" + ], + "x-ms-enum": { + "name": "MarketplaceSubscriptionStatus", + "modelAsString": true, + "values": [ + { + "name": "Provisioning", + "value": "Provisioning" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Suspended", + "value": "Suspended" + }, + { + "name": "Unsubscribed", + "value": "Unsubscribed" + } + ] + } + }, + "MetricRules": { + "type": "object", + "description": "Set of rules for sending metrics for the Monitor resource.", + "properties": { + "filteringTags": { + "type": "array", + "description": "List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.", + "items": { + "$ref": "#/definitions/FilteringTag" + } + } + } + }, + "MonitorProperties": { + "type": "object", + "description": "Properties specific to the monitor resource.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true + }, + "monitoringStatus": { + "type": "string", + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "MonitoringStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "marketplaceSubscriptionStatus": { + "$ref": "#/definitions/MarketplaceSubscriptionStatus", + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "readOnly": true + }, + "datadogOrganizationProperties": { + "$ref": "#/definitions/DatadogOrganizationProperties", + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well." + }, + "userInfo": { + "$ref": "#/definitions/UserInfo", + "description": "Includes name, email and optionally, phone number. User Information can't be null." + }, + "liftrResourceCategory": { + "$ref": "#/definitions/LiftrResourceCategories", + "readOnly": true + }, + "liftrResourcePreference": { + "type": "integer", + "format": "int32", + "description": "The priority of the resource.", + "readOnly": true + } + } + }, + "MonitorUpdateProperties": { + "type": "object", + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "properties": { + "monitoringStatus": { + "type": "string", + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "MonitoringStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "cspm": { + "type": "boolean", + "description": "The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks." + }, + "resourceCollection": { + "type": "boolean", + "description": "The new resource collection value of the monitor resource. This collects configuration information for all resources in a subscription." + } + } + }, + "MonitoredResource": { + "type": "object", + "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", + "properties": { + "id": { + "type": "string", + "description": "The ARM id of the resource." + }, + "sendingMetrics": { + "type": "boolean", + "description": "Flag indicating if resource is sending metrics to Datadog." + }, + "reasonForMetricsStatus": { + "type": "string", + "description": "Reason for why the resource is sending metrics (or why it is not sending)." + }, + "sendingLogs": { + "type": "boolean", + "description": "Flag indicating if resource is sending logs to Datadog." + }, + "reasonForLogsStatus": { + "type": "string", + "description": "Reason for why the resource is sending logs (or why it is not sending)." + } + } + }, + "MonitoredResourceListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The MonitoredResource items on this page", + "items": { + "$ref": "#/definitions/MonitoredResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MonitoredSubscription": { + "type": "object", + "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", + "properties": { + "subscriptionId": { + "type": "string", + "description": "The subscriptionId to be monitored." + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The state of monitoring." + }, + "error": { + "type": "string", + "description": "The reason of not monitoring the subscription." + }, + "tagRules": { + "$ref": "#/definitions/MonitoringTagRulesProperties", + "description": "Definition of the properties for a TagRules resource." + } + } + }, + "MonitoredSubscriptionProperties": { + "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "properties": { + "properties": { + "$ref": "#/definitions/SubscriptionList", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "MonitoredSubscriptionPropertiesList": { + "type": "object", + "description": "Paged collection of MonitoredSubscriptionProperties items", + "properties": { + "value": { + "type": "array", + "description": "The MonitoredSubscriptionProperties items on this page", + "items": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MonitoringTagRules": { + "type": "object", + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "properties": { + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties", + "description": "Definition of the properties for a TagRules resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "MonitoringTagRulesListResponse": { + "type": "object", + "description": "Response of a list operation.", + "properties": { + "value": { + "type": "array", + "description": "The MonitoringTagRules items on this page", + "items": { + "$ref": "#/definitions/MonitoringTagRules" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MonitoringTagRulesProperties": { + "type": "object", + "description": "Definition of the properties for a TagRules resource.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true + }, + "logRules": { + "$ref": "#/definitions/LogRules", + "description": "Set of rules for sending logs for the Monitor resource." + }, + "metricRules": { + "$ref": "#/definitions/MetricRules", + "description": "Set of rules for sending metrics for the Monitor resource." + }, + "agentRules": { + "$ref": "#/definitions/AgentRules", + "description": "Set of rules for managing agents for the Monitor resource." + }, + "automuting": { + "type": "boolean", + "description": "Configuration to enable/disable auto-muting flag" + }, + "customMetrics": { + "type": "boolean", + "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent." + } + } + }, + "Operation": { + "type": "string", + "description": "The operation for the patch on the resource.", + "enum": [ + "AddBegin", + "AddComplete", + "DeleteBegin", + "DeleteComplete", + "Active" + ], + "x-ms-enum": { + "name": "Operation", + "modelAsString": true, + "values": [ + { + "name": "AddBegin", + "value": "AddBegin" + }, + { + "name": "AddComplete", + "value": "AddComplete" + }, + { + "name": "DeleteBegin", + "value": "DeleteBegin" + }, + { + "name": "DeleteComplete", + "value": "DeleteComplete" + }, + { + "name": "Active", + "value": "Active" + } + ] + } + }, + "OperationDisplay": { + "type": "object", + "description": "The object that represents the operation.", + "properties": { + "provider": { + "type": "string", + "description": "Service provider, i.e., Microsoft.Datadog." + }, + "resource": { + "type": "string", + "description": "Type on which the operation is performed, e.g., 'monitors'." + }, + "operation": { + "type": "string", + "description": "Operation type, e.g., read, write, delete, etc." + }, + "description": { + "type": "string", + "description": "Description of the operation, e.g., 'Write monitors'." + } + } + }, + "OperationListResult": { + "type": "object", + "description": "Represents a paginated list of operation results.", + "properties": { + "value": { + "type": "array", + "description": "The list of operations.", + "items": { + "$ref": "#/definitions/OperationResult" + } + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of results, if any." + } + }, + "required": [ + "value" + ] + }, + "OperationResult": { + "type": "object", + "description": "A Microsoft.Datadog REST API operation.", + "properties": { + "name": { + "type": "string", + "description": "Operation name, i.e., {provider}/{resource}/{operation}." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The object that represents the operation." + }, + "isDataAction": { + "type": "boolean", + "description": "Indicates whether the operation is a data action" + } + } + }, + "PartnerBillingEntity": { + "type": "object", + "description": "Partner Billing details associated with the resource.", + "properties": { + "id": { + "type": "string", + "description": "The Datadog Organization Id." + }, + "name": { + "type": "string", + "description": "The Datadog Organization Name." + }, + "partnerEntityUri": { + "type": "string", + "description": "Link to the datadog organization page" + } + } + }, + "ProvisioningState": { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "Deleting", + "value": "Deleting" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Deleted", + "value": "Deleted" + }, + { + "name": "NotSpecified", + "value": "NotSpecified" + } + ] + } + }, + "ResourceSku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'." + } + }, + "required": [ + "name" + ] + }, + "ResubscribeProperties": { + "type": "object", + "description": "Resubscribe Properties", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku" + }, + "azureSubscriptionId": { + "type": "string", + "description": "Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe" + }, + "resourceGroup": { + "type": "string", + "description": "Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe" + } + } + }, + "SingleSignOnStates": { + "type": "string", + "description": "Various states of the SSO resource", + "enum": [ + "Initial", + "Enable", + "Disable", + "Existing" + ], + "x-ms-enum": { + "name": "SingleSignOnStates", + "modelAsString": true, + "values": [ + { + "name": "Initial", + "value": "Initial" + }, + { + "name": "Enable", + "value": "Enable" + }, + { + "name": "Disable", + "value": "Disable" + }, + { + "name": "Existing", + "value": "Existing" + } + ] + } + }, + "Status": { + "type": "string", + "description": "The state of monitoring.", + "enum": [ + "InProgress", + "Active", + "Failed", + "Deleting" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true, + "values": [ + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Deleting", + "value": "Deleting" + } + ] + } + }, + "SubscriptionList": { + "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "properties": { + "operation": { + "$ref": "#/definitions/Operation", + "description": "The operation for the patch on the resource.", + "x-ms-mutability": [ + "update", + "create" + ] + }, + "monitoredSubscriptionList": { + "type": "array", + "description": "List of subscriptions and the state of the monitoring.", + "items": { + "$ref": "#/definitions/MonitoredSubscription" + }, + "x-ms-identifiers": [] + } + } + }, + "TagAction": { + "type": "string", + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", + "enum": [ + "Include", + "Exclude" + ], + "x-ms-enum": { + "name": "TagAction", + "modelAsString": true, + "values": [ + { + "name": "Include", + "value": "Include" + }, + { + "name": "Exclude", + "value": "Exclude" + } + ] + } + }, + "UserInfo": { + "type": "object", + "description": "Includes name, email and optionally, phone number. User Information can't be null.", + "properties": { + "name": { + "type": "string", + "description": "Name of the user", + "maxLength": 50 + }, + "emailAddress": { + "type": "string", + "description": "Email of the user used by Datadog for contacting them if needed", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" + }, + "phoneNumber": { + "type": "string", + "description": "Phone number of the user used by Datadog for contacting them if needed", + "maxLength": 40 + } + } + } + }, + "parameters": {} +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..bd520614bdea --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_GetDefaultKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + } + } + }, + "operationId": "Monitors_GetDefaultKey", + "title": "Monitors_GetDefaultKey" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_List.json new file mode 100644 index 000000000000..a0a0978af0c2 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + { + "name": "", + "created": "2019-04-05 09:19:53", + "createdBy": "jane@example.com", + "key": "2111111111111111aaaaaaaaaaaaaaaa" + } + ] + } + } + }, + "operationId": "Monitors_ListApiKeys", + "title": "Monitors_ListApiKeys" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..99e5a5edbc9f --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/ApiKeys_SetDefaultKey.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "requestBody": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Monitors_SetDefaultKey", + "title": "Monitors_SetDefaultKey" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/BillingInfo_Get.json new file mode 100644 index 000000000000..a999fdfffe64 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/BillingInfo_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "marketplaceSaasInfo": { + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "marketplaceName": "MP_RESOURCE", + "marketplaceStatus": "Status", + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "subscribed": true + }, + "partnerBillingEntity": { + "name": "datadogOrganizationName", + "id": "1234567890", + "partnerEntityUri": "https://example.com" + } + } + } + }, + "operationId": "BillingInfo_Get", + "title": "BillingInfo_Get" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_Get.json new file mode 100644 index 000000000000..0a1d5267ecff --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_Get.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + } + }, + "operationId": "CreationSupported_Get", + "title": "CreationSupported_Get" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_List.json new file mode 100644 index 000000000000..898e8257763d --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/CreationSupported_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + ] + } + } + }, + "operationId": "CreationSupported_List", + "title": "CreationSupported_List" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Hosts_List.json new file mode 100644 index 000000000000..698e8eeb0a7f --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Hosts_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "vm1", + "aliases": [ + "vm1", + "65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd" + ], + "apps": [ + "ntp", + "agent" + ], + "meta": { + "agentVersion": "7.19.2", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "" + } + } + }, + { + "name": "vm2", + "aliases": [ + "vm2", + "df631d9a-8178-4580-bf60-c697a5e8df4d" + ], + "apps": [ + "infra", + "agent" + ], + "meta": { + "agentVersion": "7.18.1", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "HTTP" + } + } + } + ] + } + } + }, + "operationId": "Monitors_ListHosts", + "title": "Monitors_ListHosts" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/LinkedResources_List.json new file mode 100644 index 000000000000..27c57f7379a6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/LinkedResources_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor", + "location": "West US 2" + } + ] + } + } + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..6dafca2fca22 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_Create.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "accepted": true + } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", + "properties": { + "accepted": true, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + } + }, + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "title": "MarketplaceAgreements_CreateOrUpdate" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..b2aee94ed4f6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MarketplaceAgreements_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "planid1", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + }, + { + "name": "planid2", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLin2k", + "plan": "planid2", + "privacyPolicyLink": "test.privacyPolicyLink2", + "product": "offid2", + "publisher": "pubid2", + "retrieveDatetime": "2017-08-14T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + ] + } + } + }, + "operationId": "MarketplaceAgreements_List", + "title": "MarketplaceAgreements_List" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredResources_List.json new file mode 100644 index 000000000000..2633a1d0c880 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", + "reasonForLogsStatus": "CapturedByRules", + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "sendingMetrics": true + } + ] + } + } + }, + "operationId": "Monitors_ListMonitoredResources", + "title": "Monitors_ListMonitoredResources" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..adb223b6ddb9 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,209 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddBegin" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "title": "Monitors_AddMonitoredSubscriptions" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..f723577388f9 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "MonitoredSubscriptions_Delete", + "title": "Monitors_DeleteMonitoredSubscriptions" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..19934f9363aa --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Get.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + } + }, + "operationId": "MonitoredSubscriptions_Get", + "title": "Monitors_GetMonitoredSubscriptions" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..a44da644a864 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_List.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + ] + } + } + }, + "operationId": "MonitoredSubscriptions_List", + "title": "Monitors_GetMonitoredSubscriptions" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..88b0938b26f6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/MonitoredSubscriptions_Update.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddComplete" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_Update", + "title": "Monitors_UpdateMonitoredSubscriptions" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Create.json new file mode 100644 index 000000000000..0f6983983b61 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Create.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "id": "myOrg123", + "linkingAuthCode": "someAuthCode", + "linkingClientId": "00000000-0000-0000-0000-000000000000", + "resourceCollection": false + }, + "monitoringStatus": "Enabled", + "userInfo": { + "name": "Alice", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123-456-7890" + } + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Create", + "title": "Monitors_Create" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Delete.json new file mode 100644 index 000000000000..8bcb433bd1d5 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "Monitors_Delete", + "title": "Monitors_Delete" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Get.json new file mode 100644 index 000000000000..b62a13d9fff6 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Get.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "resourceCollection": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Get", + "title": "Monitors_Get" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_List.json new file mode 100644 index 000000000000..51cd03bb2bda --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_List.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null, + "resourceCollection": false + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_List", + "title": "Monitors_List" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..7f9235a7fa3e --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_ListByResourceGroup", + "title": "Monitors_ListByResourceGroup" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Update.json new file mode 100644 index 000000000000..cce799fc0fb7 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Monitors_Update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Update", + "title": "Monitors_Update" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Operations_List.json new file mode 100644 index 000000000000..8eec7bc9849a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Operations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-06-11" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "Microsoft.Datadog/monitors/write", + "display": { + "description": "Write monitors resource", + "operation": "write", + "provider": "Microsoft.Datadog", + "resource": "monitors" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Organizations_Resubscribe.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Organizations_Resubscribe.json new file mode 100644 index 000000000000..f0f52ff6d5f2 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/Organizations_Resubscribe.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "azureSubscriptionId": "subscriptionId", + "resourceGroup": "resourceGroup", + "sku": { + "name": "planName" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "marketplaceSubscriptionStatus": "Active", + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Datadog/monitor/monitorname/resubscribe?api-version=2025-06-11" + } + } + }, + "operationId": "Organizations_Resubscribe", + "title": "Organizations_Resubscribe" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..27e8ff152b56 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/RefreshSetPassword_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" + } + } + }, + "operationId": "Monitors_RefreshSetPasswordLink", + "title": "Monitors_RefreshSetPasswordLink" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..c3b4f7a34a28 --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + } + }, + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "title": "SingleSignOnConfigurations_CreateOrUpdate" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..3691d1da796f --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + } + }, + "operationId": "SingleSignOnConfigurations_Get", + "title": "SingleSignOnConfigurations_Get" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..8d422b7adc7c --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/SingleSignOnConfigurations_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + ] + } + } + }, + "operationId": "SingleSignOnConfigurations_List", + "title": "SingleSignOnConfigurations_List" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..749477e4f95b --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_CreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "body": { + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_CreateOrUpdate", + "title": "TagRules_CreateOrUpdate" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_Get.json new file mode 100644 index 000000000000..1ad806c132bf --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_Get.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ] + }, + "automuting": true, + "customMetrics": false, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_Get", + "title": "TagRules_Get" +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_List.json new file mode 100644 index 000000000000..58e3b2f3a23a --- /dev/null +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2025-06-11/examples/TagRules_List.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-06-11", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "agentRules": { + "enableAgentMonitoring": true, + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ] + }, + "automuting": true, + "customMetrics": false, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "operationId": "TagRules_List", + "title": "TagRules_List" +} diff --git a/specification/datadog/resource-manager/readme.go.md b/specification/datadog/resource-manager/readme.go.md index 2e31c6d6726e..344d8c43e1f3 100644 --- a/specification/datadog/resource-manager/readme.go.md +++ b/specification/datadog/resource-manager/readme.go.md @@ -8,4 +8,6 @@ module-name: sdk/resourcemanager/datadog/armdatadog module: github.com/Azure/azure-sdk-for-go/$(module-name) output-folder: $(go-sdk-folder)/$(module-name) azure-arm: true +modelerfour: + lenient-model-deduplication: true # !!temporary!! to solve the duplicate schema issue of ErrorResponse in common-type ``` diff --git a/specification/datadog/resource-manager/readme.java.md b/specification/datadog/resource-manager/readme.java.md index afc9f244c1d9..cf652d42ae8f 100644 --- a/specification/datadog/resource-manager/readme.java.md +++ b/specification/datadog/resource-manager/readme.java.md @@ -16,6 +16,9 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datadog ``` yaml $(java) && $(multiapi) batch: + - tag: package-2025-06 + - tag: package-2025-01 + - tag: package-2024-03 - tag: package-2023-01 - tag: packag-2022-08 - tag: package-2022-06 @@ -23,7 +26,72 @@ batch: - tag: package-2020-02-preview ``` -### Tag: ppackage-2023-01 and java +### Tag: package-2025-06 and java + +These settings apply only when `--tag=package-2025-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2025-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datadog.v2025_06_11 + output-folder: $(azure-libraries-for-java-folder)/sdk/datadog/mgmt-v2025_06_11 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2025-01 and java + +These settings apply only when `--tag=package-2025-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2025-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datadog.v2025_01_07 + output-folder: $(azure-libraries-for-java-folder)/sdk/datadog/mgmt-v2025_01_07 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2024-03 and java + +These settings apply only when `--tag=package-2024-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2024-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datadog.v2024_03_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/datadog/mgmt-v2024-03_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2023-10 and java + +These settings apply only when `--tag=package-2023-10 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2023-10' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datadog.v2023_10_20 + output-folder: $(azure-libraries-for-java-folder)/sdk/datadog/mgmt-v2023_10_20 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2023-07 and java + +These settings apply only when `--tag=package-2023-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2023-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.datadog.v2023_07_07 + output-folder: $(azure-libraries-for-java-folder)/sdk/datadog/mgmt-v2023_07_07 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2023-01 and java These settings apply only when `--tag=package-2023-01 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. @@ -36,7 +104,7 @@ regenerate-manager: true generate-interface: true ``` -### Tag: ppackage-2022-08 and java +### Tag: package-2022-08 and java These settings apply only when `--tag=package-2022-08 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. @@ -49,7 +117,7 @@ regenerate-manager: true generate-interface: true ``` -### Tag: ppackage-2022-06 and java +### Tag: package-2022-06 and java These settings apply only when `--tag=package-2022-06 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. @@ -62,7 +130,7 @@ regenerate-manager: true generate-interface: true ``` -### Tag: ppackage-2021-03 and java +### Tag: package-2021-03 and java These settings apply only when `--tag=package-2021-03 --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. diff --git a/specification/datadog/resource-manager/readme.md b/specification/datadog/resource-manager/readme.md index e987a543bebc..8e69f94d1154 100644 --- a/specification/datadog/resource-manager/readme.md +++ b/specification/datadog/resource-manager/readme.md @@ -26,8 +26,36 @@ These are the global settings for the Datadog API. title: Microsoft Datadog Client openapi-type: arm openapi-subtype: rpaas -tag: package-2023-10 +tag: package-2025-06 ``` + +### Tag: package-2025-06 + +These settings apply only when `--tag=package-2025-06` is specified on the command line. + +``` yaml $(tag) == 'package-2025-06' +input-file: +- Microsoft.Datadog/stable/2025-06-11/datadog.json +``` + +### Tag: package-2025-01 + +These settings apply only when `--tag=package-2025-01` is specified on the command line. + +``` yaml $(tag) == 'package-2025-01' +input-file: +- Microsoft.Datadog/stable/2025-01-07/datadog.json +``` + +### Tag: package-2024-03 + +These settings apply only when `--tag=package-2024-03` is specified on the command line. + +``` yaml $(tag) == 'package-2024-03' +input-file: +- Microsoft.Datadog/stable/2024-03-01/datadog.json +``` + ### Tag: package-2023-10 These settings apply only when `--tag=package-2023-10` is specified on the command line. diff --git a/specification/datadog/resource-manager/readme.python.md b/specification/datadog/resource-manager/readme.python.md index 07bd8db9d119..adfbbe53a8bc 100644 --- a/specification/datadog/resource-manager/readme.python.md +++ b/specification/datadog/resource-manager/readme.python.md @@ -12,6 +12,8 @@ package-name: azure-mgmt-datadog namespace: azure.mgmt.datadog package-version: 1.0.0b1 clear-output-folder: true +modelerfour: + lenient-model-deduplication: true # !!temporary!! to solve the duplicate schema issue of ErrorResponse in common-type ``` ``` yaml $(python)