createAdminSecurityCriterion

post

/ccadmin/v1/adminSecurityCriteria

Create Admin Security Criterion. Creates a new admin security criterion.

Request

Supported Media Types
Body ()
Root Schema : createAdminSecurityCriterion_request
Type: object
Show Source
Example:
{
    "constraintType":"grant",
    "name":"Security Criterion for Catalog",
    "description":"Grant access for catalogs: ClassicalMoviesCatalog, cloudCatalog, cloudLakeCatalog",
    "id":"catalogs-grant-security-criterion",
    "securityCriteriaResource":{
        "id":"ora.catalogAssetResource"
    },
    "actions":[
        "create",
        "update",
        "delete"
    ],
    "constraints":[
        {
            "constraintConfig":{
                "id":"ora.catalogConstraintConfiguration"
            },
            "values":[
                "ClassicalMoviesCatalog",
                "cloudCatalog",
                "cloudLakeCatalog"
            ]
        }
    ]
}
Nested Schema : actions
Type: array
Array of actions on which to constrain the resource. Currently ["create", "update", "delete"] is the only accepted combination.
Show Source
Nested Schema : constraints
Type: array
Constraints to assign to the security criteria
Show Source
Nested Schema : securityCriteriaResource
Type: object
Resource to use for the security criterion
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : constraintConfig
Type: object
Constraint configuration for the resource
Show Source
Nested Schema : values
Type: array
IDs of the constraining asset type. Catalog IDs in case of ora.catalogConstraintConfiguration
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createAdminSecurityCriterion_response
Type: object
Show Source
Nested Schema : actions
Type: array
Array of actions on which the resource is constrained by the security criterion
Show Source
Nested Schema : constraints
Type: array
Constraints for the security criterion
Show Source
Nested Schema : roles
Type: array
Array of roles that contain this security criterion
Show Source
Nested Schema : securityCriteriaResource
Type: object
Resource for the security criterion
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : constraintConfig
Type: object
Constraint configuration for the resource
Show Source
Nested Schema : values
Type: array
IDs of the constraining asset type. Catalog IDs in case of ora.catalogConstraintConfiguration
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "constraintType":"grant",
    "roles":[
    ],
    "name":"Security Criterion for Catalog",
    "description":"Grant access for catalogs: ClassicalMoviesCatalog, cloudCatalog, cloudLakeCatalog",
    "id":"catalogs-grant-security-criterion",
    "lastModified":"2020-08-17T08:27:18.261Z",
    "securityCriteriaResource":{
        "name":"Catalog Assets",
        "id":"ora.catalogAssetResource"
    },
    "actions":[
        "create",
        "update",
        "delete"
    ],
    "constraints":[
        {
            "constraintConfig":{
                "id":"ora.catalogConstraintConfiguration"
            },
            "values":[
                "ClassicalMoviesCatalog",
                "cloudCatalog",
                "cloudLakeCatalog"
            ],
            "id":"scc-100001"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |22060|If input passed is invalid| |22070|If resource passed is invalid| |22072|If actions passed are invalid| |22073|If constraint values passed are invalid| |22076|If constraint configuration passed is invalid| |22077|If constraints are passed with constraintType: grantNone| |22079|If constraint configuration is not passed| |22080|If resource is not passed| |22081|If constraint type passed is invalid| |22083|If constraint type is not passed|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top