Create an agent URL configuration
POST
/api/v4/projects/{id}/cluster_agents/{agent_id}/url_configurations
Creates an agent URL configuration. You must have the Maintainer or Owner role to use this endpoint. An agent can have only one URL configuration at the time. This feature was introduced in GitLab 17.4.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
url
required
The url where the receptive agent is listening
string
client_cert
The client certificate in PEM format for mTLS
string
client_key
The client key in PEM format for mTLS
string
ca_cert
The CA certificate in PEM format for TLS validation
string
tls_host
The host name for TLS validation
string
Example generated
{ "url": "example", "client_cert": "example", "client_key": "example", "ca_cert": "example", "tls_host": "example"}Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer format: int64
agent_id
integer format: int64
url
string
public_key
string
client_cert
string
ca_cert
string
tls_host
string
Example
{ "id": 1, "agent_id": 1}Bad Request
Not Found