"""
Get all Container Images returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v2.api.container_images_apiimportContainerImagesApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=ContainerImagesApi(api_client)response=api_instance.list_container_images()print(response)
# Get all Container Images returns "OK" responserequire"datadog_api_client"api_instance=DatadogAPIClient::V2::ContainerImagesAPI.newpapi_instance.list_container_images()
// Get all Container Images returns "OK" response
packagemainimport("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.NewContainerImagesApi(apiClient)resp,r,err:=api.ListContainerImages(ctx,*datadogV2.NewListContainerImagesOptionalParameters())iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `ContainerImagesApi.ListContainerImages`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `ContainerImagesApi.ListContainerImages`:\n%s\n",responseContent)}
// Get all Container Images returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_container_images::ContainerImagesAPI;usedatadog_api_client::datadogV2::api_container_images::ListContainerImagesOptionalParams;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=ContainerImagesAPI::with_config(configuration);letresp=api.list_container_images(ListContainerImagesOptionalParams::default()).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* Get all Container Images returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.ContainerImagesApi(configuration);apiInstance.listContainerImages().then((data: v2.ContainerImagesResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));