Skip to content

Commit 4936b3e

Browse files
doc: frontend: document that X-Ms-Identity-URL HTTP header is now required during creation
1 parent 35c7428 commit 4936b3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,17 @@ curl -X GET "localhost:8443/subscriptions/00000000-0000-0000-0000-000000000000/r
7777
```
7878

7979
Create or Update a HcpOpenShiftClusterResource
80+
8081
```bash
8182
curl -X PUT "localhost:8443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dev-test-rg/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/dev-test-cluster?api-version=2024-06-10-preview" \
8283
-H "X-Ms-Arm-Resource-System-Data: {\"createdBy\": \"aro-hcp-local-testing\", \"createdByType\": \"User\", \"createdAt\": \"2024-06-06T19:26:56+00:00\"}" \
84+
-H "X-Ms-Identity-Url": https://dummyhost.identity.azure.net" \
8385
--json @cluster.json
8486
```
8587
88+
You will notice that the request contains a `X-Ms-Identity-Url` with the value `https://dummyhost.identity.azure.net`. Setting the `X-Ms-Identity-Url` HTTP header when interacting directly
89+
with the Frontend is required. However, for the environments where a real managed identities data plane does not exist the value can be any arbitrary/dummy HTTPS URL that ends in `identity.azure.net`.
90+
8691
Delete a HcpOpenShiftClusterResource
8792
```bash
8893
curl -X DELETE "localhost:8443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dev-test-rg/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/dev-test-cluster?api-version=2024-06-10-preview"

0 commit comments

Comments
 (0)