{"id":21900964,"url":"https://github.com/citrix/citrix-daas-rest-go","last_synced_at":"2026-03-03T18:06:00.296Z","repository":{"id":199739847,"uuid":"678489369","full_name":"citrix/citrix-daas-rest-go","owner":"citrix","description":"Go client for Citrix DaaS Rest API","archived":false,"fork":false,"pushed_at":"2025-12-24T08:54:36.000Z","size":11464,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-25T22:32:49.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.cloud.com/citrixworkspace/citrix-daas-rest-apis/docs/citrix-virtual-apps-and-desktops-apis","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/citrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-14T17:06:51.000Z","updated_at":"2025-12-24T08:53:19.000Z","dependencies_parsed_at":"2024-06-12T20:27:32.813Z","dependency_job_id":"40478e27-fdeb-4e42-8574-e9a3d859f8a4","html_url":"https://github.com/citrix/citrix-daas-rest-go","commit_stats":null,"previous_names":["citrix/citrix-daas-rest-go"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/citrix/citrix-daas-rest-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-daas-rest-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-daas-rest-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-daas-rest-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-daas-rest-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/citrix","download_url":"https://codeload.github.com/citrix/citrix-daas-rest-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-daas-rest-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T15:11:42.730Z","updated_at":"2026-03-03T18:06:00.268Z","avatar_url":"https://github.com/citrix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Client for Go for use with Citrix services\n\n## About\n\nThe Client for Go for use with Citrix DaaS™ APIs enables managing Citrix DaaS resources programmatically in applications written in the Go programming language. \n\n## Installation\n- From GitHub\n\n```\ngo get github.com/citrix/citrix-daas-rest-go\n```\n- Enable optional remote PoSH on the storefront server\n```\nEnable-PSRemoting -Force\n```\n\n## Usage\nThe Client for Go for use with Citrix DaaS APIs contains the following packages:\n1. `github.com/citrix/citrix-daas-rest-go/citrixorchestration`: SDK which contains the client model and api functions for Citrix DaaS API. This is auto-generated by OpenAPI Generator and do not require any manual changes.\n2. `github.com/citrix/citrix-daas-rest-go/client`: Rest client configurable with Citrix DaaS customer details and handles authentication.\n3. `github.com/citrix/citrix-daas-rest-go/citrixstorefront`: SDK which contains the client model and PowerShell SDK functions for Citrix StoreFront Server. This interacts with PowerShell on the StoreFront server either locally or via Remote PowerShell.\n4. `github.com/citrix/citrix-daas-rest-go/ccresourcelocations`: SDK which contains the client model and api functions for Citrix Resource Locations API. This is auto-generated by OpenAPI Generator and do not require any manual changes.\n5. `github.com/citrix/citrix-daas-rest-go/globalappconfiguration`: SDK which contains the client model and api functions for Citrix Global App Configuration Service API. This is auto-generated by OpenAPI Generator and do not require any manual changes.\n6. `github.com/citrix/citrix-daas-rest-go/citrixquickcreate`: SDK which contains the client model and api functions for Citrix Quick Create Service API. This is auto-generated by OpenAPI Generator, however it has known issue where the \"bytes\" and \"fmt\" imports are unused and not removed by the generator. This requires a manual find and replace inside the \"citrixquickcreate\" folder.\n7. `github.com/citrix/citrix-daas-rest-go/citrixcws`: SDK which contains the client model and api functions for Citrix Cloud CWS Service API. This is auto-generated by OpenAPI Generator and do not require any manual changes.\n8. `github.com/citrix/citrix-daas-rest-go/devicemanagement`: SDK which contains the client model and api functions for Citrix Workspace Environment Management. This is auto-generated by OpenAPI Generator and do not require any manual changes.\n\nInstantiate a client using `NewCitrixDaasClient`. The following variables are required to configure Citrix DaaS client:\n\n|              | Cloud                                                                                                                        | On-Premises                                                                                                            |\n|--------------|------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| authUrl      | Citrix Cloud authentication URL, i.e. `https://api-us.cloud.com/cctrustoauth2/{customerId}/tokens/clients` for US customers. | On-Premises trust service URL, i.e. `https://{deliveryControllerHostname}/citrix/orchestration/api/tokens` |\n| hostname     | Citrix Cloud DaaS service hostname, i.e. `{customerId}.xendesktop.net`                                                       | Delivery Controller Hostname / IP address                                                                              |\n| customerId   | Cloud Customer Id                                                                                                            | `CitrixOnPremises`                                                                                                     |\n| clientId     | Citrix Cloud API Key clientId                                                                                                | Domain Admin Username                                                                                                  |\n| clientSecret | Citrix Cloud API Key clientSecret                                                                                            | Domain Admin Password                                                                                                  |\n| onPremise    | `false`                                                                                                                      | `true`                                                                                                                 |\n| ccUrl        | Citrix Cloud URL, i.e. `https://api.cloud.com`                                                                               | Not  Supported\n\n\n## Example\n\n```\npackage main\n\nimport (\n        \"context\"\n        citrixstorefront \"github.com/citrix/citrix-daas-rest-go/citrixstorefront/models\"\n        citrixorchestration \"github.com/citrix/citrix-daas-rest-go/citrixorchestration\"\n        citrixclient \"github.com/citrix/citrix-daas-rest-go/client\"\n)\n\nfunc main() {\n        // Create a new Citrix API client for cloud customer 83czxoqlpepv\n        authUrl := \"https://api-us.cloud.com/cctrustoauth2/83czxoqlpepv/tokens/clients\"\n        hostname := \"83czxoqlpepv.xendesktop.net\"\n        customerId := \"83czxoqlpepv\"\n        clientId := \"{apiKeyClientId}\"\n        clientSecret := \"{apiKeyClientSecret}\"\n        onPremise := false\n        ccUrl := https://api.cloud.com\n        client, err := citrixclient.NewCitrixDaasClient(authUrl, ccUrl, hostname, customerId, clientId, clientSecret, onPremise, nil, nil)\n        \n        // Optional configuration for storefront client\n        computerName := \"{Storefront Server FQDN}\"\n        sfadUserName := \"{AD username}\"\n        sfadUserPass := \"{AD password}\"\n        sfclient, err :=  citrixclient.NewStoreFrontClient(computerName, sfadUserName, sfadUserPass, client)\n\n        /************* citrixorchestration client example *************/\n        // Create GET zone request with zoneId and siteId\n        zoneId := \"8994379b-8585-4717-9765-632992e738d3\"\n        siteId := \"8509b2e6-ff02-48bb-aaa3-07b84f09b9f4\"\n        getZoneRequest := client.ApiClient.ZonesTPApi.ZonesTPGetZone(ctx, zoneId, customerId, siteId)\n\n        // Get bearer token and put into authorization header\n        token, _ := client.SignIn()\n        getZoneRequest = getZoneRequest.Authorization(token)\n\n        // Execute request and get response\n        zone, _, err := getZoneRequest.Execute()\n        if err != nil {\n            return\n        }\n\n        /************* citrixstorefront client example *************/\n        var body citrixstorefront.CreateSTFDeploymentRequestModel\n        createDeploymentRequest := client.StorefrontClient.DeploymentSF.STFDeploymentCreateSTFDeployment(ctx, body)\n}\n\n```\n\n\n## Attributions\nThe code in this repository makes use of the following packages:\n- OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)\n- Testify (https://github.com/stretchr/testify)\n\n\n## License \nThis project is Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 \n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n\u003csub\u003eCopyright © 2024. Citrix Systems, Inc.\u003c/sub\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrix%2Fcitrix-daas-rest-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitrix%2Fcitrix-daas-rest-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrix%2Fcitrix-daas-rest-go/lists"}