ApplicationInsights / Client / update_workload

update_workload#

ApplicationInsights.Client.update_workload(**kwargs)#

Adds a workload to a component. Each component can have at most five workloads.

See also: AWS API Documentation

Request Syntax

response = client.update_workload(
    ResourceGroupName='string',
    ComponentName='string',
    WorkloadId='string',
    WorkloadConfiguration={
        'WorkloadName': 'string',
        'Tier': 'CUSTOM'|'DEFAULT'|'DOT_NET_CORE'|'DOT_NET_WORKER'|'DOT_NET_WEB_TIER'|'DOT_NET_WEB'|'SQL_SERVER'|'SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP'|'MYSQL'|'POSTGRESQL'|'JAVA_JMX'|'ORACLE'|'SAP_HANA_MULTI_NODE'|'SAP_HANA_SINGLE_NODE'|'SAP_HANA_HIGH_AVAILABILITY'|'SQL_SERVER_FAILOVER_CLUSTER_INSTANCE'|'SHAREPOINT'|'ACTIVE_DIRECTORY'|'SAP_NETWEAVER_STANDARD'|'SAP_NETWEAVER_DISTRIBUTED'|'SAP_NETWEAVER_HIGH_AVAILABILITY',
        'Configuration': 'string'
    }
)
Parameters:
  • ResourceGroupName (string) –

    [REQUIRED]

    The name of the resource group.

  • ComponentName (string) –

    [REQUIRED]

    The name of the component.

  • WorkloadId (string) – The ID of the workload.

  • WorkloadConfiguration (dict) –

    [REQUIRED]

    The configuration settings of the workload. The value is the escaped JSON of the configuration.

    • WorkloadName (string) –

      The name of the workload.

    • Tier (string) –

      The configuration of the workload tier.

    • Configuration (string) –

      The configuration settings of the workload.

Return type:

dict

Returns:

Response Syntax

{
    'WorkloadId': 'string',
    'WorkloadConfiguration': {
        'WorkloadName': 'string',
        'Tier': 'CUSTOM'|'DEFAULT'|'DOT_NET_CORE'|'DOT_NET_WORKER'|'DOT_NET_WEB_TIER'|'DOT_NET_WEB'|'SQL_SERVER'|'SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP'|'MYSQL'|'POSTGRESQL'|'JAVA_JMX'|'ORACLE'|'SAP_HANA_MULTI_NODE'|'SAP_HANA_SINGLE_NODE'|'SAP_HANA_HIGH_AVAILABILITY'|'SQL_SERVER_FAILOVER_CLUSTER_INSTANCE'|'SHAREPOINT'|'ACTIVE_DIRECTORY'|'SAP_NETWEAVER_STANDARD'|'SAP_NETWEAVER_DISTRIBUTED'|'SAP_NETWEAVER_HIGH_AVAILABILITY',
        'Configuration': 'string'
    }
}

Response Structure

  • (dict) –

    • WorkloadId (string) –

      The ID of the workload.

    • WorkloadConfiguration (dict) –

      The configuration settings of the workload. The value is the escaped JSON of the configuration.

      • WorkloadName (string) –

        The name of the workload.

      • Tier (string) –

        The configuration of the workload tier.

      • Configuration (string) –

        The configuration settings of the workload.

Exceptions

  • ApplicationInsights.Client.exceptions.ResourceNotFoundException

  • ApplicationInsights.Client.exceptions.ValidationException

  • ApplicationInsights.Client.exceptions.InternalServerException