Retrieve the Governance Console configuration for the organization, including whether the
Console is enabled, whether assignment notifications are enabled, and whether usage
attribution is configured.
The Governance Console configuration for an organization.
Expand All
Field
Type
Description
data [required]
object
A Governance Console configuration resource.
attributes [required]
object
The attributes of a Governance Console configuration.
assignment_notifications_enabled [required]
boolean
Whether notifications are sent to users when detections are assigned to them.
enabled [required]
boolean
Whether the Governance Console is enabled for the organization.
usage_attribution_configured [required]
boolean
Whether usage attribution is configured for the organization.
xorg_insights_enabled [required]
boolean
Whether the organization has opted in to sharing governance data with a managing org
for cross-org insights.
id [required]
string
The unique identifier of the organization the Governance Console configuration applies
to. May be the nil UUID (00000000-0000-0000-0000-000000000000) when the configuration
is not tied to a specific organization record.
"""
Get the Governance Console configuration returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.governance_console_apiimportGovernanceConsoleApiconfiguration=Configuration()configuration.unstable_operations["get_governance_config"]=TruewithApiClient(configuration)asapi_client:api_instance=GovernanceConsoleApi(api_client)response=api_instance.get_governance_config()print(response)
# Get the Governance Console configuration returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.unstable_operations["v2.get_governance_config".to_sym]=trueendapi_instance=DatadogAPIClient::V2::GovernanceConsoleAPI.newpapi_instance.get_governance_config()
// Get the Governance Console configuration returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()configuration.SetUnstableOperationEnabled("v2.GetGovernanceConfig",true)apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewGovernanceConsoleApi(apiClient)resp,r,err:=api.GetGovernanceConfig(ctx)iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `GovernanceConsoleApi.GetGovernanceConfig`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `GovernanceConsoleApi.GetGovernanceConfig`:\n%s\n",responseContent)}
// Get the Governance Console configuration returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_governance_console::GovernanceConsoleAPI;#[tokio::main]asyncfnmain(){letmutconfiguration=datadog::Configuration::new();configuration.set_unstable_operation_enabled("v2.GetGovernanceConfig",true);letapi=GovernanceConsoleAPI::with_config(configuration);letresp=api.get_governance_config().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* Get the Governance Console configuration returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();configuration.unstableOperations["v2.getGovernanceConfig"]=true;constapiInstance=newv2.GovernanceConsoleApi(configuration);apiInstance.getGovernanceConfig().then((data: v2.GovernanceConfigResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));