To associate a Cross Connect with your VDC and the configured private LAN, you can perform the following API calls:
curl --location
--request PUT 'https://api.ionos.com/cloudapi/v6/datacenters/{datacenter_UUID}/lans/2' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <auth-token>' \
--data '{
"properties": {
"pcc": "2e136690-1169-424f-ac4e-ead3fc02292b"
}
}'
{
"id": "2",
"type": "lan",
"href": "https://api.ionos.com/cloudapi/v6/datacenters/{datacenter_UUID}/lans/2",
"metadata": {
"etag": "d0f9c52b979bfe779e9368ca303bab88",
"createdDate": "2023-09-11T12:00:35Z",
"createdBy": "xyz@ionos.com",
"createdByUserId": "0ea7c8-fd97-48ce-a375-6b2c38",
"lastModifiedDate": "2023-09-20T11:48:03Z",
"lastModifiedBy": "xyz@ionos.com",
"lastModifiedByUserId": "0ea7c8-fd97-48ce-a375-6398fb",
"state": "BUSY"
},
"properties": {
"name": "LANCC",
"ipFailover": [],
"pcc": "2690-1169-424f-ac4e-222b",
"ipv6CidrBlock": null,
"public": false
},
"entities": {
"nics": {
"id": "2/nics",
"type": "collection",
"href": "https://api.ionos.com/cloudapi/v6/datacenters/{datacenter_UUID}/lans/2/nics"
}
}
}