{"id":21810146,"url":"https://github.com/yunionio/mcclient_nodejs","last_synced_at":"2026-05-21T07:11:15.873Z","repository":{"id":47592248,"uuid":"398680471","full_name":"yunionio/mcclient_nodejs","owner":"yunionio","description":"Nodejs SDK for Cloudpods API","archived":false,"fork":false,"pushed_at":"2025-11-23T15:36:21.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-23T17:26:10.695Z","etag":null,"topics":["api","cloudpods","hybridcloud","multicloud","nodejs","sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/yunionio.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}},"created_at":"2021-08-22T00:14:45.000Z","updated_at":"2025-11-23T15:36:25.000Z","dependencies_parsed_at":"2022-09-06T06:11:17.336Z","dependency_job_id":null,"html_url":"https://github.com/yunionio/mcclient_nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yunionio/mcclient_nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunionio%2Fmcclient_nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunionio%2Fmcclient_nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunionio%2Fmcclient_nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunionio%2Fmcclient_nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunionio","download_url":"https://codeload.github.com/yunionio/mcclient_nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunionio%2Fmcclient_nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33292228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: 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":["api","cloudpods","hybridcloud","multicloud","nodejs","sdk"],"created_at":"2024-11-27T13:32:47.846Z","updated_at":"2026-05-21T07:11:15.859Z","avatar_url":"https://github.com/yunionio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodejs SDK for Cloudpods API\n\nThis repository provides Nodejs SDK for Cloudpods API.\n\nBased on the SDK, a simple nodejs version of climc was implemented as a usage example of SDK.\n\n## Setup\n\n```bash\nnpm install\n```\n\n## run climc of nodejs version\n\n```bash\n./bin/climc server-list\n```\n\n## use SDK in your nodejs program\n\n```javascript\n  const client = require('mcclient/client');\n  let cli = new client.Client(os_auth_url, timeout, debug);\n\n  cli.auth(os_username, os_password, os_domain, os_project_id, os_project_name, os_project_domain)\n    .then((token) =\u003e {\n       let s = cli.session(os_region_name, os_zone_name, os_endpoint_type, token, api_version);\n       s.module(\"servers\").list({limit: 100})\n         .then((result) =\u003e {\n             const misc = require(\"mcclient/misc\");        \n             misc.printList(result, cli.module('servers').columns());\n           })\n    }).catch((err) =\u003e {\n      console.error(\"Invalid credential:\" + err);\n    });\n```\n\n## Note: nodejs version of mcclient is experimental, you are welcome to contribe to make it complete\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunionio%2Fmcclient_nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunionio%2Fmcclient_nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunionio%2Fmcclient_nodejs/lists"}