diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp new file mode 100644 index 000000000000..43ac3f9fdb71 --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -0,0 +1,190 @@ +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 = "" + >; + #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 DatadogMonitorResourcesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + }, + { + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + ErrorResponse + > {} + +@armResourceOperations +interface DatadogMonitorResources { + /** + * Get the properties of a specific monitor resource. + */ + get is ArmResourceRead; + + /** + * Create a monitor resource. + */ + create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< + DatadogMonitorResource, + OptionalRequestBody = true + >; + + /** + * Update a monitor resource. + */ + @patch(#{ implicitOptionality: false }) + update is DatadogMonitorResourcesOps.CustomPatchAsync< + DatadogMonitorResource, + PatchModel = 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" + delete is ArmResourceDeleteWithoutOkAsync< + DatadogMonitorResource, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List all monitors under the specified resource group. + */ + listByResourceGroup is ArmResourceListByParent< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List all monitors under the specified subscription. + */ + list is ArmListBySubscription< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List the api keys for a given monitor resource. + */ + @list + listApiKeys is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Get the default api key. + */ + getDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Set the default api key. + */ + setDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + DatadogApiKey, + OkResponse, + OptionalRequestBody = true + >; + + /** + * List the hosts for a given monitor resource. + */ + @list + listHosts is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List all Azure resources associated to the same Datadog organization as the target resource. + */ + @list + listLinkedResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List the resources currently being monitored by the Datadog monitor resource. + */ + @list + listMonitoredResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * 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. + */ + @action("getBillingInfo") + billingInfoGet is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; +} + +@@doc(DatadogMonitorResource.name, "Monitor resource name"); +@@doc(DatadogMonitorResource.properties, + "Properties specific to the monitor resource." +); +@@doc(DatadogMonitorResources.create::parameters.resource, ""); +@@doc(DatadogMonitorResources.update::parameters.properties, ""); +@@doc(DatadogMonitorResources.setDefaultKey::parameters.body, ""); diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp new file mode 100644 index 000000000000..17055833abc1 --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -0,0 +1,80 @@ +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 = "" + >; +} + +@armResourceOperations +interface DatadogSingleSignOnResourcesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * Configuration name + */ + @path + @segment("singleSignOnConfigurations") + configurationName: string, + }, + ErrorResponse + > {} + +#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. + */ + get is ArmResourceRead; + + /** + * Configures single-sign-on for this resource. + */ + createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< + DatadogSingleSignOnResource, + OptionalRequestBody = true + >; + + /** + * 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.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp new file mode 100644 index 000000000000..65a27ec65eda --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -0,0 +1,111 @@ +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 MonitoredSubscriptionsOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * The configuration name. Only 'default' value is supported. + */ + @path + @segment("monitoredSubscriptions") + configurationName: string, + }, + ErrorResponse + > {} + +@armResourceOperations +interface MonitoredSubscriptions { + /** + * 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" + createorUpdate is MonitoredSubscriptionsOps.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 + */ + @patch(#{ implicitOptionality: false }) + update is MonitoredSubscriptionsOps.CustomPatchAsync< + MonitoredSubscriptionProperties, + PatchModel = MonitoredSubscriptionProperties, + 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" + delete is ArmResourceDeleteWithoutOkAsync< + MonitoredSubscriptionProperties, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * 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.properties, ""); diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp new file mode 100644 index 000000000000..ddb048b8da4f --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -0,0 +1,86 @@ +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 = "" + >; +} + +@armResourceOperations +interface TagRulesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * Rule set name + */ + @path + @segment("tagRules") + ruleSetName: string, + }, + ErrorResponse + > {} + +#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. + */ + 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" + createOrUpdate is TagRulesOps.CreateOrUpdateAsync< + MonitoringTagRules, + Response = ArmResourceUpdatedResponse, + OptionalRequestBody = true + >; + + /** + * 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..97d91e8c7281 --- /dev/null +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -0,0 +1,108 @@ +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"); + +// DatadogSingleSignOnResources operations +@@clientLocation(DatadogSingleSignOnResources.get, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.get, "Get"); + +@@clientLocation(DatadogSingleSignOnResources.createOrUpdate, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.createOrUpdate, "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.properties, "body"); + +@@clientName(TagRules.createOrUpdate::parameters.resource, "body"); + +@@clientName(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, + "body" +); + +@@clientName(MonitoredSubscriptions.createorUpdate::parameters.resource, + "body" +); +@@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); 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/2023-10-20/ApiKeys_GetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..a0a653ae2104 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/ApiKeys_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json new file mode 100644 index 000000000000..03d9a2932fdc --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/ApiKeys_SetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..dd343240d845 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Monitors_SetDefaultKey", + "title": "Monitors_SetDefaultKey" +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json new file mode 100644 index 000000000000..82fa74dcc8f4 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/CreationSupported_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json new file mode 100644 index 000000000000..616ef3ccb642 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/CreationSupported_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json new file mode 100644 index 000000000000..e7a8339a82df --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/Hosts_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json new file mode 100644 index 000000000000..a44374045838 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/LinkedResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json new file mode 100644 index 000000000000..7fe429c0a7d0 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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" + } + ] + } + } + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..c578df5076e6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MarketplaceAgreements_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..0433ea7477f1 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json new file mode 100644 index 000000000000..55f60b74f95a --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..1887d3d37643 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,209 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredSubscriptions_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..15a1e06c11c8 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredSubscriptions_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..6b8c9e5cf04b --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredSubscriptions_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..c15fff724ded --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/MonitoredSubscriptions_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..9ec055e49d4a --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/Monitors_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json new file mode 100644 index 000000000000..62b8fd2a1fb5 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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" + }, + "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/2023-10-20/Monitors_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json new file mode 100644 index 000000000000..df382cb7ee29 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/Monitors_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json new file mode 100644 index 000000000000..d58714f86882 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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 + }, + "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/2023-10-20/Monitors_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json new file mode 100644 index 000000000000..abb030a27de4 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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 + }, + "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/2023-10-20/Monitors_ListByResourceGroup.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..9db4d603a6a1 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/Monitors_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json new file mode 100644 index 000000000000..9d0d0218b1b1 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/Operations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json new file mode 100644 index 000000000000..86287ce46762 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-10-20" + }, + "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/2023-10-20/RefreshSetPassword_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..49452066f46f --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..438d7dd7836e --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/SingleSignOnConfigurations_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..93c8ddb17135 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/SingleSignOnConfigurations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..0f21f413f3f7 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/TagRules_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..afce76c6aaa0 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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/2023-10-20/TagRules_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json new file mode 100644 index 000000000000..bf5f1bb0db37 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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_Get", + "title": "TagRules_Get" +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json new file mode 100644 index 000000000000..3d7fcf30e39c --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "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": { + "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_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..fc7e616e7b20 --- /dev/null +++ b/specification/datadog/Datadog.Management/main.tsp @@ -0,0 +1,55 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.0 + * Date: 2025-04-28T01:57:40.862Z + */ +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) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Datadog; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2023-10-20 API version. + */ + v2023_10_20: "2023-10-20", +} + +/** + * 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..c8b9f11a68fc --- /dev/null +++ b/specification/datadog/Datadog.Management/models.tsp @@ -0,0 +1,895 @@ +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; +using Azure.Core; + +namespace Microsoft.Datadog; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +union ProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Deleted: "Deleted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + NotSpecified: "NotSpecified", +} + +/** + * Flag specifying if the resource monitoring is enabled or disabled. + */ +union MonitoringStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Provisioning: "Provisioning", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Suspended: "Suspended", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Unsubscribed: "Unsubscribed", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +union LiftrResourceCategories { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + SystemAssigned: "SystemAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + UserAssigned: "UserAssigned", +} + +/** + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. + */ +union TagAction { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Include: "Include", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Exclude: "Exclude", +} + +/** + * Various states of the SSO resource + */ +union SingleSignOnStates { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Initial: "Initial", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Enable: "Enable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Disable: "Disable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Existing: "Existing", +} + +/** + * The operation for the patch on the resource. + */ +union Operation { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + AddBegin: "AddBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + AddComplete: "AddComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + DeleteBegin: "DeleteBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + DeleteComplete: "DeleteComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Active: "Active", +} + +/** + * The state of monitoring. + */ +union Status { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Deleting: "Deleting", +} + +/** + * Response of a list operation. + */ +model DatadogAgreementResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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. + */ + 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + meta?: DatadogHostMetadata; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogHostMetadata { + /** + * The agent version. + */ + agentVersion?: string; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + installMethod?: DatadogInstallMethod; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + logsAgent?: DatadogLogsAgent; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogInstallMethod { + /** + * The tool. + */ + tool?: string; + + /** + * The tool version. + */ + toolVersion?: string; + + /** + * The installer version. + */ + installerVersion?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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; +} + +/** + * Response of a list operation. + */ +model DatadogMonitorResourceListResponse + is Azure.Core.Page; + +/** + * Properties specific to the monitor resource. + */ +model MonitorProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @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; +} + +/** + * 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + 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; +} + +/** + * 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogSetPasswordLink { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + 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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @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; + + /** + * 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[]; +} + +/** + * Response of a list operation. + */ +model DatadogSingleSignOnResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model DatadogSingleSignOnProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +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; +} +/** + * Represents the SKU of a resource. + */ +model ResourceSku { + /** + * The name of the SKU. + */ + name: string; +} + +/** + * Represents the display information for an operation. + */ +model OperationDisplay { + /** + * The service provider: Microsoft.Datadog. + */ + provider?: string; + + /** + * The resource on which the operation is performed. + */ + resource?: string; + + /** + * The type of operation: create, update, delete, etc. + */ + operation?: string; + + /** + * A localized description of the operation. + */ + description?: string; +} + +/** + * 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; +} 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..348b1c557dbd --- /dev/null +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -0,0 +1,51 @@ +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-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.Datadog" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-datadog" + namespace: "azure.mgmt.datadog" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-datadog" + namespace: "com.azure.resourcemanager.datadog" + service-name: "Microsoft Datadog" + flavor: azure + "@azure-tools/typespec-ts": + service-dir: sdk/datadog + package-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" + package-dir: "armdatadog" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + 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/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 5e8f85aa38b8..3001e4d0da47 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -2,95 +2,149 @@ "swagger": "2.0", "info": { "title": "Microsoft.Datadog", - "version": "2023-10-20" + "version": "2023-10-20", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", - "description": "Microsoft Entra ID OAuth2 Flow", + "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": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "/providers/Microsoft.Datadog/operations": { "get": { + "operationId": "Operations_List", "tags": [ - "Agreements" + "Operations" ], - "summary": "List Datadog marketplace agreements in the subscription.", - "operationId": "MarketplaceAgreements_List", - "produces": [ - "application/json" + "description": "List the operations for the provider", + "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/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DatadogAgreementResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "MarketplaceAgreements_List": { "$ref": "./examples/MarketplaceAgreements_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/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" - ], + "summary": "Create Datadog marketplace agreement in the subscription.", + "description": "Create Datadog marketplace agreement in the subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "body", "name": "body", + "in": "body", + "description": "The request body", + "required": false, "schema": { "$ref": "#/definitions/DatadogAgreementResource" } @@ -98,15 +152,15 @@ ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DatadogAgreementResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -117,83 +171,120 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { "get": { + "operationId": "Monitors_List", "tags": [ - "CreateResource" + "DatadogMonitorResources" ], - "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", - "operationId": "CreationSupported_List", - "produces": [ - "application/json" + "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/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DatadogOrganizationId" + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/CreateResourceSupportedResponseList" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "CreationSupported_List": { "$ref": "./examples/CreationSupported_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/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" - ], + "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/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DatadogOrganizationId" + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/CreateResourceSupportedResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -204,1399 +295,1502 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { + "get": { + "operationId": "Monitors_ListByResourceGroup", "tags": [ - "ApiKey" - ], - "summary": "List the api keys for a given monitor resource.", - "operationId": "Monitors_ListApiKeys", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List all monitors under the specified resource group.", "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/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogApiKeyListResponse" + "$ref": "#/definitions/DatadogMonitorResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListApiKeys": { - "$ref": "./examples/ApiKeys_List.json" + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { + "get": { + "operationId": "Monitors_Get", "tags": [ - "ApiKey" - ], - "summary": "Get the default api key.", - "operationId": "Monitors_GetDefaultKey", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get the properties of a specific monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogApiKey" + "$ref": "#/definitions/DatadogMonitorResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_GetDefaultKey": { - "$ref": "./examples/ApiKeys_GetDefaultKey.json" + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { - "post": { + }, + "put": { + "operationId": "Monitors_Create", "tags": [ - "ApiKey" - ], - "summary": "Set the default api key.", - "operationId": "Monitors_SetDefaultKey", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Create a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "in": "body", "name": "body", + "in": "body", + "description": "", + "required": false, "schema": { - "$ref": "#/definitions/DatadogApiKey" + "$ref": "#/definitions/DatadogMonitorResource" } } ], "responses": { "200": { - "description": "Success" + "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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_SetDefaultKey": { - "$ref": "./examples/ApiKeys_SetDefaultKey.json" + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { - "post": { + }, + "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": [ - "Hosts" - ], - "summary": "List the hosts for a given monitor resource.", - "operationId": "Monitors_ListHosts", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Update a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$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/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogHostListResponse" + "$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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListHosts": { - "$ref": "./examples/Hosts_List.json" + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { - "post": { + }, + "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": [ - "LinkedResources" - ], - "summary": "List all Azure resources associated to the same Datadog organization as the target resource.", - "operationId": "Monitors_ListLinkedResources", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Delete a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/LinkedResourceListResponse" + "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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListLinkedResources": { - "$ref": "./examples/LinkedResources_List.json" + "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}/listMonitoredResources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { "post": { + "operationId": "BillingInfo_Get", "tags": [ - "MonitoredResources" - ], - "summary": "List the resources currently being monitored by the Datadog monitor resource.", - "operationId": "Monitors_ListMonitoredResources", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get marketplace and organization info mapped to the given monitor.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" + } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredResourceListResponse" + "$ref": "#/definitions/BillingInfoResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListMonitoredResources": { - "$ref": "./examples/MonitoredResources_List.json" + "BillingInfo_Get": { + "$ref": "./examples/BillingInfo_Get.json" } } } }, - "/providers/Microsoft.Datadog/operations": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { + "post": { + "operationId": "Monitors_GetDefaultKey", "tags": [ - "MonitorsResource" - ], - "summary": "List all operations provided by Microsoft.Datadog for the 2023-10-20 api version.", - "operationId": "Operations_List", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get the default api key.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/OperationListResult" - } + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, - "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/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResourceListResponse" + "$ref": "#/definitions/DatadogApiKey" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_List": { - "$ref": "./examples/Monitors_List.json" + "Monitors_GetDefaultKey": { + "$ref": "./examples/ApiKeys_GetDefaultKey.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { + "post": { + "operationId": "Monitors_ListApiKeys", "tags": [ - "MonitorsResource" - ], - "summary": "List all monitors under the specified resource group.", - "operationId": "Monitors_ListByResourceGroup", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the api keys for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$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/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResourceListResponse" + "$ref": "#/definitions/DatadogApiKeyListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListByResourceGroup": { - "$ref": "./examples/Monitors_ListByResourceGroup.json" + "Monitors_ListApiKeys": { + "$ref": "./examples/ApiKeys_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { + "post": { + "operationId": "Monitors_ListHosts", "tags": [ - "MonitorsResource" - ], - "summary": "Get the properties of a specific monitor resource.", - "operationId": "Monitors_Get", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the hosts for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/DatadogHostListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_Get": { - "$ref": "./examples/Monitors_Get.json" + "Monitors_ListHosts": { + "$ref": "./examples/Hosts_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { + "post": { + "operationId": "Monitors_ListLinkedResources", "tags": [ - "MonitorsResource" - ], - "summary": "Create a monitor resource.", - "operationId": "Monitors_Create", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List all Azure resources associated to the same Datadog organization as the target resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/LinkedResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/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" + "Monitors_ListLinkedResources": { + "$ref": "./examples/LinkedResources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "post": { + "operationId": "Monitors_ListMonitoredResources", "tags": [ - "MonitorsResource" - ], - "summary": "Update a monitor resource.", - "operationId": "Monitors_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the resources currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" - } + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/MonitoredResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_Update": { - "$ref": "./examples/Monitors_Update.json" + "Monitors_ListMonitoredResources": { + "$ref": "./examples/MonitoredResources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "get": { + "operationId": "MonitoredSubscriptions_List", "tags": [ - "MonitorsResource" - ], - "summary": "Delete a monitor resource.", - "operationId": "Monitors_Delete", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success" - }, - "202": { - "description": "Success" - }, - "204": { - "description": "Success" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_Delete": { - "$ref": "./examples/Monitors_Delete.json" + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "get": { + "operationId": "MonitoredSubscriptions_Get", "tags": [ - "ConnectedResources" - ], - "summary": "Get marketplace and organization info mapped to the given monitor.", - "operationId": "BillingInfo_Get", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$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/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/BillingInfoResponse" + "$ref": "#/definitions/MonitoredSubscriptionProperties" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "BillingInfo_Get": { - "$ref": "./examples/BillingInfo_Get.json" + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { - "post": { + }, + "put": { + "operationId": "MonitoredSubscriptions_CreateorUpdate", "tags": [ - "RefreshSetPasswordLink" - ], - "summary": "Refresh the set password link and return a latest one.", - "operationId": "Monitors_RefreshSetPasswordLink", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Add the subscriptions that should be monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$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" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } } ], "responses": { "200": { - "description": "Success", + "description": "Resource 'MonitoredSubscriptionProperties' update operation succeeded", "schema": { - "$ref": "#/definitions/DatadogSetPasswordLink" + "$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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_RefreshSetPasswordLink": { - "$ref": "./examples/RefreshSetPassword_Get.json" + "Monitors_AddMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { - "get": { + }, + "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": [ - "Rules" - ], - "summary": "List the tag rules for a given monitor resource.", - "operationId": "TagRules_List", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$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/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoringTagRulesListResponse" + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Resource update request 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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "TagRules_List": { - "$ref": "./examples/TagRules_List.json" + "Monitors_UpdateMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Update.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { - "put": { + }, + "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": [ - "Rules" - ], - "summary": "Create or update a tag rule set for a given monitor resource.", - "operationId": "TagRules_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Rule set name", + "name": "monitorName", "in": "path", - "name": "ruleSetName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." }, - { - "in": "body", - "name": "body", + "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": "#/definitions/MonitoringTagRules" + "$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" + ], + "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" + } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoringTagRules" + "$ref": "#/definitions/DatadogSetPasswordLink" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "TagRules_CreateOrUpdate": { - "$ref": "./examples/TagRules_CreateOrUpdate.json" + "Monitors_RefreshSetPasswordLink": { + "$ref": "./examples/RefreshSetPassword_Get.json" } } - }, - "get": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { + "post": { + "operationId": "Monitors_SetDefaultKey", "tags": [ - "Rules" - ], - "summary": "Get a tag rule set for a given monitor resource.", - "operationId": "TagRules_Get", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Set the default api key.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Rule set name", + "name": "monitorName", "in": "path", - "name": "ruleSetName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoringTagRules" - } + "description": "The request has succeeded." }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "TagRules_Get": { - "$ref": "./examples/TagRules_Get.json" + "Monitors_SetDefaultKey": { + "$ref": "./examples/ApiKeys_SetDefaultKey.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" + "tags": [ + "DatadogSingleSignOnResources" ], + "description": "List the single sign-on configurations for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DatadogSingleSignOnResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "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}": { - "put": { + "get": { + "operationId": "SingleSignOnConfigurations_Get", "tags": [ - "SingleSignOn" - ], - "summary": "Configures single-sign-on for this resource.", - "operationId": "SingleSignOnConfigurations_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogSingleSignOnResources" ], + "description": "Gets the datadog single sign-on resource for the given Monitor.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Configuration name", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogSingleSignOnResource" - } + "name": "configurationName", + "in": "path", + "description": "Configuration name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogSingleSignOnResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DatadogSingleSignOnResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/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" + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" } } }, - "get": { + "put": { + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", "tags": [ - "SingleSignOn" - ], - "summary": "Gets the datadog single sign-on resource for the given Monitor.", - "operationId": "SingleSignOnConfigurations_Get", - "produces": [ - "application/json" + "DatadogSingleSignOnResources" ], + "description": "Configures single-sign-on for this resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Configuration name", + "name": "monitorName", "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" + }, + { "name": "configurationName", + "in": "path", + "description": "Configuration name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } } ], "responses": { "200": { - "description": "Success", + "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": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "SingleSignOnConfigurations_Get": { - "$ref": "./examples/SingleSignOnConfigurations_Get.json" + "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}/monitoredSubscriptions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { "get": { + "operationId": "TagRules_List", "tags": [ - "monitoredSubscriptions" - ], - "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_List", - "produces": [ - "application/json" + "TagRules" ], + "description": "List the tag rules for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + "$ref": "#/definitions/MonitoringTagRulesListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_GetMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_List.json" + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { "get": { + "operationId": "TagRules_Get", "tags": [ - "monitoredSubscriptions" - ], - "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_Get", - "produces": [ - "application/json" + "TagRules" ], + "description": "Get a tag rule set for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "The configuration name. Only 'default' value is supported.", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "ruleSetName", + "in": "path", + "description": "Rule set name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" + "$ref": "#/definitions/MonitoringTagRules" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_GetMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_Get.json" + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" } } }, "put": { + "operationId": "TagRules_CreateOrUpdate", "tags": [ - "monitoredSubscriptions" - ], - "summary": "Add the subscriptions that should be monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_CreateorUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "TagRules" ], + "description": "Create or update a tag rule set for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "The configuration name. Only 'default' value is supported.", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "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.", + "name": "ruleSetName", "in": "path", - "name": "configurationName", + "description": "Rule set name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", "name": "body", + "in": "body", + "description": "", + "required": false, "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" + "$ref": "#/definitions/MonitoringTagRules" } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } - }, - "202": { - "description": "Success" - }, - "default": { - "description": "Default error response.", + "description": "Resource 'MonitoringTagRules' update operation succeeded", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/MonitoringTagRules" } - } - }, - "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.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_DeleteMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_Delete.json" + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" } } } } }, "definitions": { + "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": { - "description": "Terms properties.", "type": "object", + "description": "Terms properties.", "properties": { "publisher": { - "description": "Publisher identifier string.", - "type": "string" + "type": "string", + "description": "Publisher identifier string." }, "product": { - "description": "Product identifier string.", - "type": "string" + "type": "string", + "description": "Product identifier string." }, "plan": { - "description": "Plan identifier string.", - "type": "string" + "type": "string", + "description": "Plan identifier string." }, "licenseTextLink": { - "description": "Link to HTML with Microsoft and Publisher terms.", - "type": "string" + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." }, "privacyPolicyLink": { - "description": "Link to the privacy policy of the publisher.", - "type": "string" + "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.", - "type": "string" + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." }, "signature": { - "description": "Terms signature.", - "type": "string" + "type": "string", + "description": "Terms signature." }, "accepted": { - "description": "If any version of the terms have been accepted, otherwise false.", - "type": "boolean" + "type": "boolean", + "description": "If any version of the terms have been accepted, otherwise false." } } }, "DatadogAgreementResource": { "type": "object", - "x-ms-azure-resource": true, "properties": { "id": { - "description": "ARM id of the resource.", "type": "string", + "description": "ARM id of the resource.", "readOnly": true }, "name": { - "description": "Name of the agreement.", "type": "string", + "description": "Name of the agreement.", "readOnly": true }, "type": { - "description": "The type of the resource.", "type": "string", + "description": "The type of the resource.", "readOnly": true }, "properties": { @@ -1604,169 +1798,95 @@ "description": "Represents the properties of the resource." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/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": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogAgreementResource items on this page", "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" + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "DatadogApiKey": { - "required": [ - "key" - ], "type": "object", "properties": { "createdBy": { - "description": "The user that created the API key.", - "type": "string" + "type": "string", + "description": "The user that created the API key." }, "name": { - "description": "The name of the API key.", - "type": "string" + "type": "string", + "description": "The name of the API key." }, "key": { - "description": "The value of the API key.", - "type": "string" + "type": "string", + "description": "The value of the API key." }, "created": { - "description": "The time of creation of the API key.", - "type": "string" + "type": "string", + "description": "The time of creation of the API key." } - } + }, + "required": [ + "key" + ] }, "DatadogApiKeyListResponse": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogApiKey items on this page", "items": { "$ref": "#/definitions/DatadogApiKey" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "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": { + "DatadogHost": { "type": "object", "properties": { "name": { - "description": "The name of the host.", - "type": "string" + "type": "string", + "description": "The name of the host." }, "aliases": { - "description": "The aliases for the host installed via the Datadog agent.", "type": "array", + "description": "The aliases for the host installed via the Datadog agent.", "items": { "type": "string" } }, "apps": { - "description": "The Datadog integrations reporting metrics for the host.", "type": "array", + "description": "The Datadog integrations reporting metrics for the host.", "items": { "type": "string" } @@ -1777,780 +1897,923 @@ } }, "DatadogHostListResponse": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogHost items on this page", "items": { "$ref": "#/definitions/DatadogHost" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "LinkedResource": { - "description": "The definition of a linked resource.", + "DatadogHostMetadata": { "type": "object", "properties": { - "id": { - "description": "The ARM id of the linked resource.", - "type": "string" + "agentVersion": { + "type": "string", + "description": "The agent version." }, - "location": { - "description": "The location of the linked resource.", - "type": "string" + "installMethod": { + "$ref": "#/definitions/DatadogInstallMethod" + }, + "logsAgent": { + "$ref": "#/definitions/DatadogLogsAgent" } } }, - "LinkedResourceListResponse": { - "description": "Response of a list operation.", + "DatadogInstallMethod": { "type": "object", "properties": { - "value": { - "description": "Results of a list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/LinkedResource" - } + "tool": { + "type": "string", + "description": "The tool." }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "toolVersion": { + "type": "string", + "description": "The tool version." + }, + "installerVersion": { + "type": "string", + "description": "The installer version." } } }, - "MonitoredResource": { - "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", + "DatadogLogsAgent": { "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" + "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." }, - "sendingLogs": { - "description": "Flag indicating if resource is sending logs to Datadog.", - "type": "boolean" + "sku": { + "$ref": "#/definitions/ResourceSku" }, - "reasonForLogsStatus": { - "description": "Reason for why the resource is sending logs (or why it is not sending).", - "type": "string" + "identity": { + "$ref": "#/definitions/IdentityProperties" } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, - "MonitoredResourceListResponse": { - "description": "Response of a list operation.", + "DatadogMonitorResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogMonitorResource items on this page", "items": { - "$ref": "#/definitions/MonitoredResource" + "$ref": "#/definitions/DatadogMonitorResource" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "BillingInfoResponse": { - "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "DatadogMonitorResourceUpdateParameters": { "type": "object", + "description": "The parameters for a PATCH request to a monitor resource.", "properties": { - "marketplaceSaasInfo": { - "description": "Marketplace Subscription details", - "$ref": "#/definitions/MarketplaceSaaSInfo" + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties", + "description": "The set of properties that can be update in a PATCH request to a monitor resource." }, - "partnerBillingEntity": { - "description": "Partner Billing Entity details: Organization Info", - "$ref": "#/definitions/PartnerBillingEntity" + "tags": { + "type": "object", + "description": "The new tags of the monitor resource.", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" } } }, - "MarketplaceSaaSInfo": { - "description": "Marketplace SAAS Info of the resource.", + "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": { - "marketplaceSubscriptionId": { - "description": "Marketplace Subscription Id. This is a GUID-formatted string.", - "type": "string" + "name": { + "type": "string", + "description": "Name of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "marketplaceName": { - "description": "Marketplace Subscription Details: SAAS Name", - "type": "string" + "id": { + "type": "string", + "description": "Id of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "marketplaceStatus": { - "description": "Marketplace Subscription Details: SaaS Subscription Status", - "type": "string" + "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 }, - "billedAzureSubscriptionId": { - "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into.", - "type": "string" + "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 }, - "subscribed": { - "description": "Flag specifying if the Marketplace status is subscribed or not.", - "type": "boolean" + "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." } } }, - "PartnerBillingEntity": { - "description": "Partner Billing details associated with the resource.", + "DatadogSetPasswordLink": { "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", + "setPasswordLink": { "type": "string" } } }, - "MonitoredSubscription": { - "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", + "DatadogSingleSignOnProperties": { "type": "object", "properties": { - "subscriptionId": { - "description": "The subscriptionId to be monitored.", - "required": [ - "subscriptionId" - ], - "type": "string" + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, - "status": { - "description": "The state of monitoring.", - "enum": [ - "InProgress", - "Active", - "Failed", - "Deleting" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "Status" - }, - "type": "string" + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates", + "description": "Various states of the SSO resource" }, - "error": { - "description": "The reason of not monitoring the subscription.", - "type": "string" + "enterpriseAppId": { + "type": "string", + "description": "The Id of the Enterprise App used for Single sign-on." }, - "tagRules": { - "$ref": "#/definitions/MonitoringTagRulesProperties" + "singleSignOnUrl": { + "type": "string", + "description": "The login URL specific to this Datadog Organization.", + "readOnly": true } } }, - "SubscriptionList": { - "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "DatadogSingleSignOnResource": { "type": "object", + "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", "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.", + "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/MonitoredSubscription" + "$ref": "#/definitions/DatadogSingleSignOnResource" } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "MonitoredSubscriptionProperties": { - "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "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": { - "description": "Name of the monitored subscription resource.", "type": "string", - "readOnly": true + "description": "The name (also known as the key) of the tag." }, - "id": { - "description": "The id of the monitored subscription resource.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type of the monitored subscription resource.", + "value": { "type": "string", - "readOnly": true + "description": "The value of the tag." }, - "properties": { - "$ref": "#/definitions/SubscriptionList" + "action": { + "$ref": "#/definitions/TagAction", + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion." } } }, - "MonitoredSubscriptionPropertiesList": { + "IdentityProperties": { "type": "object", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } + "principalId": { + "type": "string", + "description": "The identity ID.", + "readOnly": true }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "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'." } } }, - "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" - } + "LiftrResourceCategories": { + "type": "string", + "enum": [ + "Unknown", + "MonitorLogs" + ], + "x-ms-enum": { + "name": "LiftrResourceCategories", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "MonitorLogs", + "value": "MonitorLogs" + } + ] } }, - "OperationResult": { - "description": "A Microsoft.Datadog REST API operation.", + "LinkedResource": { "type": "object", + "description": "The definition of a linked resource.", "properties": { - "name": { - "description": "Operation name, i.e., {provider}/{resource}/{operation}.", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationDisplay" + "id": { + "type": "string", + "description": "The ARM id of the linked resource." }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" + "location": { + "type": "string", + "description": "The location of the linked resource." } } }, - "OperationListResult": { - "description": "Result of GET request to list the Microsoft.Datadog operations.", + "LinkedResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "List of operations supported by the Microsoft.Datadog provider.", "type": "array", + "description": "The LinkedResource items on this page", "items": { - "$ref": "#/definitions/OperationResult" + "$ref": "#/definitions/LinkedResource" } }, "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } - }, - "ResourceSku": { + }, "required": [ - "name" - ], + "value" + ] + }, + "LogRules": { "type": "object", + "description": "Set of rules for sending logs for the Monitor resource.", "properties": { - "name": { - "description": "Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'.", - "type": "string" + "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" + } } } }, - "ProvisioningState": { - "enum": [ - "Accepted", - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Canceled", - "Deleted", - "NotSpecified" - ], + "ManagedIdentityTypes": { "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "ProvisioningState" - }, - "readOnly": true - }, - "MonitoringStatus": { - "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", "enum": [ - "Enabled", - "Disabled" + "SystemAssigned", + "UserAssigned" ], - "default": "Enabled", - "type": "string", "x-ms-enum": { + "name": "ManagedIdentityTypes", "modelAsString": true, - "name": "MonitoringStatus" + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + } + ] } }, - "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.", + "MarketplaceSaaSInfo": { "type": "object", + "description": "Marketplace SAAS Info of the resource.", "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.", + "marketplaceSubscriptionId": { "type": "string", - "x-ms-mutability": [ - "create" - ] + "description": "Marketplace Subscription Id. This is a GUID-formatted string." }, - "apiKey": { - "description": "Api key associated to the Datadog organization.", + "marketplaceName": { "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true + "description": "Marketplace Subscription Details: SAAS Name" }, - "applicationKey": { - "description": "Application key associated to the Datadog organization.", + "marketplaceStatus": { "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true + "description": "Marketplace Subscription Details: SaaS Subscription Status" }, - "enterpriseAppId": { - "description": "The Id of the Enterprise App used for Single sign on.", + "billedAzureSubscriptionId": { "type": "string", - "x-ms-mutability": [ - "create" - ] + "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into." }, - "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" + "subscribed": { + "type": "boolean", + "description": "Flag specifying if the Marketplace status is subscribed or not." } } }, - "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": { + "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": [ - "Unknown", - "MonitorLogs" + "Provisioning", + "Active", + "Suspended", + "Unsubscribed" ], - "type": "string", "x-ms-enum": { + "name": "MarketplaceSubscriptionStatus", "modelAsString": true, - "name": "LiftrResourceCategories" - }, - "readOnly": 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": { - "description": "Properties specific to the monitor resource.", "type": "object", + "description": "Properties specific to the monitor resource.", "properties": { "provisioningState": { - "$ref": "#/definitions/ProvisioningState" + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, "monitoringStatus": { - "$ref": "#/definitions/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" + "$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" + "$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" + "$ref": "#/definitions/UserInfo", + "description": "Includes name, email and optionally, phone number. User Information can't be null." }, "liftrResourceCategory": { - "$ref": "#/definitions/LiftrResourceCategories" + "$ref": "#/definitions/LiftrResourceCategories", + "readOnly": true }, "liftrResourcePreference": { - "description": "The priority of the resource.", - "format": "int32", "type": "integer", + "format": "int32", + "description": "The priority of the resource.", "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": { + "MonitorUpdateProperties": { "type": "object", + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", "properties": { - "principalId": { - "description": "The identity ID.", - "type": "string", - "readOnly": true - }, - "tenantId": { - "description": "The tenant ID of resource.", + "monitoringStatus": { "type": "string", - "readOnly": true + "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" + } + ] + } }, - "type": { - "$ref": "#/definitions/ManagedIdentityTypes" + "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." } } }, - "DatadogMonitorResource": { - "required": [ - "location" - ], + "MonitoredResource": { "type": "object", - "x-ms-azure-resource": true, + "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", "properties": { "id": { - "description": "ARM id of the monitor resource.", "type": "string", - "readOnly": true + "description": "The ARM id of the resource." }, - "name": { - "description": "Name of the monitor resource.", - "type": "string", - "readOnly": true + "sendingMetrics": { + "type": "boolean", + "description": "Flag indicating if resource is sending metrics to Datadog." }, - "type": { - "description": "The type of the monitor resource.", + "reasonForMetricsStatus": { "type": "string", - "readOnly": true - }, - "sku": { - "$ref": "#/definitions/ResourceSku" - }, - "properties": { - "$ref": "#/definitions/MonitorProperties" - }, - "identity": { - "$ref": "#/definitions/IdentityProperties" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "description": "Reason for why the resource is sending metrics (or why it is not sending)." }, - "location": { - "type": "string" + "sendingLogs": { + "type": "boolean", + "description": "Flag indicating if resource is sending logs to Datadog." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true + "reasonForLogsStatus": { + "type": "string", + "description": "Reason for why the resource is sending logs (or why it is not sending)." } } }, - "DatadogMonitorResourceListResponse": { - "description": "Response of a list operation.", + "MonitoredResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The MonitoredResource items on this page", "items": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/MonitoredResource" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "MonitorUpdateProperties": { - "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "MonitoredSubscription": { "type": "object", + "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", "properties": { - "monitoringStatus": { - "$ref": "#/definitions/MonitoringStatus" + "subscriptionId": { + "type": "string", + "description": "The subscriptionId to be monitored." }, - "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" + "status": { + "$ref": "#/definitions/Status", + "description": "The state of monitoring." }, - "tags": { - "description": "The new tags of the monitor resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "error": { + "type": "string", + "description": "The reason of not monitoring the subscription." }, - "sku": { - "$ref": "#/definitions/ResourceSku" + "tagRules": { + "$ref": "#/definitions/MonitoringTagRulesProperties", + "description": "Definition of the properties for a TagRules resource." } } }, - "DatadogSetPasswordLink": { + "MonitoredSubscriptionProperties": { "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", "properties": { - "setPasswordLink": { - "type": "string" + "properties": { + "$ref": "#/definitions/SubscriptionList", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource." } - } - }, - "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" + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } - } + ] }, - "LogRules": { - "description": "Set of rules for sending logs for the Monitor resource.", + "MonitoredSubscriptionPropertiesList": { "type": "object", + "description": "Paged collection of MonitoredSubscriptionProperties items", "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.", + "value": { "type": "array", + "description": "The MonitoredSubscriptionProperties items on this page", "items": { - "$ref": "#/definitions/FilteringTag" + "$ref": "#/definitions/MonitoredSubscriptionProperties" } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "MetricRules": { - "description": "Set of rules for sending metrics for the Monitor resource.", + "MonitoringTagRules": { "type": "object", + "description": "Capture logs and metrics of Azure resources based on ARM tags.", "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.", + "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/FilteringTag" + "$ref": "#/definitions/MonitoringTagRules" } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "MonitoringTagRulesProperties": { - "description": "Definition of the properties for a TagRules resource.", "type": "object", + "description": "Definition of the properties for a TagRules resource.", "properties": { "provisioningState": { - "$ref": "#/definitions/ProvisioningState" + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, "logRules": { - "$ref": "#/definitions/LogRules" + "$ref": "#/definitions/LogRules", + "description": "Set of rules for sending logs for the Monitor resource." }, "metricRules": { - "$ref": "#/definitions/MetricRules" + "$ref": "#/definitions/MetricRules", + "description": "Set of rules for sending metrics for the Monitor resource." }, "automuting": { - "description": "Configuration to enable/disable auto-muting flag", - "type": "boolean" + "type": "boolean", + "description": "Configuration to enable/disable auto-muting flag" }, "customMetrics": { - "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent.", - "type": "boolean" + "type": "boolean", + "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent." } } }, - "MonitoringTagRules": { - "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "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", - "x-ms-azure-resource": true, + "description": "Represents the display information for an operation.", "properties": { - "name": { - "description": "Name of the rule set.", + "provider": { "type": "string", - "readOnly": true + "description": "The service provider: Microsoft.Datadog." }, - "id": { - "description": "The id of the rule set.", + "resource": { "type": "string", - "readOnly": true + "description": "The resource on which the operation is performed." }, - "type": { - "description": "The type of the rule set.", + "operation": { "type": "string", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/MonitoringTagRulesProperties" + "description": "The type of operation: create, update, delete, etc." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true + "description": { + "type": "string", + "description": "A localized description of the operation." } } }, - "MonitoringTagRulesListResponse": { - "description": "Response of a list operation.", + "OperationListResult": { "type": "object", + "description": "Represents a paginated list of operation results.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The list of operations.", "items": { - "$ref": "#/definitions/MonitoringTagRules" + "$ref": "#/definitions/OperationResult" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "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", + "description": "Represents the SKU of a resource.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU." + } + }, + "required": [ + "name" + ] + }, "SingleSignOnStates": { + "type": "string", "description": "Various states of the SSO resource", "enum": [ "Initial", @@ -2558,94 +2821,126 @@ "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, - "name": "SingleSignOnStates" + "values": [ + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Deleting", + "value": "Deleting" + } + ] } }, - "DatadogSingleSignOnProperties": { + "SubscriptionList": { "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", "properties": { - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "singleSignOnState": { - "$ref": "#/definitions/SingleSignOnStates" - }, - "enterpriseAppId": { - "description": "The Id of the Enterprise App used for Single sign-on.", - "type": "string" + "operation": { + "$ref": "#/definitions/Operation", + "description": "The operation for the patch on the resource.", + "x-ms-mutability": [ + "update", + "create" + ] }, - "singleSignOnUrl": { - "description": "The login URL specific to this Datadog Organization.", - "type": "string", - "readOnly": true + "monitoredSubscriptionList": { + "type": "array", + "description": "List of subscriptions and the state of the monitoring.", + "items": { + "$ref": "#/definitions/MonitoredSubscription" + }, + "x-ms-identifiers": [] } } }, - "DatadogSingleSignOnResource": { + "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", - "x-ms-azure-resource": true, + "description": "Includes name, email and optionally, phone number. User Information can't be null.", "properties": { - "id": { - "description": "ARM id of the resource.", - "type": "string", - "readOnly": true - }, "name": { - "description": "Name of the configuration.", "type": "string", - "readOnly": true + "description": "Name of the user", + "maxLength": 50 }, - "type": { - "description": "The type of the resource.", + "emailAddress": { "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" - } + "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,}$" }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "phoneNumber": { + "type": "string", + "description": "Phone number of the user used by Datadog for contacting them if needed", + "maxLength": 40 } } } }, - "parameters": { - "MonitorNameParameter": { - "in": "path", - "name": "monitorName", - "description": "Monitor resource name", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatadogOrganizationId": { - "in": "query", - "name": "datadogOrganizationId", - "description": "Datadog Organization Id", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json index 31ffe3fd95b1..a0a653ae2104 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json @@ -1,18 +1,20 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "createdBy": "john@example.com", "name": "", - "key": "1111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:20:30" + "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/2023-10-20/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json index b1abdec3623a..03d9a2932fdc 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json @@ -1,29 +1,31 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "createdBy": "john@example.com", "name": "", - "key": "1111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:20:30" + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" }, { - "createdBy": "jane@example.com", "name": "", - "key": "2111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:19:53" + "created": "2019-04-05 09:19:53", + "createdBy": "jane@example.com", + "key": "2111111111111111aaaaaaaaaaaaaaaa" } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Monitors_ListApiKeys", + "title": "Monitors_ListApiKeys" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json index 10de586d7ea2..dd343240d845 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json @@ -1,14 +1,16 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { "key": "1111111111111111aaaaaaaaaaaaaaaa" - } + }, + "monitorName": "myMonitor", + "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/2023-10-20/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json index d93a0e44dae7..82fa74dcc8f4 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json @@ -1,26 +1,28 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "marketplaceSaasInfo": { - "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", "marketplaceName": "MP_RESOURCE", "marketplaceStatus": "Status", - "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", "subscribed": true }, "partnerBillingEntity": { - "id": "1234567890", "name": "datadogOrganizationName", + "id": "1234567890", "partnerEntityUri": "https://example.com" } } } - } + }, + "operationId": "BillingInfo_Get", + "title": "BillingInfo_Get" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json index 9d34c4551ec1..616ef3ccb642 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json @@ -1,8 +1,8 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "datadogOrganizationId": "00000000-0000-0000-0000" + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,5 +13,7 @@ } } } - } + }, + "operationId": "CreationSupported_Get", + "title": "CreationSupported_Get" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json index 1f39298cfd22..e7a8339a82df 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json @@ -1,12 +1,13 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "datadogOrganizationId": "00000000-0000-0000-0000" + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { "properties": { @@ -14,9 +15,10 @@ "creationSupported": true } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "CreationSupported_List", + "title": "CreationSupported_List" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json index dbffd1b67e31..a44374045838 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json @@ -1,13 +1,14 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { "name": "vm1", @@ -22,9 +23,9 @@ "meta": { "agentVersion": "7.19.2", "installMethod": { + "installerVersion": "install_script-1.0.0", "tool": "install_script", - "toolVersion": "install_script", - "installerVersion": "install_script-1.0.0" + "toolVersion": "install_script" }, "logsAgent": { "transport": "" @@ -44,18 +45,19 @@ "meta": { "agentVersion": "7.18.1", "installMethod": { + "installerVersion": "install_script-1.0.0", "tool": "install_script", - "toolVersion": "install_script", - "installerVersion": "install_script-1.0.0" + "toolVersion": "install_script" }, "logsAgent": { "transport": "HTTP" } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Monitors_ListHosts", + "title": "Monitors_ListHosts" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json index 396ed0d52571..7fe429c0a7d0 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -15,5 +15,7 @@ ] } } - } + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json index 5de8c551fde6..c578df5076e6 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json @@ -1,30 +1,32 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "body": { "properties": { "accepted": true } - } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", "name": "default", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", "properties": { - "publisher": "pubid1", - "product": "offid1", - "plan": "planid1", + "accepted": true, "licenseTextLink": "test.licenseLink1", + "plan": "planid1", "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", "retrieveDatetime": "2017-08-15T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": true + "signature": "ASDFSDAFWEFASDGWERLWER" } } } - } + }, + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "title": "MarketplaceAgreements_CreateOrUpdate" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json index 33b6e0059857..0433ea7477f1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json @@ -6,40 +6,42 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", "name": "planid1", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", "properties": { - "publisher": "pubid1", - "product": "offid1", - "plan": "planid1", + "accepted": false, "licenseTextLink": "test.licenseLink1", + "plan": "planid1", "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", "retrieveDatetime": "2017-08-15T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": false + "signature": "ASDFSDAFWEFASDGWERLWER" } }, { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", "name": "planid2", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", "properties": { - "publisher": "pubid2", - "product": "offid2", - "plan": "planid2", + "accepted": false, "licenseTextLink": "test.licenseLin2k", + "plan": "planid2", "privacyPolicyLink": "test.privacyPolicyLink2", + "product": "offid2", + "publisher": "pubid2", "retrieveDatetime": "2017-08-14T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": false + "signature": "ASDFSDAFWEFASDGWERLWER" } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "MarketplaceAgreements_List", + "title": "MarketplaceAgreements_List" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json index 5ea2daf0f691..55f60b74f95a 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,13 +11,15 @@ "value": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", - "sendingMetrics": true, + "reasonForLogsStatus": "CapturedByRules", "reasonForMetricsStatus": "CapturedByRules", "sendingLogs": true, - "reasonForLogsStatus": "CapturedByRules" + "sendingMetrics": true } ] } } - } + }, + "operationId": "Monitors_ListMonitoredResources", + "title": "Monitors_ListMonitoredResources" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json index d916c76d79aa..1887d3d37643 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -1,132 +1,132 @@ { "parameters": { "api-version": "2023-10-20", - "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", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } - ] + ], + "operation": "AddBegin" } - } + }, + "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/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -136,62 +136,62 @@ "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", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -203,5 +203,7 @@ "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/2023-10-20/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json index 5544af4b4279..15a1e06c11c8 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } + }, + "operationId": "MonitoredSubscriptions_Delete", + "title": "Monitors_DeleteMonitoredSubscriptions" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json index 81f77fff65d8..6b8c9e5cf04b 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json @@ -1,76 +1,78 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "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/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] } } } - } + }, + "operationId": "MonitoredSubscriptions_Get", + "title": "Monitors_GetMonitoredSubscriptions" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json index b2938a92cb20..c15fff724ded 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,62 +11,62 @@ "value": [ { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -75,5 +75,7 @@ ] } } - } + }, + "operationId": "MonitoredSubscriptions_List", + "title": "Monitors_GetMonitoredSubscriptions" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json index d1f3dbc99903..9ec055e49d4a 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json @@ -1,132 +1,132 @@ { "parameters": { "api-version": "2023-10-20", - "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", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } - ] + ], + "operation": "AddComplete" } - } + }, + "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/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -138,5 +138,7 @@ "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/2023-10-20/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json index 856d235af48d..62b8fd2a1fb5 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json @@ -1,86 +1,88 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { - "sku": { - "name": "free_Monthly" - }, + "location": "West US", "properties": { - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", "id": "myOrg123", "linkingAuthCode": "someAuthCode", - "linkingClientId": "00000000-0000-0000-0000-000000000000", - "enterpriseAppId": "00000000-0000-0000-0000-000000000000", - "cspm": false + "linkingClientId": "00000000-0000-0000-0000-000000000000" }, + "monitoringStatus": "Enabled", "userInfo": { "name": "Alice", "emailAddress": "alice@microsoft.com", "phoneNumber": "123-456-7890" } }, + "sku": { + "name": "free_Monthly" + }, "tags": { "Environment": "Dev" - }, - "location": "West US" - } + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" }, "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" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Accepted", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", "id": "myOrg123" }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } + }, + "operationId": "Monitors_Create", + "title": "Monitors_Create" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json index 4ededbbaf3da..df382cb7ee29 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ } }, "204": {} - } + }, + "operationId": "Monitors_Delete", + "title": "Monitors_Delete" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json index a4ebdca2dc26..d58714f86882 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json @@ -1,35 +1,37 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null, - "cspm": false + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } + }, + "operationId": "Monitors_Get", + "title": "Monitors_Get" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json index ef502196ea76..abb030a27de4 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json @@ -1,38 +1,40 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null, - "cspm": false + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } ] } } - } + }, + "operationId": "Monitors_List", + "title": "Monitors_List" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json index 8a2c5f9faa74..9db4d603a6a1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } ] } } - } + }, + "operationId": "Monitors_ListByResourceGroup", + "title": "Monitors_ListByResourceGroup" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json index 141b34324a73..9d0d0218b1b1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json @@ -1,9 +1,6 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { "properties": { "monitoringStatus": "Enabled" @@ -11,59 +8,64 @@ "tags": { "Environment": "Dev" } - } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" }, "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" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Accepted", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", "id": "myOrg123" }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } + }, + "operationId": "Monitors_Update", + "title": "Monitors_Update" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json index 2e990c81387c..86287ce46762 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json @@ -5,19 +5,21 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { "name": "Microsoft.Datadog/monitors/write", "display": { - "provider": "Microsoft.Datadog", - "resource": "monitors", + "description": "Write monitors resource", "operation": "write", - "description": "Write monitors resource" + "provider": "Microsoft.Datadog", + "resource": "monitors" } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Operations_List", + "title": "Operations_List" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json index fa608320066a..49452066f46f 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,5 +11,7 @@ "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" } } - } + }, + "operationId": "Monitors_RefreshSetPasswordLink", + "title": "Monitors_RefreshSetPasswordLink" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json index 1c20a0ee7c14..438d7dd7836e 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -1,16 +1,16 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "configurationName": "default", "body": { "properties": { - "singleSignOnState": "Enable", - "enterpriseAppId": "00000000-0000-0000-0000-000000000000" + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable" } - } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -18,8 +18,8 @@ "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", + "singleSignOnState": "Enable", "singleSignOnUrl": null } } @@ -29,11 +29,13 @@ "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", + "singleSignOnState": "Enable", "singleSignOnUrl": null } } } - } + }, + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "title": "SingleSignOnConfigurations_CreateOrUpdate" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json index 2a8756907749..93c8ddb17135 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -12,11 +12,13 @@ "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", + "singleSignOnState": "Enable", "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" } } } - } + }, + "operationId": "SingleSignOnConfigurations_Get", + "title": "SingleSignOnConfigurations_Get" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json index 502b4f521872..0f21f413f3f7 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,13 +13,15 @@ "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", + "singleSignOnState": "Enable", "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" } } ] } } - } + }, + "operationId": "SingleSignOnConfigurations_List", + "title": "SingleSignOnConfigurations_List" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json index 814016d40a74..afce76c6aaa0 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json @@ -1,66 +1,68 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "ruleSetName": "default", "body": { "properties": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } - } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "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/tagRules/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": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } } - } + }, + "operationId": "TagRules_CreateOrUpdate", + "title": "TagRules_CreateOrUpdate" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json index ede2f9fd56c0..bf5f1bb0db37 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", "monitorName": "myMonitor", - "ruleSetName": "default" + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "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/tagRules/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": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } } - } + }, + "operationId": "TagRules_Get", + "title": "TagRules_Get" } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json index 0b2b359807cb..3d7fcf30e39c 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,34 +11,36 @@ "value": [ { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/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": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] } } - } + }, + "operationId": "TagRules_List", + "title": "TagRules_List" }