Create Metering Policy Assignment Using POST 1

Create Metering Policy Assignment Using POST 1

Create a new pricing card policy assignment based on request body and validate its field according to business rules. Request body with ALL entityType will delete the older assignments for the given pricingCardId

Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/price/api/private/pricing-card-assignments
COPY
Request Body

The pricing card assignment to be created

MeteringPolicyAssignment of type(s) application/json
Optional
{
    "createdAt": "string",
    "entityId": "string",
    "entityName": "string",
    "entityType": "string",
    "id": "string",
    "lastUpdatedAt": "string",
    "orgId": "string",
    "pricingCardId": "string",
    "pricingCardName": "string"
}
string As date-time As date-time
createdAt
Optional

Creation time

string
entityId
Optional

Pricing card assigned entity id

string
entityName
Optional

Pricing card assigned entity name

string
entityType
Optional

Pricing card assigned entity type

Possible values are : ALL, PROJECT, CLOUDZONE,
string As uuid As uuid
id
Optional

Id of the pricingCardAssignment

string As date-time As date-time
lastUpdatedAt
Optional

Updated time

string
orgId
Optional

OrgId of the pricingCardAssignment

string As uuid As uuid
pricingCardId
Optional

Pricing card id

string
pricingCardName
Optional

Pricing card name

Responses
200

OK

Returns MeteringPolicyAssignment of type(s) application/json
{
    "createdAt": "string",
    "entityId": "string",
    "entityName": "string",
    "entityType": "string",
    "id": "string",
    "lastUpdatedAt": "string",
    "orgId": "string",
    "pricingCardId": "string",
    "pricingCardName": "string"
}
string As date-time As date-time
createdAt
Optional

Creation time

string
entityId
Optional

Pricing card assigned entity id

string
entityName
Optional

Pricing card assigned entity name

string
entityType
Optional

Pricing card assigned entity type

Possible values are : ALL, PROJECT, CLOUDZONE,
string As uuid As uuid
id
Optional

Id of the pricingCardAssignment

string As date-time As date-time
lastUpdatedAt
Optional

Updated time

string
orgId
Optional

OrgId of the pricingCardAssignment

string As uuid As uuid
pricingCardId
Optional

Pricing card id

string
pricingCardName
Optional

Pricing card name


201

Created

Returns MeteringPolicyAssignment of type(s) application/json
{
    "createdAt": "string",
    "entityId": "string",
    "entityName": "string",
    "entityType": "string",
    "id": "string",
    "lastUpdatedAt": "string",
    "orgId": "string",
    "pricingCardId": "string",
    "pricingCardName": "string"
}
string As date-time As date-time
createdAt
Optional

Creation time

string
entityId
Optional

Pricing card assigned entity id

string
entityName
Optional

Pricing card assigned entity name

string
entityType
Optional

Pricing card assigned entity type

Possible values are : ALL, PROJECT, CLOUDZONE,
string As uuid As uuid
id
Optional

Id of the pricingCardAssignment

string As date-time As date-time
lastUpdatedAt
Optional

Updated time

string
orgId
Optional

OrgId of the pricingCardAssignment

string As uuid As uuid
pricingCardId
Optional

Pricing card id

string
pricingCardName
Optional

Pricing card name


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure