Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 798 Bytes

File metadata and controls

25 lines (20 loc) · 798 Bytes
description Automatically generated file. DO NOT MODIFY
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.security.sensor import Sensor
from msgraph_beta.generated.models.security.sensor_settings import SensorSettings
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Sensor(
	settings = SensorSettings(
		description = "dc1 settings new description",
		domain_controller_dns_names = [
			"DC1.domain1.test.local",
		],
		is_delayed_deployment_enabled = False,
	),
)

result = await graph_client.security.identities.sensors.by_sensor_id('sensor-id').patch(request_body)