Resources related to the SAML configuration, such as the default roles.
attributes
object
Attributes of the role.
created_at
date-time
Creation time of the role.
modified_at
date-time
Time of last role modification.
name
string
The name of the role. The name is neither unique nor a stable identifier of the role.
receives_permissions_from
[string]
The managed role from which this role automatically inherits new permissions.
Specify one of the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role".
If empty or not specified, the role does not automatically inherit permissions from any managed role.
user_count
int64
Number of users with that role.
id
string
The unique identifier of the role.
relationships
object
Relationships of the role object returned by the API.
"""
Get a SAML configuration returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.organizations_apiimportOrganizationsApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=OrganizationsApi(api_client)response=api_instance.get_saml_configuration(saml_config_uuid="3653d3c6-0c75-11ea-ad28-fb5701eabc7d",)print(response)
# Get a SAML configuration returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::OrganizationsAPI.newpapi_instance.get_saml_configuration("3653d3c6-0c75-11ea-ad28-fb5701eabc7d")
// Get a SAML 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()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewOrganizationsApi(apiClient)resp,r,err:=api.GetSAMLConfiguration(ctx,"3653d3c6-0c75-11ea-ad28-fb5701eabc7d")iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `OrganizationsApi.GetSAMLConfiguration`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `OrganizationsApi.GetSAMLConfiguration`:\n%s\n",responseContent)}
// Get a SAML configuration returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_organizations::OrganizationsAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=OrganizationsAPI::with_config(configuration);letresp=api.get_saml_configuration("3653d3c6-0c75-11ea-ad28-fb5701eabc7d".to_string()).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="<API-KEY>"DD_APP_KEY="<APP-KEY>"cargo run
/**
* Get a SAML configuration returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.OrganizationsApi(configuration);constparams: v2.OrganizationsApiGetSAMLConfigurationRequest={samlConfigUuid:"3653d3c6-0c75-11ea-ad28-fb5701eabc7d",};apiInstance.getSAMLConfiguration(params).then((data: v2.SAMLConfigurationResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));