HTTPEndpoint spec
The basic spec for a Dapr HTTPEndpoint resource
The HTTPEndpoint
is a Dapr resource that is used to enable the invocation of non-Dapr endpoints from a Dapr application.
Format
apiVersion: dapr.io/v1alpha1
kind: HTTPEndpoint
metadata:
name: <NAME>
spec:
baseUrl: <REPLACE-WITH-BASEURL> # Required. Use "http://" or "https://" prefix.
headers: # Optional
- name: <REPLACE-WITH-A-HEADER-NAME>
value: <REPLACE-WITH-A-HEADER-VALUE>
- name: <REPLACE-WITH-A-HEADER-NAME>
secretKeyRef:
name: <REPLACE-WITH-SECRET-NAME>
key: <REPLACE-WITH-SECRET-KEY>
clientTLS:
rootCA:
secretKeyRef:
name: <REPLACE-WITH-SECRET-NAME>
key: <REPLACE-WITH-SECRET-KEY>
certificate:
secretKeyRef:
name: <REPLACE-WITH-SECRET-NAME>
key: <REPLACE-WITH-SECRET-KEY>
privateKey:
secretKeyRef:
name: <REPLACE-WITH-SECRET-NAME>
key: <REPLACE-WITH-SECRET-KEY>
scopes: # Optional
- <REPLACE-WITH-SCOPED-APPIDS>
auth: # Optional
secretStore: <REPLACE-WITH-SECRETSTORE>
Spec fields
Field | Required | Details | Example |
---|---|---|---|
baseUrl | Y | Base URL of the non-Dapr endpoint | "https://api.github.com" , "http://api.github.com" |
headers | N | HTTP request headers for service invocation | name: "Accept-Language" value: "en-US" name: "Authorization" secretKeyRef.name: "my-secret" secretKeyRef.key: "myGithubToken" |
clientTLS | N | Enables TLS authentication to an endpoint with any standard combination of root certificate, client certificate and private key |
Related links
Learn how to invoke non-Dapr endpoints.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified May 31, 2024: Merge 61e65296a85dd35c3b7040b281b7c17caffcc144 into 27b6a61b0e1b0a30ea4e4f31bea712dfec3813b3 (525f2ab)