CreateAndSendSharedCopyInvitation

This resource will copy the specified environment and send an invitation to the specified recipient to use this copy.

Request URL

GET https://use.cloudshare.com/Api/v1/Admin/CreateAndSendSharedCopyInvitation?envApiId=<envid>&sendToEmail=<sendto>&firstName=<firstname>&lastName=<lastname>&shouldSendEmail=<shouldsend>&UserApiId=<id>>&timestamp=<time_t>&HMAC=<signature>

Parameters

envApiId The id of the environment to be copied and shared.
Example: PVSV2TWQQ2BA
sendToEmail Email of the user to receive the invitation
firstName Recipient user’s first name
lastName Recipient user’s last name
shouldSendEmail Flag indicating whether an email should be sent to the user.
Values: true/false

Response example

{
    "acceptUrl": "https://use.cloudshare.com/Ent/AcceptInvitation.mvc?inv=om7S_CjOZls",
    "detailsUrl":  "https://use.cloudshare.com/Ent/Vendor/InvitationDetails.aspx?inv=om7S_CjOZls",
    "message": "An invitation was created and sent successfully"
}

The response includes details for the environment, as well as details for each machine that is part of the environment.

Details for the environment include: name, expiration date, license status, prototypes, snapshots

Details for the machines include: name, IP address, running status, URL.


Code sample