Work Visit API - issue EQX-161-403
Hey there, I need help! I tried to use API and create a POST REST API request to raise a Work Visit request to Equinix. but unfortunately returned the EQX-161-403 errors. Please kindly help, no idea what this error message means and how to fix this error. Here's the error message frommy PowerShell script: $workvisit = invoke-restmethod -uri "https://api.equinix.com/v1/orders/workvisit" -method POST -Headers $postParams -body $postParamsWVJson -ContentType "application/json" invoke-restmethod : {"errors":[{"code":"EQX-161-403","message":"Contacts (with userName) should be Active and Approved"}],"ticketId":"201030030XXXXXX"} Here's my PowerShell script: $postParams = @{} $postParams.Authorization="Bearer " + $token.access_token $location = invoke-restmethod -uri "https://api.equinix.com/v1/orders/workvisit/locations" -method GET -Headers $postParams -ContentType "application/json" $location2= invoke-restmethod -uri "https://api.equinix.com/v1/retrieve-orders/locations" -method GET -Headers $postParams -ContentType "application/json" $postParamsWV = ` @{"contacts" = @( @{"contactType"="ORDERING"; "userName" = "XXXX@YYY.com"}; @{"contactType"="NOTIFICATION"; "userName" = "XXXX@YYY.com"}; ); "ibxLocation"= @{"ibx" = "SAMPLE"; "cages"= @( @{"cage"="SAMPLE:00:000000"; "accountNumber" = "SAMPLE NUMBER"} )}; "serviceDetails" = @{schedule = @{startDateTime = "2020-05-10T01:00:00Z"; endDateTime = "2020-05-11T02:00:00Z" }; "visitors" =@(@{"firstName" = "John"; "lastName" = "Doe"; "company" = "NN Test"; "email" = "John.Doe@Test.com"; "mobilePhoneCountryCode" = "+81"; "mobilePhone" = "80-1111-2222";}; @{ "userName" = "DDDD@yahoo.com"} ); escortRequired = $false; openCabinet = $false; } } $postParamsWVJson = $postParamsWV|convertto-json -depth 100 $workvisit = invoke-restmethod -uri "https://api.equinix.com/v1/orders/workvisit" -method POST -Headers $postParams -body $postParamsWVJson -ContentType "application/json" Regards, AlanSolved1.8KViews0likes1Commentdelta sandbox<>prod apis
Hi, We noticed that some APIs aren't available in the sandbox but only in production of the Equinix API. Do we have a way to test this? These APIs seem to be available in the playground-zone These works on Prod but not sandbox: list userports list metros list buyer/connections For example: curl -X GET "$url/ecx/v3/l2/common/metros" -H "accept: application/json" -H "Authorization: Bearer $token" {"fault":{"faultstring":"Invalid API call as no apiproduct match found","detail":{"errorcode":"keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"}}}% curl -X GET "$url/ecx/v3/port/userport" -H "accept: application/json" -H "Authorization: Bearer $token" {"fault":{"faultstring":"Invalid API call as no apiproduct match found","detail":{"errorcode":"keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"}}}% curl -X GET "$url/ecx/v3/l2/buyer/connections" -H "accept: application/json" -H "Authorization: Bearer $token" {"fault":{"faultstring":"Invalid API call as no apiproduct match found","detail":{"errorcode":"keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"}}}%1.3KViews0likes0CommentsPower API interval queries
Hello, A few questions for API access and usage. Please can you give me the interval of query for your different levels (power/temperature/etc...). I want to configure a prob who will call your API every x minutes according to your granularity. What is the maximum query per second on the API? Did you have a limitation with token creation (quantity / over time / other)? Are there plans to have the possibility to stream data to an endpoint, I see specific endpoint like GCP/AWS/Azure but what if I want to have my own endpoint? Thanks for your answers,Solved2.8KViews0likes2CommentsNew WorkVisit validation error
We have been using the API /catalog/workvisitv1for a while now and we now have a new validation error that is causing a failure to use the API endpoint: { "error": "Unable to create access request with Equinix. Status code = 400, error = {\"errors\":[{\"code\":\"EQX-161-6119\",\"fields\":[\"\\/attachments\"],\"message\":\"Justification form is mandatory for visiting the IBX : %s. Justification is available to download as part of work visit page in Equinix Customer Portal.\",\"messageParams\":[\"CH3\"]}],\"ticketId\":\"redacted\"}" } This appears to be a new validation error. I haven't seen anything regarding changes to the published API. Do you guys know if this is a bug or a new requirement?1.8KViews0likes1CommentFilter "portName" on connection list not working
Hello, for theendpoint GET https://api.equinix.com/ecx/v3/l2/seller/connections I use it with the profileId filter and I get back many results.I go from page to page to list the connection I have on one specific port. I would like to reduce those calls using the filter portName.However the result is always empty : { "isFirstPage": true, "isLastPage": true, "totalCount": 0, "pageSize": 20, "content": [], "pageNumber": 0 } Have anyone succeeded in getting this to work ? Best regards,5KViews0likes7CommentsSmart Hands ticket api
Hello guys, I am new in using curl and I have a qeustion. How it looks the final example autharization form + get smart hands type. curl -XPOST 'https://api.equinix.com/oauth2/v1/token' -H "content-type: application/json" -d '{ "grant_type": "client_credentials", "client_id": "ABCDE12345", "client_secret": "FGHIJ67890" }' and curl -X GET "https://api.equinix.com/v1/orders/smarthands/types" -H "content-type: application/json" -H "authorization: Bearer qwErtYxxxxxxxcdefGHI" I don't understand how to combine these two example in one and why I have to use second time -H "authorization: Bearer qwErtY8zyW1abcdefGHI"Solved1.9KViews0likes1Comment[sandbox] create l2connections
Hello ! I'm trying to create l2 connection on sandbox but i have some error $ curl -X POST -H "Content-Type: application/json" "https://sandboxapi.equinix.com/ecx/v3/l2/connections" -H "Authorization: Bearer xxxxxx" -d '{ "primaryName": "test_port_crea_1", "primaryPortUUID": "a9d0254e-d856-4a53-b105-7178fede119f", "primaryVlanSTag": 601, "profileUUID": "1bef8e6b-ea90-4757-bb25-c24f9d64387c", "authorizationKey": 444111000222, "speed": 200, "speedUnit": "MB", "notifications": [ "sandboxuser@example-company.com" ], "purchaseOrderNumber": "312456323", "sellerRegion": "us-east-1", "sellerMetroCode": "SV", "namedTag": "Private" }' Returns [{"errorCode":"IC-LAYER2-400","errorMessage":"Required field","moreInfo":"","errorMessageKey":"IC-LAYER2.IC-LAYER2-400","property":"additionalInfo_custBGPAssn"}] I couldn't find documentation about this field on documentation - https://developer.equinix.com/content/api/buyerv3-recommended?view=product-catalog#/Layer%202%20Connections/createConnectionUsingPOST Could you held me ? Best regards Louis1.3KViews0likes0CommentsUnexpected problem
Hi, I'm receiving "The system had encountered an unexpected problem and we are tracking it with error code." error when attempting to post work visits or retrieve location details. I'm using correct credentials and the correct bearer token but there seems to be an issue with any request I make to the sandbox API. https://sandboxapi.equinix.com/v1/orders/workvisit/locations?detail=true { "serviceDetails": { "schedule": { "endDateTime": "2020-01-20T15:54:04+00:00", "startDateTime": "2020-01-20T14:54:04+00:00" }, "visitors": [ { "company": "xxxxxxx", "firstName": "[Test]NTTS01", "lastName": "[Test]NTTS01" }, { "lastName": "person", "firstName": "A", "company": "A corp" } ] }, "contacts": [ { "contactType": "NOTIFICATION", "userName": "xxxxxxxx" }, { "contactType": "ORDERING", "userName": "xxxxxxx" } ], "ibxLocation": { "ibx": "LD4", "cages": [ { "cabinets": [ "0000" ], "accountNumber": "xxxxxxx", "cage": "LD4:01:001S14" } ] }, "customerReferenceNumber": "xxxxxxx" } Can anyone help me !Solved1.9KViews0likes1Comment