azure-native.sql.ServerAdvisor
Explore with Pulumi AI
Database, Server or Elastic Pool Advisor. API Version: 2020-11-01-preview.
Example Usage
Update server advisor
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverAdvisor = new AzureNative.Sql.ServerAdvisor("serverAdvisor", new()
{
AdvisorName = "CreateIndex",
AutoExecuteStatus = AzureNative.Sql.AutoExecuteStatus.Disabled,
ResourceGroupName = "workloadinsight-demos",
ServerName = "misosisvr",
});
});
package main
import (
sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewServerAdvisor(ctx, "serverAdvisor", &sql.ServerAdvisorArgs{
AdvisorName: pulumi.String("CreateIndex"),
AutoExecuteStatus: sql.AutoExecuteStatusDisabled,
ResourceGroupName: pulumi.String("workloadinsight-demos"),
ServerName: pulumi.String("misosisvr"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.ServerAdvisor;
import com.pulumi.azurenative.sql.ServerAdvisorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serverAdvisor = new ServerAdvisor("serverAdvisor", ServerAdvisorArgs.builder()
.advisorName("CreateIndex")
.autoExecuteStatus("Disabled")
.resourceGroupName("workloadinsight-demos")
.serverName("misosisvr")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
server_advisor = azure_native.sql.ServerAdvisor("serverAdvisor",
advisor_name="CreateIndex",
auto_execute_status=azure_native.sql.AutoExecuteStatus.DISABLED,
resource_group_name="workloadinsight-demos",
server_name="misosisvr")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const serverAdvisor = new azure_native.sql.ServerAdvisor("serverAdvisor", {
advisorName: "CreateIndex",
autoExecuteStatus: azure_native.sql.AutoExecuteStatus.Disabled,
resourceGroupName: "workloadinsight-demos",
serverName: "misosisvr",
});
resources:
serverAdvisor:
type: azure-native:sql:ServerAdvisor
properties:
advisorName: CreateIndex
autoExecuteStatus: Disabled
resourceGroupName: workloadinsight-demos
serverName: misosisvr
Create ServerAdvisor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerAdvisor(name: string, args: ServerAdvisorArgs, opts?: CustomResourceOptions);
@overload
def ServerAdvisor(resource_name: str,
args: ServerAdvisorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerAdvisor(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_execute_status: Optional[AutoExecuteStatus] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
advisor_name: Optional[str] = None)
func NewServerAdvisor(ctx *Context, name string, args ServerAdvisorArgs, opts ...ResourceOption) (*ServerAdvisor, error)
public ServerAdvisor(string name, ServerAdvisorArgs args, CustomResourceOptions? opts = null)
public ServerAdvisor(String name, ServerAdvisorArgs args)
public ServerAdvisor(String name, ServerAdvisorArgs args, CustomResourceOptions options)
type: azure-native:sql:ServerAdvisor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServerAdvisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerAdvisorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerAdvisorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerAdvisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerAdvisorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serverAdvisorResource = new AzureNative.Sql.ServerAdvisor("serverAdvisorResource", new()
{
AutoExecuteStatus = "Enabled",
ResourceGroupName = "string",
ServerName = "string",
AdvisorName = "string",
});
example, err := sql.NewServerAdvisor(ctx, "serverAdvisorResource", &sql.ServerAdvisorArgs{
AutoExecuteStatus: "Enabled",
ResourceGroupName: "string",
ServerName: "string",
AdvisorName: "string",
})
var serverAdvisorResource = new ServerAdvisor("serverAdvisorResource", ServerAdvisorArgs.builder()
.autoExecuteStatus("Enabled")
.resourceGroupName("string")
.serverName("string")
.advisorName("string")
.build());
server_advisor_resource = azure_native.sql.ServerAdvisor("serverAdvisorResource",
auto_execute_status=Enabled,
resource_group_name=string,
server_name=string,
advisor_name=string)
const serverAdvisorResource = new azure_native.sql.ServerAdvisor("serverAdvisorResource", {
autoExecuteStatus: "Enabled",
resourceGroupName: "string",
serverName: "string",
advisorName: "string",
});
type: azure-native:sql:ServerAdvisor
properties:
advisorName: string
autoExecuteStatus: Enabled
resourceGroupName: string
serverName: string
ServerAdvisor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServerAdvisor resource accepts the following input properties:
- Auto
Execute Pulumi.Status Azure Native. Sql. Auto Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Advisor
Name string - The name of the Server Advisor.
- Auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Advisor
Name string - The name of the Server Advisor.
- auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- advisor
Name String - The name of the Server Advisor.
- auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name string - The name of the server.
- advisor
Name string - The name of the Server Advisor.
- auto_
execute_ Autostatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource_
group_ strname - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name str - The name of the server.
- advisor_
name str - The name of the Server Advisor.
- auto
Execute "Enabled" | "Disabled" | "Default"Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- advisor
Name String - The name of the Server Advisor.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerAdvisor resource produces the following output properties:
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status string - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- Recommended
Actions List<Pulumi.Azure Native. Sql. Outputs. Recommended Action Response> - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status string - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- Recommended
Actions []RecommendedAction Response - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status String - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- recommended
Actions List<RecommendedAction Response> - Gets the recommended actions for this advisor.
- type String
- Resource type.
- advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute stringStatus Inherited From - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Resource kind.
- last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location string
- Resource location.
- name string
- Resource name.
- recommendations
Status string - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- recommended
Actions RecommendedAction Response[] - Gets the recommended actions for this advisor.
- type string
- Resource type.
- advisor_
status str - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto_
execute_ strstatus_ inherited_ from - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- Resource kind.
- last_
checked str - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location str
- Resource location.
- name str
- Resource name.
- recommendations_
status str - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- recommended_
actions Sequence[RecommendedAction Response] - Gets the recommended actions for this advisor.
- type str
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status String - Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
- recommended
Actions List<Property Map> - Gets the recommended actions for this advisor.
- type String
- Resource type.
Supporting Types
AutoExecuteStatus, AutoExecuteStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Auto
Execute Status Enabled - Enabled
- Auto
Execute Status Disabled - Disabled
- Auto
Execute Status Default - Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- ENABLED
- Enabled
- DISABLED
- Disabled
- DEFAULT
- Default
- "Enabled"
- Enabled
- "Disabled"
- Disabled
- "Default"
- Default
RecommendedActionErrorInfoResponse, RecommendedActionErrorInfoResponseArgs
- Error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- Error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable String - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error_
code str - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is_
retryable str - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable String - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
RecommendedActionImpactRecordResponse, RecommendedActionImpactRecordResponseArgs
- Absolute
Value double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value doubleAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- Change
Value doubleRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Absolute
Value float64 - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value float64Absolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- Change
Value float64Relative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value Double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value DoubleAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value DoubleRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name String - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit String
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value numberAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value numberRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute_
value float - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change_
value_ floatabsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change_
value_ floatrelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension_
name str - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit str
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value Number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value NumberAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value NumberRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name String - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit String
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
RecommendedActionImplementationInfoResponse, RecommendedActionImplementationInfoResponseArgs
RecommendedActionMetricInfoResponse, RecommendedActionMetricInfoResponseArgs
- Metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- Unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- Value double
- Gets the value of the metric in the time interval given by this MetricInfo.
- Metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- Unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- Value float64
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time String - Gets the start time of time interval given by this MetricInfo.
- time
Grain String - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit String
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value Double
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time string - Gets the start time of time interval given by this MetricInfo.
- time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value number
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric_
name str - Gets the name of the metric. e.g., CPU, Number of Queries.
- start_
time str - Gets the start time of time interval given by this MetricInfo.
- time_
grain str - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit str
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value float
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time String - Gets the start time of time interval given by this MetricInfo.
- time
Grain String - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit String
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value Number
- Gets the value of the metric in the time interval given by this MetricInfo.
RecommendedActionResponse, RecommendedActionResponseArgs
- Details Dictionary<string, object>
- Gets additional details specific to this recommended action.
- Error
Details Pulumi.Azure Native. Sql. Inputs. Recommended Action Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- Execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- Execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- Execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- Id string
- Resource ID.
- Implementation
Details Pulumi.Azure Native. Sql. Inputs. Recommended Action Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- Is
Archived boolAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- Is
Executable boolAction - Gets if this recommended action is actionable by user
- Is
Revertable boolAction - Gets if changes applied by this recommended action can be reverted by user
- Kind string
- Resource kind.
- Last
Refresh string - Gets time when this recommended action was last refreshed.
- Linked
Objects List<string> - Gets the linked objects, if any.
- Location string
- Resource location.
- Name string
- Resource name.
- Observed
Impact List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- Recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- Revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- Revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- Score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- State
Pulumi.
Azure Native. Sql. Inputs. Recommended Action State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Metric Info Response> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- Type string
- Resource type.
- Valid
Since string - Gets the time since when this recommended action is valid.
- Details map[string]interface{}
- Gets additional details specific to this recommended action.
- Error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact []RecommendedAction Impact Record Response - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- Execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- Execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- Execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- Id string
- Resource ID.
- Implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- Is
Archived boolAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- Is
Executable boolAction - Gets if this recommended action is actionable by user
- Is
Revertable boolAction - Gets if changes applied by this recommended action can be reverted by user
- Kind string
- Resource kind.
- Last
Refresh string - Gets time when this recommended action was last refreshed.
- Linked
Objects []string - Gets the linked objects, if any.
- Location string
- Resource location.
- Name string
- Resource name.
- Observed
Impact []RecommendedAction Impact Record Response - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- Recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- Revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- Revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- Score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- State
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series []RecommendedAction Metric Info Response - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- Type string
- Resource type.
- Valid
Since string - Gets the time since when this recommended action is valid.
- details Map<String,Object>
- Gets additional details specific to this recommended action.
- error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact List<RecommendedAction Impact Record Response> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action StringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action StringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action StringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action StringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id String
- Resource ID.
- implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived BooleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable BooleanAction - Gets if this recommended action is actionable by user
- is
Revertable BooleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind String
- Resource kind.
- last
Refresh String - Gets time when this recommended action was last refreshed.
- linked
Objects List<String> - Gets the linked objects, if any.
- location String
- Resource location.
- name String
- Resource name.
- observed
Impact List<RecommendedAction Impact Record Response> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action StringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action StringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action StringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action StringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score Integer
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time
Series List<RecommendedAction Metric Info Response> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type String
- Resource type.
- valid
Since String - Gets the time since when this recommended action is valid.
- details {[key: string]: any}
- Gets additional details specific to this recommended action.
- error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact RecommendedAction Impact Record Response[] - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id string
- Resource ID.
- implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived booleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable booleanAction - Gets if this recommended action is actionable by user
- is
Revertable booleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind string
- Resource kind.
- last
Refresh string - Gets time when this recommended action was last refreshed.
- linked
Objects string[] - Gets the linked objects, if any.
- location string
- Resource location.
- name string
- Resource name.
- observed
Impact RecommendedAction Impact Record Response[] - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score number
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time
Series RecommendedAction Metric Info Response[] - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type string
- Resource type.
- valid
Since string - Gets the time since when this recommended action is valid.
- details Mapping[str, Any]
- Gets additional details specific to this recommended action.
- error_
details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated_
impact Sequence[RecommendedAction Impact Record Response] - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute_
action_ strduration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute_
action_ strinitiated_ by - Gets if approval for applying this recommended action was given by user/system.
- execute_
action_ strinitiated_ time - Gets the time when this recommended action was approved for execution.
- execute_
action_ strstart_ time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id str
- Resource ID.
- implementation_
details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is_
archived_ boolaction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is_
executable_ boolaction - Gets if this recommended action is actionable by user
- is_
revertable_ boolaction - Gets if changes applied by this recommended action can be reverted by user
- kind str
- Resource kind.
- last_
refresh str - Gets time when this recommended action was last refreshed.
- linked_
objects Sequence[str] - Gets the linked objects, if any.
- location str
- Resource location.
- name str
- Resource name.
- observed_
impact Sequence[RecommendedAction Impact Record Response] - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation_
reason str - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert_
action_ strduration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert_
action_ strinitiated_ by - Gets if approval for reverting this recommended action was given by user/system.
- revert_
action_ strinitiated_ time - Gets the time when this recommended action was approved for revert.
- revert_
action_ strstart_ time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time_
series Sequence[RecommendedAction Metric Info Response] - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type str
- Resource type.
- valid_
since str - Gets the time since when this recommended action is valid.
- details Map<Any>
- Gets additional details specific to this recommended action.
- error
Details Property Map - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact List<Property Map> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action StringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action StringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action StringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action StringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id String
- Resource ID.
- implementation
Details Property Map - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived BooleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable BooleanAction - Gets if this recommended action is actionable by user
- is
Revertable BooleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind String
- Resource kind.
- last
Refresh String - Gets time when this recommended action was last refreshed.
- linked
Objects List<String> - Gets the linked objects, if any.
- location String
- Resource location.
- name String
- Resource name.
- observed
Impact List<Property Map> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action StringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action StringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action StringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action StringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score Number
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state Property Map
- Gets the info of the current state the recommended action is in.
- time
Series List<Property Map> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type String
- Resource type.
- valid
Since String - Gets the time since when this recommended action is valid.
RecommendedActionStateInfoResponse, RecommendedActionStateInfoResponseArgs
- Action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- Current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- Last
Modified string - Gets the time when the state was last modified
- Action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- Current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- Last
Modified string - Gets the time when the state was last modified
- action
Initiated StringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value String - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified String - Gets the time when the state was last modified
- action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified string - Gets the time when the state was last modified
- action_
initiated_ strby - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current_
value str - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last_
modified str - Gets the time when the state was last modified
- action
Initiated StringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value String - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified String - Gets the time when the state was last modified
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:ServerAdvisor CreateIndex /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/CreateIndex
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0