このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。
App Builder is not supported for your selected
Datadog site (
).
Use the Make request action to make a custom request to an HTTP endpoint. You can control the request method and its contents, how it is authenticated and processed, and how it should respond to scenarios like expired certificates or redirects. If you need to add Datadog IP address ranges to your allowlist so that the HTTP action works as expected, use the IPs listed in the webhooks
object. See the IP Ranges API for details.
To add an HTTP request:
- In your app, under Queries, click + (plus) and search for
HTTP
. - Select the Make request action to add it to your app.
Specify the request method and any necessary authentication. Read the sections below for further information about the available configuration options.
Authentication
If you need to authenticate your request, use the action’s Connection to configure the authentication method. You can either select a preconfigured connection from the dropdown, or create a connection.
Create an AWS connection
- In the Connection section, click the plus icon (+).
- Select AWS.
- Enter a Connection Name, Account ID, and AWS Role Name.
- Click Create.
Create an Azure connection
- In the Connection section, click the plus icon (+).
- Select Azure.
- Enter a Connection Name, Tenant ID, Client ID, and Client Secret.
- Optionally, enter the Custom Scope to be requested from Microsoft when acquiring an OAuth 2 access token. A resource’s scope is constructed using the identifier URI for the resource and
.default
, separated by a forward slash (/
). For example, {identifierURI}/.default
. For more information, see the Microsoft documentation on .default scope. - Click Create.
Create an HTTP token authentication connection
The Token Auth connection uses a bearer token to authenticate the HTTP request.
- In the Connection section, click the plus icon (+).
- Select HTTP.
- Enter a Connection Name.
- Enter the Base URL for authentication.
- For Type, ensure that Datadog is selected.
- From the Authentication Type dropdown, select Token Auth.
- Enter a Token Name and Token Value. You can enter multiple tokens. To reference your token in a header, parameter, or the request body, use the syntax
{{ secretTokenName }}
. - Optionally, add additional Request Headers, URL parameters and a Body to your request.
- Click Create.
Create an HTTP basic authentication connection
The Basic Auth connection uses an authorization header with a username and password to authenticate the HTTP request.
- In the Connection section, click the plus icon (+).
- Select HTTP.
- Enter a Connection Name.
- Enter the Base URL for authentication.
- For Type, ensure that Datadog is selected.
- From the Authentication Type dropdown, select Basic Auth.
- Enter a Username and Password. The required authorization request header is automatically populated using your username and password.
- Click Create.
Create a 2 Step HTTP authentication connection
The HTTP 2 step connection allows you to make a preliminary request to retrieve an access token with which to authenticate the HTTP request. This is useful for authenticating JSON Web Token (JWT) and OAuth applications.
- In the Connection section, click the plus icon (+).
- Select HTTP.
- Enter a Connection Name.
- Enter the Base URL for authentication.
- For Type, ensure that Datadog is selected.
- From the Authentication Type dropdown, select 2 Step Auth.
Configure the preliminary access token query:
- From the Secret Type dropdown, select Token Auth.
- Enter a Token Name and Token Value
- Enter the Request URL and specify the type of request as either GET or POST.
- Optionally, add additional Request Headers, URL parameters and a Body to the request.
Get the access token from the response:
- Under Variable Path to Access Token, enter the path to the access token in the response. This is the path through which your access token is returned after making the authentication call. For example, if the access token is returned as the body of the access request, use
body
. If the access token is returned in a property called token
of the response body
, use body.token
. Paths are case sensitive. - Optionally, enter a Refresh Interval. This is the duration until the access token expires, specified in seconds. When the token expires, the connection automatically requests a new access token. Setting an interval of
0
disables token refresh.
Use your retrieved token to authenticate your connection:
- Under Request Detail, enter Request Headers, URL parameters and a Body to complete your request using the retrieved access token.
- Click Create.
Configure the preliminary authentication query:
- From the Secret Type dropdown, select Basic Auth.
- Enter a Username and Password. The Request Headers section is automatically populated using your username and password.
Configure the authentication request:
- Enter the Request URL and specify the type of request as either GET or POST.
- Optionally, add additional Request Headers, URL parameters and a Body to the request.
Get the access token from the response:
- Under Variable Path to Access Token, enter the path to the access token in the response. This is the path through which your access token is returned after making the authentication call. For example, if the access token is returned as the body of the access request, use
body
. If the access token is returned in a property called token
of the response body
, use body.token
. Paths are case sensitive. - Optionally, enter a Refresh Interval. This is the duration until the access token expires, specified in seconds. When the token expires, the connection automatically requests a new access token. Setting an interval of
0
disables token refresh.
Use your retrieved token to authenticate your connection:
- Under Request Detail, enter Request Headers, URL parameters and a Body to complete your request using the retrieved access token.
- Click Create.
Create an HTTP mTLS connection
The Mutual TLS (mTLS) Auth connection allows you to use a private key and TLS certificate to authenticate the HTTP request.
The client certificate (.crt
, .pem
) and private key (.key
, .pem
) must use the PEM format.
- In the Connection section, click the plus icon (+).
- Select HTTP.
- Enter a Connection Name.
- Enter the Base URL for authentication.
- For Type, ensure that Datadog is selected.
- From the Authentication Type dropdown, select mTLS Auth.
- Click Upload File to upload your Private Key.
- Click Upload File to upload your Certificate.
- Click Create.
A URL and request method are required for your request. Optionally, you can enter:
- URL parameters
- headers
- the content type
- a request body
- cookies
You can also select whether you want to allow expired certificates, or follow redirects.
Response options
Under Error on Status, enter a comma-delineated list of any status codes on which to return an error. Use the Response Parsing dropdown to override the default response parsing method inferred from the headers, and Response Encoding if the target server specifies the wrong encoding in its response headers.
Private actions
Join the Beta!
Private Actions are in beta. Use this form to request access today.
Request AccessYou can use a private HTTP action to interact with services hosted on your private network without exposing your services to the public internet. Private actions make use of a private action runner, which you install on a host in your network using Docker and pair with a Datadog Connection. For more information, see Private Actions.
To configure a private HTTP request:
Add an HTTP query to your app.
In the Connection section, click the plus icon (+).
Select HTTP.
Enter a Connection Name.
Enter the Base URL for the host in your private network.
For Type, ensure that Private Action Runner is selected.
From the Private Action Runner drop-down, select your private action runner.
From the Authentication Type dropdown, select an Authentication type and fill in the required fields. Private HTTP requests support the following authentication types:
For information on configuring credentials for Token authentication, see Handling Private Action Credentials.
Click Next, Confirm Access and configure access to the query.
Click Create.
Further reading
Do you have questions or feedback? Join the #app-builder channel on the Datadog Community Slack.