Skip to main content

Effective 10 September 2024, API Documentation can be found on our Equinix Product Documentation site.
The content on this page will not be updated after 1 Oct 2024 and will be inaccessible after 31st Dec 2024.


SSH User

Get SSH Users

 GET /ne/v1/sshUsers
MethodGET
URL or End Point/ne/v1/sshUsers
HeadersAuthorization, Content-Type
Query Parametersusername, virtualDeviceUuid, verbose, accountUcmId, offset, limit
BodyNot applicable

Returns SSH users.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request.

curl -X
GET "https://api.equinix.com/ne/v1/sshUsers?verbose=Yes"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
Query Parameter NameMandatoryTypeExampleApplicable ValuesDescription
usernameNostringsr3245Ssh user name.
virtualDeviceUuidNostring32cf4a21-a6c4-4501-9a0c-79fc0873f653The unique Id of the virtual device
verboseNobooleanTrueTrue, FalseWhether you want details, including virtual device Id, metros, or just the unique Id and username of ssh users.
accountUcmIdNostring133598Unique Id of the account. A reseller querying for an end-customer's ssh-users can pass the accountUcmId of the customer's account. To find out the accountUcmId of a customer's account, please check the Equinix account creation portal (ECP) or call Get account API.
offsetNointeger0Specifies where to start a page. It is the starting point of the collection returned from the server.
limitNointeger100Specifies the page size.

Sample response:

{
"pagination": {
"offset": 0,
"limit": 20,
"total": 2
},
"data": [
{
"uuid": "68d8fa96-967c-4550-8111-9229418ec3b3",
"username": "user6",
"deviceUuids": [],
"metroStatusMap": {
"da1.pod1": {
"status": "FAILED"
}
}
},

{
"uuid": "1768b990-97cc-4e86-926d-866a2723f701",
"username": "testSsh",
"deviceUuids": [
"c71f9d7c-58ba-45a4-a0c9-c0cbeab4a128",
"d84704c6-bea8-4f77-a57c-51df65644e29",
"a165572a-0243-4a98-928a-10af8c01fcb0"
],
"metroStatusMap": {
"sy5.pod2": {
"status": "ACTIVE"
},
"sy4.pod1": {
"status": "ACTIVE"
}
}
}
]
}

The description of the response is as follows:

Field NameTypeExample ValuesDescription
paginationobjectAn object that has pagination information.
offsetinteger0It is the starting point of the collection returned from the server.
limitinteger20The page size.
totalinteger100The total number of results.
nextstringThe next set of records.
previousstringThe previous set of records.
dataarray [objects]An array of ssh users.
uuidstring32cf4a21-a6c4-4501-9a0c-79fc0873f653Unique Id of the ssh user.
usernamestringsrt123Ssh user name.
deviceUuidsarray"deviceUuids": [
"3925b42b-eff6-4c07-8c1a-3f16c01779aa"
]
An array of virtual device unique Ids associated with the username.
metroStatusMapobject [objects]"sv5.pod1": {
"status": "ACTIVE"
}
Object with the pod name as the key. The value is another object that has the status (PENDING, ACTIVE, or FAILED) of the ssh user in that pod.
statusstringACTIVEWhether the ssh user is active, pending, or failed in the pod.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Get SSH User {uuid}

 GET /ne/v1/sshUsers/{uuid}
MethodGET
URL or End Point/ne/v1/sshUsers/{uuid}
HeadersAuthorization, Content-Type
Path Parameteruuid
BodyNot applicable

Returns the SSH user details by its unique ID.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request.

curl -X
GET "https://api.equinix.com/ne/v1/sshUsers/d8fe1db2-75a1-436e-839f-3ca50f4dce89"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
uuidYesstringd8fe1db2-75a1-436e-839f-3ca50f4dce89Unique Id of an SSH user.

Sample response:

{
"uuid": "d8fe1db2-75a1-436e-839f-3ca50f4dce87",
"username": "SRT12345",
"deviceUuids": [
"3925b42b-eff6-4c07-8c1a-3f16c01779aa"
],
"metroStatusMap": {
"SV": {
"status": "ACTIVE"
}
}
}

The description of the response is as follows:

Field NameTypeExample ValuesDescription
uuidstring32cf4a21-a6c4-4501-9a0c-79fc0873f653Unique Id of the ssh user.
usernamestringsrt123Ssh user name.
deviceUuidsarray"deviceUuids": [
"3925b42b-eff6-4c07-8c1a-3f16c01779aa"
]
An array of virtual device unique Ids associated with the username.
metroStatusMapobject"sv5.pod1": {
"status": "ACTIVE"
}
An object with the pod name as the key. The value is another object that has the status (PENDING, ACTIVE, or FAILED) of the ssh user in that pod.
statusstringACTIVEThe status of the ssh user in the pod.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Check SSH Username Availability

 GET /ne/v1/sshUsers/availability
MethodGET
URL or End Point/ne/v1/sshUsers/availability
HeadersAuthorization, Content-Type
Query Parametersusername
BodyNot applicable

Checks if an SSH username is available.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request and its JSON response.

curl -X
GET "https://api.equinix.com/ne/v1/sshUsers/availability?username=mitali"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
Query Parameter NameMandatoryTypeExampleApplicable ValuesDescription
usernameYesstringmitaliUser name.

Sample response:

204 No Content

The description of the response is as follows:

HTTP StatusDescription
204 No ContentThe username is available.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Create SSH user

 POST /ne/v1/sshUsers
MethodPOST
URL or End Point/ne/v1/sshUsers
HeadersAuthorization, Content-Type
Path ParametersNA
Body Parametersusername, password, deviceUuid

Creates a new SSH user and associates it with a virtual device. You can only associate a user with an active device.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

Curl request:

curl -X
POST "https://api.equinix.com/ne/v1/sshUsers"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d "{
"username": "SRT12345",
"password": "projPass",
"deviceUuid": "3da0a663-20d9-4b8f-8c5d-d5cf706840c8"
}"

The description of the body parameters is as follows:

Parameter NameMandatoryTypeExampleApplicable ValuesDescription
usernameYesstringsrt12345User name.
passwordYesstringprojPassPassword.
deviceUuidYesstring3da0a663-20d9-4b8f-8c5d-d5cf706840c8Unique Id of the virtual device.

Sample response

201 Created

The description of the response payload is as follows:

HTTP StatusDescription
201 CreatedThe new SSH user was created and associated with the device.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Update SSH User {uuid}

 POST /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}
MethodPOST
URL or End Point/ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}
HeadersAuthorization, Content-Type
Query ParametersNA
Path ParameterssshUserUuid, deviceUuid

Associates an SSH user with a device.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request:

curl -X
POST "https://api.equinix.com/ne/v1/sshUsers/fa02d9df-75c2-4763-b9f7-89a06bf6376a/devices/afeb071c-227b-4be2-8fd5-ced81fd37273"
-H "content-type: application/json"
-H "Authorization: Bearer jnSoUKaJHpzMnU0toROpUHmqnwEP"

The description of the path parameters is as follows:

Path Parameter NameMandatoryTypeExamplePossible ValuesDescription
sshUserUuidYesstringec68e425-f973-452e-a866-76be5844d0baThe unique Id of the ssh user.
deviceUuidYesstring4cfb5675-5c3f-4275-adba-0c9e3c26c96bThe unique Id of the device.

Sample response:

201

The description of the response payload is as follows:

HTTP StatusDescription
201Association created successfully.

Update SSH User Password

 PUT /ne/v1/sshUsers/{uuid}
MethodPOST
URL or End Point/ne/v1/sshUsers/{uuid}
HeadersAuthorization, Content-Type
Path Parametersuuid
Body Parameterspassword

Updates the password of an SSH user.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

Curl request:

curl -X
PUT "https://api.equinix.com/ne/v1/sshUsers/ec68e425-f973-452e-a866-76be5844d0ba"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
-d "{
"password": "projPass"
}"

The description of the path parameter is as follows:

Path ParameterMandatoryTypeExampleApplicable ValuesDescription
uuidYesstringec68e425-f973-452e-a866-76be5844d0baThe unique id of an SSH user.

The description of the body parameter is as follows:

Body ParameterMandatoryTypeExampleApplicable ValuesDescription
passwordYesstringprojPass!The password of the SSH user.

Sample response

204 No Content

The description of the response payload is as follows:

HTTP StatusDescription
204 No ContentPassword updated successfully.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.

Delete SSH User

 DEL /ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}
MethodDEL
URL or End Point/ne/v1/sshUsers/{sshUserUuid}/devices/{deviceUuid}
HeadersAuthorization, Content-Type
Path ParametersshUserUuid, deviceUuid
Query ParameterNA

Dissociates an SSH user from a device. The ssh user will be deleted if there are no other devices associated with it.

 

To obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshot shows a sample curl request.

curl -X
DEL "https://api.equinix.com/ne/v1/sshUsers/d8fe1db2-75a1-436e-839f-3ca50f4dce87/devices/9ae1e9fc-7b0b-453b-bf2e-ea1d5fc52753"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"
Path Parameter NameMandatoryTypeExampleApplicable ValuesDescription
sshUserUuidYesstringd8fe1db2-75a1-436e-839f-3ca50f4dce89The unique Id of the ssh user.
deviceUuidYesstring9ae1e9fc-7b0b-453b-bf2e-ea1d5fc52753The unique Id of the virtual device.

Sample response:

{
"sshUserDeleted": false,
"sshUserToDeviceAssociationDeleted": true
}

The description of the response:

Field NameTypeExample ValuesDescription
sshUserDeletedstringfalseWhether the ssh user was deleted or not. The ssh user is deleted from the system only if there is no other device associated with the user.
sshUserToDeviceAssociationDeletedstringtrueWhether the ssh user was removed from the device. If True, the user will no longer have access to the device.
 

If you get “Access Denied” error, contact your local Equinix Service Desk.