[{"label":"Latest (v1.1)","version":"latest"}]
vmc

Create Subscriptions

Description

Initiates the creation of a subscription

Request

Request

URL

URL


post
https://vmc.vmware.com/vmc/api/orgs/{org}/subscriptions
Copy

Path Parameters

Path Parameters

string
org Required

Organization identifier


Request Body

Request Body

SubscriptionRequest of type(s) application/json Required

subscriptionRequest

{
	"commitment_term": "string",
	"offer_name": "string",
	"offer_version": "string",
	"product_type": "string",
	"quantity": 0,
	"region": "string"
}
string
product_type Required

Old identifier for product. Deprecarted. See product and type


string
commitment_term Required

string
region Required

string
offer_name Required

string
offer_version Required

integer
quantity Required

string
billing_frequency Optional

Frequency of the billing.


string
product_charge_id Optional

string
product_id Optional

string
product Optional

The product for which subscription needs to be created. Refer /vmc/api/orgs/{orgId}/products.


integer
price Optional

string
offer_context_id Optional

string
type Optional

The type of the product for which the subscription needs to be created.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

202 Accepted returns Task of type(s) application/json
This response body class contains all of the following: AbstractEntity, InlineTask1
Errors

Errors

401

Unauthorized


403

Forbidden


500

Server error. Check retryable flag to see if request should be retried.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"billing_frequency":"string","commitment_term":"string","offer_context_id":"string","offer_name":"string","offer_version":"string","price":0,"product":"string","product_charge_id":"string","product_id":"string","product_type":"string","quantity":0,"region":"string","type":"string"}' https://vmc.vmware.com/vmc/api/orgs/{org}/subscriptions
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: subscriptions
x-vmw-vapi-methodname: create


Feedback

Was this page helpful?