Jump to content
Welcome to our new Citrix community!
  • 0

Adding new machines to a catalog


Bill Gruber

Question

I'm trying to write an API query to create new machines via MCS to Citrix Cloud.  My attempts so far have failed, is this possible?  I see where you can add existing machines to a catalog, but nothing for creating new machines.  I've not been able to find any examples or much info on machine creation via API, has anyone successful done this yet?

Link to comment

2 answers to this question

Recommended Posts

  • 0
On 11/1/2021 at 9:00 PM, Bill Gruber said:

I'm trying to write an API query to create new machines via MCS to Citrix Cloud.  My attempts so far have failed, is this possible?  I see where you can add existing machines to a catalog, but nothing for creating new machines.  I've not been able to find any examples or much info on machine creation via API, has anyone successful done this yet?

Yes you do that 

Request URI: https://api-us.dev.cloud.com/cvad/manage/$batch?async=true
Method: POST
Request header: {"Authorization":"***","X-CC-Locale":"en","Citrix-CustomerId":"{customerId}","Citrix-InstanceId":"{siteId}"}
Body: {"Items":[{"Reference":"0","Method":"POST","RelativeUrl":"/MachineCatalogs/{NameOrId}/Machines","Headers":[{"Name":"Authorization","Value":"***"},{"Name":"X-CC-Locale","Value":"en"},{"Name":"Citrix-CustomerId","Value":"{customerId}"},{"Name":"Citrix-InstanceId","Value":"{siteId}"}],"Body":"{\"MachineAccountCreationRules\":{\"NamingScheme\":\"MachineName##\",\"NamingSchemeType\":\"Numeric\",\"Domain\":\"domain.local\",\"OU\":\"\"}}"}]}

 

 

A method: In the Studio UI ->Logging Node, there is a Tab of "APIs", you can try to create new machines via MCS, then there is API log to show how to call it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...