Returns a paginated list of all deployment gates for the organization.
Use page[cursor] and page[size] query parameters to paginate through results.
This endpoint requires the deployment_gates_read permission.
Arguments
Query Strings
Name
Type
Description
page[cursor]
string
Cursor for pagination. Use the meta.page.next_cursor value from the previous response.
page[size]
integer
Number of results per page. Defaults to 50. Must be between 1 and 1000.
"""
Get all deployment gates returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.deployment_gates_apiimportDeploymentGatesApiconfiguration=Configuration()configuration.unstable_operations["list_deployment_gates"]=TruewithApiClient(configuration)asapi_client:api_instance=DeploymentGatesApi(api_client)response=api_instance.list_deployment_gates()print(response)
# Get all deployment gates returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.unstable_operations["v2.list_deployment_gates".to_sym]=trueendapi_instance=DatadogAPIClient::V2::DeploymentGatesAPI.newpapi_instance.list_deployment_gates()
// Get all deployment gates 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.ListDeploymentGates",true)apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewDeploymentGatesApi(apiClient)resp,r,err:=api.ListDeploymentGates(ctx,*datadogV2.NewListDeploymentGatesOptionalParameters())iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `DeploymentGatesApi.ListDeploymentGates`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `DeploymentGatesApi.ListDeploymentGates`:\n%s\n",responseContent)}
// Get all deployment gates returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_deployment_gates::DeploymentGatesAPI;usedatadog_api_client::datadogV2::api_deployment_gates::ListDeploymentGatesOptionalParams;#[tokio::main]asyncfnmain(){letmutconfiguration=datadog::Configuration::new();configuration.set_unstable_operation_enabled("v2.ListDeploymentGates",true);letapi=DeploymentGatesAPI::with_config(configuration);letresp=api.list_deployment_gates(ListDeploymentGatesOptionalParams::default()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* Get all deployment gates returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();configuration.unstableOperations["v2.listDeploymentGates"]=true;constapiInstance=newv2.DeploymentGatesApi(configuration);apiInstance.listDeploymentGates().then((data: v2.DeploymentGatesListResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));