Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf-client

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-client - npm Package Compare versions

Comparing version 0.13.6 to 0.13.7

43

lib/model/cloudcontroller/Apps.js

@@ -129,2 +129,23 @@ "use strict";

/**
* Get an app
* {@link http://apidocs.cloudfoundry.org/214/apps/retrieve_a_particular_app.html}
*
* @param {String} guid [App guid]
* @return {JSON} [return a JSON response]
*/
getApp (guid) {
const url = `${this.API_URL}/v2/apps/${guid}`;
const options = {
method: "GET",
url: url,
headers: {
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}`
}
};
return this.REST.request(options, this.HttpStatus.OK, true);
}
/**

@@ -215,3 +236,25 @@ * Get summary about an application

}
/**
* Dissociate an Application from a Route.
* {@link http://apidocs.cloudfoundry.org/214/apps/remove_route_from_the_app.html}
*
* @param {String} appGuid [App guid]
* @param {String} routeGuid [Route guid]
* @return {JSON} [description]
*/
dissociateRoute (appGuid, routeGuid) {
const url = `${this.API_URL}/v2/apps/${appGuid}/routes/${routeGuid}`;
const options = {
method: "DELETE",
url: url,
headers: {
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}`
}
};
return this.REST.request(options, this.HttpStatus.OK, true);
}
/**

@@ -218,0 +261,0 @@ * Check resources

@@ -61,3 +61,24 @@ "use strict";

}
/**
* Get a Organization
* {@link http://apidocs.cloudfoundry.org/214/organizations/retrieve_a_particular_organization.html}
*
* @param {String} guid [Organization guid]
* @return {JSON} [return a JSON response]
*/
getOrganization (guid) {
const url = `${this.API_URL}/v2/organizations/${guid}`;
const options = {
method: "GET",
url: url,
headers: {
Authorization: `${this.UAA_TOKEN.token_type} ${this.UAA_TOKEN.access_token}`
}
};
return this.REST.request(options, this.HttpStatus.OK, true);
}
/**

@@ -64,0 +85,0 @@ * Get summary from an Organization

2

package.json
{
"name": "cf-client",
"version": "0.13.6",
"version": "0.13.7",
"description": "A Cloud Foundry Client for Node.js",

@@ -5,0 +5,0 @@ "author": "Juan Antonio Breña Moral <bren@juanantonio.info>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc