Resource Manager API

Preview

Resource Manager API

+ Day(s) remaining in the trial

Overview

Resource Manager

Security

Keys

Pick a key to use with this API. Make sure you are logged in with your IBM id for your keys to be populated in the dropdown below. By selecting a key, it will be pre-filled for each endpoint in the Documentation section that can be used with the built-in testing. If you want to change which key to use for a particular endpoint, you can do so at the endpoint in the Documentation section.
You can manage your API keys in the <MyAPIs> section. API keys authenticate you to your subscription, so make sure to keep them secret. Do not share the X-IBM-Client-Secret portion of any API key in publicly accessible places such as GitHub, or client-side code.



Manage your keys
 

Documentation

Resource Manager API:

Payment Method

Payment Method
Associate a payment method with a resource group
Associate a payment method with a resource group

PUT   /resource_groups/{resource_group_id}/payment_methods/{payment_method_id}

			https://resource-manager.stage1.bluemix.net/resource_groups/{resource_group_id}/payment_methods/{payment_method_id}
		
Keys
Header parameters

Authorization

STRING , required

IAM bearer token

Path and Query parameters

payment_method_id

URL , required

Payment method id

resource_group_id

URL , required

Resource group id

Request code
								
HttpResponse<String> response = Unirest.put("https://resource-manager.stage1.bluemix.net/v1/resource_groups/{resource_group_id}/payment_methods/{payment_method_id}") .header("authorization", "string") .header("accept", "application/json") .header("content-type", "application/json") .asString();
Response model

200

successful operation

Response example

200

successful operation

Disassociate a payment method with a resource group
Disassociate a payment method with a resource group

DELETE   /resource_groups/{resource_group_id}/payment_methods/{payment_method_id}

			https://resource-manager.stage1.bluemix.net/resource_groups/{resource_group_id}/payment_methods/{payment_method_id}
		
Keys
Header parameters

Authorization

STRING , required

IAM bearer token

Path and Query parameters

payment_method_id

URL , required

Payment method id

resource_group_id

URL , required

Resource group id

Request code
								
HttpResponse<String> response = Unirest.delete("https://resource-manager.stage1.bluemix.net/v1/resource_groups/{resource_group_id}/payment_methods/{payment_method_id}") .header("authorization", "string") .header("accept", "application/json") .header("content-type", "application/json") .asString();
Response model

200

successful operation

Response example

200

successful operation

Get payment methods associated with a resource group
Get payment methods associated with a resource group

GET   /resource_groups/{resource_group_id}/payment_methods

			https://resource-manager.stage1.bluemix.net/resource_groups/{resource_group_id}/payment_methods
		
Keys
Header parameters

Authorization

STRING , required

IAM bearer token

Path and Query parameters

resource_group_id

URL , required

Resource group id

Request code
								
HttpResponse<String> response = Unirest.get("https://resource-manager.stage1.bluemix.net/v1/resource_groups/{resource_group_id}/payment_methods") .header("authorization", "string") .header("accept", "application/json") .asString();
Response model

200

successful operation

Response example

200

successful operation

Loading content...

Resources