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

Citrix Daas REST API's


Srikanth Patangi

Question

Hi,

 

I'm trying to create machine catalog and assign machines to it via citrix DaaS REST API's. I have followed the link https://developer.cloud.com/citrixworkspace/citrix-daas/citrix-daas-rest-apis/docs/overview

 

I'm successfully able to Get the Machine Catalog and Delivery Groups Information from the API. But, to deploy/create a machine catalog with specific values with a POST(https://developer.cloud.com/citrixworkspace/citrix-daas/citrix-daas-rest-apis/apis/MachineCatalogs-APIs/MachineCatalogs_CreateMachineCatalog) request, I cannot find a sample request body and what parameters in the body to mention. Can you please help me on this!!

Also Citrix DaaS SDK available for linux for automation. 

Link to comment

1 answer to this question

Recommended Posts

  • 0

Hi Srikanth

 

I've used below PS script to create a single-session Machine Catalog

 

$RequestUri1 = "https://api-eu.cloud.com/cvadapis/$SiteId/MachineCatalogs"
        
        $body = @"
    {
        "Name":"$Catalog",
        "AllocationType":"Static",
        "HypervisorConnection" : "$HypervisorConnectionName",
        "MinimumFunctionalLevel" : "L7_20",
        "ProvisioningType" : "Manual",
        "SessionSupport" : "SingleSession",
        "Zone" : '$ZoneId',
        "PersistUserChanges" : "OnLocal",
        "MachineType" : "Virtual",
    }
"@

Invoke-RestMethod -Uri $RequestUri1 -Method POST -Headers $headers -Body $body -ContentType "application/json"

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...