Get all constraints

get

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint

Request

Query Parameters
  • The description of the resource.
  • Project Id
  • The comma-separated field names that are returned in the response. The field names are the names that you specify when you create or retrieve a resource.
  • The unique identifier of the resource item.
  • The current lifecycle status of the resource.
  • The number of resources to be returned in the response. The minimum value that can be specified is 1, and the maximum value that can be specified is 100,000. If the specified value is greater than 100,000, then it defaults to 100,000.
  • The name of the resource.
  • The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
  • The current version of the resource.
  • enrich objects with usedBy information

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : schema
Type: array
Show Source
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "PricingConstraintVariantOracle":"#/components/schemas/PricingConstraintVariantOracle", "PricelistConstraintOracle":"#/components/schemas/PricelistConstraintOracle" } }
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to get all constraints by submitting a GET request on the REST resource using cURL.

cURL Command

curl -u username:password -X GET https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint \ -H 'Content-Type: application/json'

Example of Response Body

The following shows the contents of the response body in JSON format.

[
    {
        "@type": "PricingConstraintVariantOracle",
        "specCharUse": [
            {
                "productSpecification": {
                    "id": "Spec701",
                    "name": "Spec701",
                    "version": "1.0",
                    "@baseType": "ProductSpecificationOracle"
                },
                "relationshipType": "aggregation",
                "charSpecSeq": 1,
                "valueType": "Price",
                "name": "PriceList"
            },
            {
                "serviceSpecification": {
                    "id": "SUP_CFS_03",
                    "name": "SUP_CFS_03",
                    "@referredType": "ServiceSpecificationOracle"
                },
                "relationshipType": "aggregation",
                "charSpecSeq": 2,
                "name": "TimeTagesss"
            }
        ],
        "constraintRule": [
            {
                "productOfferingPrice": [
                    {
                        "id": "TestPOP091911",
                        "name": "TestPOP091911",
                        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/TestPOP091911",
                        "@referredType": "ProductOfferingPriceOracle"
                    }
                ],
                "validFor": {
                    "startDateTime": "2017-04-19T16:42:23.000Z"
                },
                "valueRelationship": [
                    {
                        "value": "P2"
                    },
                    {
                        "value": "Peak"
                    }
                ],
                "priceTag": "Price 1",
                "priority": 3
            }
        ],
		"lifecycleStatus": "In design"

...
]
Back to Top