1.4.8 • Published 3 years ago

ncloud-server v1.4.8

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

ncloud-server

Installation

For Node.js

npm

npm install ncloud-server --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var Server = require('ncloud-server');

var client = new Server.ApiClient({
  accessKey: 'your access key',
  secretKey: 'your secret key',
});

var apiInstance = new Server.V2Api(client)

var addNasVolumeAccessControlRequest = new Server.AddNasVolumeAccessControlRequest(); // {AddNasVolumeAccessControlRequest} addNasVolumeAccessControlRequest


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.addNasVolumeAccessControl(addNasVolumeAccessControlRequest, callback);

Documentation for API Endpoints

All URIs are relative to https://ncloud.apigw.ntruss.com/server/v2

ClassMethodHTTP requestDescription
Server.V2ApiaddNasVolumeAccessControlPOST /addNasVolumeAccessControl
Server.V2ApiaddPortForwardingRulesPOST /addPortForwardingRules
Server.V2ApiassociatePublicIpWithServerInstancePOST /associatePublicIpWithServerInstance
Server.V2ApiattachBlockStorageInstancePOST /attachBlockStorageInstance
Server.V2ApiattachNetworkInterfacePOST /attachNetworkInterface
Server.V2ApichangeBlockStorageVolumeSizePOST /changeBlockStorageVolumeSize
Server.V2ApichangeNasVolumeSizePOST /changeNasVolumeSize
Server.V2ApichangeServerInstanceSpecPOST /changeServerInstanceSpec
Server.V2ApicreateBlockStorageInstancePOST /createBlockStorageInstance
Server.V2ApicreateBlockStorageSnapshotInstancePOST /createBlockStorageSnapshotInstance
Server.V2ApicreateInstanceTagsPOST /createInstanceTags
Server.V2ApicreateLoginKeyPOST /createLoginKey
Server.V2ApicreateMemberServerImagePOST /createMemberServerImage
Server.V2ApicreateNasVolumeInstancePOST /createNasVolumeInstance
Server.V2ApicreateNetworkInterfacePOST /createNetworkInterface
Server.V2ApicreatePublicIpInstancePOST /createPublicIpInstance
Server.V2ApicreateServerInstancesPOST /createServerInstances
Server.V2ApideleteBlockStorageInstancesPOST /deleteBlockStorageInstances
Server.V2ApideleteBlockStorageSnapshotInstancesPOST /deleteBlockStorageSnapshotInstances
Server.V2ApideleteInstanceTagsPOST /deleteInstanceTags
Server.V2ApideleteLoginKeyPOST /deleteLoginKey
Server.V2ApideleteMemberServerImagesPOST /deleteMemberServerImages
Server.V2ApideleteNasVolumeInstancePOST /deleteNasVolumeInstance
Server.V2ApideleteNetworkInterfacePOST /deleteNetworkInterface
Server.V2ApideletePortForwardingRulesPOST /deletePortForwardingRules
Server.V2ApideletePublicIpInstancesPOST /deletePublicIpInstances
Server.V2ApidetachBlockStorageInstancesPOST /detachBlockStorageInstances
Server.V2ApidetachNetworkInterfacePOST /detachNetworkInterface
Server.V2ApidisassociatePublicIpFromServerInstancePOST /disassociatePublicIpFromServerInstance
Server.V2ApigetAccessControlGroupListPOST /getAccessControlGroupList
Server.V2ApigetAccessControlGroupServerInstanceListPOST /getAccessControlGroupServerInstanceList
Server.V2ApigetAccessControlRuleListPOST /getAccessControlRuleList
Server.V2ApigetBlockStorageInstanceListPOST /getBlockStorageInstanceList
Server.V2ApigetBlockStorageSnapshotInstanceListPOST /getBlockStorageSnapshotInstanceList
Server.V2ApigetInitScriptListPOST /getInitScriptList
Server.V2ApigetInstanceTagListPOST /getInstanceTagList
Server.V2ApigetLoginKeyListPOST /getLoginKeyList
Server.V2ApigetMemberServerImageListPOST /getMemberServerImageList
Server.V2ApigetNasVolumeInstanceListPOST /getNasVolumeInstanceList
Server.V2ApigetNasVolumeInstanceRatingListPOST /getNasVolumeInstanceRatingList
Server.V2ApigetNetworkInterfaceListPOST /getNetworkInterfaceList
Server.V2ApigetPortForwardingRuleListPOST /getPortForwardingRuleList
Server.V2ApigetPrivateSubnetInstanceListPOST /getPrivateSubnetInstanceList
Server.V2ApigetPublicIpInstanceListPOST /getPublicIpInstanceList
Server.V2ApigetPublicIpTargetServerInstanceListPOST /getPublicIpTargetServerInstanceList
Server.V2ApigetRaidListPOST /getRaidList
Server.V2ApigetRegionListPOST /getRegionList
Server.V2ApigetRootPasswordPOST /getRootPassword
Server.V2ApigetRootPasswordServerInstanceListPOST /getRootPasswordServerInstanceList
Server.V2ApigetServerImageProductListPOST /getServerImageProductList
Server.V2ApigetServerInstanceListPOST /getServerInstanceList
Server.V2ApigetServerProductListPOST /getServerProductList
Server.V2ApigetZoneListPOST /getZoneList
Server.V2ApiimportLoginKeyPOST /importLoginKey
Server.V2ApirebootServerInstancesPOST /rebootServerInstances
Server.V2ApirecreateServerInstancePOST /recreateServerInstance
Server.V2ApiremoveNasVolumeAccessControlPOST /removeNasVolumeAccessControl
Server.V2ApireplaceServerInstanceAssociatedWithPublicIpPOST /replaceServerInstanceAssociatedWithPublicIp
Server.V2ApisetNasVolumeAccessControlPOST /setNasVolumeAccessControl
Server.V2ApistartServerInstancesPOST /startServerInstances
Server.V2ApistopServerInstancesPOST /stopServerInstances
Server.V2ApiterminateServerInstancesPOST /terminateServerInstances

Documentation for Models

License

Copyright 2018 NAVER BUSINESS PLATFORM Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1.4.8

3 years ago

1.4.7

4 years ago

1.4.1

4 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago