Skip to content

Commit 93cb9cf

Browse files
vale fix
1 parent 6472fac commit 93cb9cf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/_how-tos/connect-azure-devops-to-the-konnect-catalog-with-the-konnect-api.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export AZURE_DEVOPS_ORG_NAME="YOUR-ORG-NAME"
5858

5959
Now, configure the integration:
6060

61+
<!--vale off-->
6162
{% konnect_api_request %}
6263
url: /v1/integration-instances
6364
status_code: 201
@@ -74,9 +75,11 @@ extract_body:
7475
capture: AZUREDEVOPS_INTEGRATION_ID
7576
jq: ".id"
7677
{% endkonnect_api_request %}
78+
<!--vale on-->
7779

7880
Next, authorize the integration with your Azure DevOps PAT:
7981

82+
<!--vale off-->
8083
{% konnect_api_request %}
8184
url: /v1/integration-instances/$AZUREDEVOPS_INTEGRATION_ID/auth-credential
8285
status_code: 201
@@ -88,13 +91,15 @@ body:
8891
- name: authorization
8992
key: $AZUREDEVOPS_PAT
9093
{% endkonnect_api_request %}
94+
<!--vale on-->
9195

9296
Once authorized, resources from your Azure DevOps account are discoverable in the UI.
9397

9498
## Create a Service in Catalog
9599

96100
Create a service to map to your Azure DevOps resources:
97101

102+
<!--vale off-->
98103
{% konnect_api_request %}
99104
url: /v1/catalog-services
100105
status_code: 201
@@ -108,11 +113,13 @@ extract_body:
108113
capture: AZUREDEVOPS_SERVICE_ID
109114
jq: ".id"
110115
{% endkonnect_api_request %}
116+
<!--vale on-->
111117

112118
## List Azure DevOps resources
113119

114120
Before you map Azure DevOps resources to a service in Catalog, locate the resources that {{site.konnect_short_name}} ingests from Azure DevOps:
115121

122+
<!--vale off-->
116123
{% konnect_api_request %}
117124
url: /v1/resources?filter%5Bintegration.name%5D=azure-devops
118125
status_code: 200
@@ -123,6 +130,7 @@ extract_body:
123130
capture: AZUREDEVOPS_RESOURCE_ID
124131
jq: ".data[0].id"
125132
{% endkonnect_api_request %}
133+
<!--vale on-->
126134

127135
{:.info}
128136
> {{site.konnect_short_name}} uses the first resource in the list when you run this command. To select a different resource, replace `.data[0].id` in the `jq` filter with the index of the resource you want to use or manually specify the resource ID.
@@ -131,6 +139,7 @@ jq: ".data[0].id"
131139

132140
Now, map the Azure DevOps resource to the service:
133141

142+
<!--vale off-->
134143
{% konnect_api_request %}
135144
url: /v1/resource-mappings
136145
status_code: 201
@@ -139,13 +148,16 @@ body:
139148
service: $AZUREDEVOPS_SERVICE_ID
140149
resource: $AZUREDEVOPS_RESOURCE_ID
141150
{% endkonnect_api_request %}
151+
<!--vale on-->
142152

143153
## Validate the mapping
144154

145155
To confirm that the Azure DevOps resource is now mapped to the intended service, list the service’s mapped resources:
146156

157+
<!--vale off-->
147158
{% konnect_api_request %}
148159
url: /v1/catalog-services/$AZUREDEVOPS_SERVICE_ID/resources
149160
status_code: 200
150161
method: GET
151-
{% endkonnect_api_request %}
162+
{% endkonnect_api_request %}
163+
<!--vale on-->

0 commit comments

Comments
 (0)