update_workload
async
¶
update_workload(
resource_group_name: ResourceGroupName,
component_name: ComponentName,
workload_configuration: WorkloadConfiguration,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
workload_id: Optional[WorkloadId] = None,
) -> UpdateWorkloadResponse
Adds a workload to a component. Each component can have at most five workloads.
Parameters:
-
resource_group_name(ResourceGroupName) –The name of the resource group.
-
component_name(ComponentName) –The name of the component.
-
workload_id(Optional[WorkloadId], default:None) –The ID of the workload.
-
workload_configuration(WorkloadConfiguration) –The configuration settings of the workload. The value is the escaped JSON of the configuration.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource does not exist in the customer account.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_insights/_services/async_application_insights.py
2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 | |