GCP partner interconnect API - Only approved partners can create interconnects with type PARTNER.

491 views
Skip to first unread message

moma...@gmail.com

unread,
Oct 25, 2018, 8:22:21 AM10/25/18
to cloud-dns-discuss
Hello

I am new in GCP. I'm trying to create Partner Interconnect by using GCP rest api, and receiving the following error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid value for field 'resource.interconnectType': 'PARTNER'. Only approved partners can create interconnects with type PARTNER."
}
],
"code": 400,
"message": "Invalid value for field 'resource.interconnectType': 'PARTNER'. Only approved partners can create interconnects with type PARTNER."
}
}

My Request body is:

{
"description": "tesinterconnect",
"name": "testintrconnect",
"linkType": "LINK_TYPE_ETHERNET_10G_LR",
"interconnectType": "PARTNER",
"adminEnabled": true,
"customerName": "equinix"
}

My project is connected with official partners of GCP(Equinix) and I'm able to create Partner interconnect using GCP console.

Is there, anything is missing in my request body or I'm doing something wrong?

Thanks

mebad...@google.com

unread,
Oct 25, 2018, 4:07:45 PM10/25/18
to cloud-dns-discuss
It seems like you want to use the Interconnect *that is provided by* an existing partner. This is not the same thing as *creating a partner interconnect*. So In partner Interconnect, the partner has already created the Interconnect and you only need to create the VLAN attachment using the pairing key that you got when you were asked to use a partner's interconnect.

I would suggest you to follow the directions from here [1][2]

[1]Step 1: https://cloud.google.com/interconnect/docs/how-to/partner/requesting-connections
[2]Step 2: https://cloud.google.com/interconnect/docs/how-to/partner/creating-vlan-attachments


The problem here is that you only want to use a Partner Interconnect. But you are trying to set yourself up *as a partner* and the error message simply states that you are not approved to do so.

When using Partner Interconnect, you should only create a VLAN attachment (also called an Interconnect attachment). An Interconnect and a VLAN attachment are not the same thing; the VLAN attachment is the “usable” portion of the physical interconnect. So there was no need for you to create the interconnect itself.

rez...@gmail.com

unread,
Oct 26, 2018, 8:21:35 AM10/26/18
to cloud-dns-discuss
Hi there,

Thanks for the reply. We actually have created end to end connection successfully using GCP Interconnect via partner data center called Equinix. We did all that using GCP GUI. Now we are trying to automate all those steps using Python. We understand the steps you mentioned. However we failed to find the APIs to do each steps. We also did the same connection using AWS Directconnect using BOTO3 aPIs and if you look at the link below then you can see that they have complete set of APIs listed properly for each service.

At this point using APIs we have created 'Cloud Router', VPC Network' and we are trying to do 'Add Partner VLAN Attachment' and that is where we are having issue. We could not find the api to provide 'VLAN attachment name'. Please see the image below. Highlighted that part for which we are looking to API. Thanks in advance.

https://imgur.com/a/BsvaPEf

Regards,
Omair/Rezwan

rez...@gmail.com

unread,
Oct 26, 2018, 8:21:35 AM10/26/18
to cloud-dns-discuss

Don Johnson

unread,
Oct 26, 2018, 2:55:01 PM10/26/18
to rez...@gmail.com, cloud-dn...@googlegroups.com
Omair / Rezwan,

I believe you're looking for the InterconnectAttachment resource. The naming has evolved a bit over time, but this should be what you need.

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043

Email preferences: You received this email because you signed up for the Google Cloud DNS Discussion Google Group (cloud-dn...@googlegroups.com) to participate in discussions with other members of the Google Cloud DNS community and the Google Cloud DNS Team.
---
You received this message because you are subscribed to the Google Groups "cloud-dns-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-dns-disc...@googlegroups.com.
To post to this group, send email to cloud-dn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-dns-discuss/52087524-fddd-4aee-ac4b-08e29aaf7cbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Don Johnson

donjo...@google.com

Technical Solutions Engineer

Cloud Support Seattle


dcava...@google.com

unread,
Oct 26, 2018, 2:59:25 PM10/26/18
to cloud-dns-discuss
Hello,

The field that you need is mentioned in the Method: interconnectAttachments.patch[1] where you can link:

"partnerMetadata": {
"partnerName": string,
"interconnectName": string,
"portalUrl": string
},

to the attachment itself, where the field 'name' refers to 'VLAN attachment name'

[1] Method: interconnectAttachments.patch
- https://cloud.google.com/compute/docs/reference/rest/v1/interconnectAttachments/patch
Reply all
Reply to author
Forward
0 new messages