API Operations
The PingOne /environments/{{envID}}/apiServers/{{apiServerID}}/operations endpoint provides operations to create, read, update, and delete API service operations in PingOne. Each operation is defined by one or more paths, and each path must have a unique pattern.
Path parameter pattern syntax
If a path pattern has a type of PARAMETER, the following syntax rules apply to the parameter expression:
-
The pattern must start with a slash.
-
A single
*(wildcard) matches any character except a/. -
A double
**matches the rest of the path. It cannot be followed by any characters in the pattern. -
A path segment can be matched using a named parameter, with syntax like
/{variable}. -
Nested named parameters are not allowed, meaning
{name1{name2}}is an invalid expression. -
Partial path segment matches are not allowed, meaning
/part1{part2}is an invalid expression. -
A literal left curly bracket, right curly bracket, backslash, or wildcard can be matched by preceding the character with a backslash:
\{, \{, \\, \*. -
The following characters are not allowed in parameter names:
'{', '}', '\', '/'. -
Parameter names must be unique within an expression, meaning
/{name1}/resource/{name1}is an invalid expression. -
ASCII control characters are invalid anywhere in the pattern.
API service operations data model
| Property | Type? | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
N/A |
Read-only |
The ID of the API service operation. This is randomly generated when the operation is created. |
|
String |
Required |
Mutable |
The name of the API service operation. |
|
Object |
Optional |
Mutable |
The access control configuration for the operation. |
|
Object |
Optional |
Mutable |
Defines the authentication requirements for this operation. One or both of the |
|
Array |
Optional |
Mutable |
The |
|
Object |
Required |
Mutable |
The relationship reference to a PingOne authentication policy. |
|
String |
Required |
Mutable |
The ID of the authentication policy. |
|
String |
Required |
Mutable |
Identifies the authentication policy type. Valid values are |
|
Number |
Optional |
Mutable |
Specifies the maximum acceptable time in seconds since the user was last authenticated. If provided, the value must be a nonzero positive integer. |
|
Object |
Optional |
Mutable |
The group membership requirements for the operation. The |
|
Array |
Required |
Mutable |
The list of groups that define the access requirements for the operation. The end user must be a member of one or more of these groups to gain access to the operation. This is a required property if |
|
Relationship |
Required |
Mutable |
The ID of the group, wrapped in an object, for future extensibility. This is a required property if |
|
String |
Required |
Read-only |
A UUID that specifies the group ID. This is a required property if |
|
Object |
Optional |
Mutable |
Defines the application permission requirements for the operation. |
|
string |
Required |
Mutable |
An application permission ID that defines the access requirements for the operation. The end user must be entitled to the specified application permission to gain access to the operation. This is a required property if |
|
Object |
Optional |
Mutable |
Defines the scope membership requirements for the operation. |
|
String |
Optional |
Mutable |
An enumeration defining the match type of the scope rule. |
|
Array |
Required |
Mutable |
A list of scopes that define the access requirements for the operation. The client must be authorized with |
|
Object |
Required |
Mutable |
The relationship reference to a PingOne scope. |
|
String |
Required |
Read-only |
The ID of the scope. |
|
Array |
Optional |
Mutable |
The methods that define the operation. No duplicates are allowed. Each element must be a valid HTTP token, according to RFC 7230, and cannot exceed 64 characters. An empty array is not valid. To indicate that an operation is defined for every method, the |
|
String |
Optional |
Mutable |
The name of the HTTP method. This value is case-sensitive. |
|
Array |
Required |
Mutable |
The paths that define the operation. The same literal pattern is not allowed within the same operation (the pattern of a |
|
Object |
Required |
Mutable |
The defined pattern that identifies the parent operation. |
|
String |
Required |
Mutable |
The pattern used to identify the path or paths for the operation. The semantics of the pattern are determined by the type. For any type, the pattern can contain characters that are otherwise invalid in a URL path. Invalid characters are handled by performing matching against a percent-decoded HTTP request target path. This allows an administrator to configure patterns without worrying about percent encoding special characters. |
|
String |
Required |
Mutable |
The type of the pattern. Options are |
|
String |
Optional |
Read-only |
The ID of the root policy. |
Response codes
| Code | Message |
|---|---|
200 |
Successful operation. |
201 |
Successfully created. |
204 |
Successfully removed. No content. |
400 |
The request could not be completed. |
401 |
You do not have access to this resource. |
403 |
You do not have permissions or are not licensed to make this request. |
404 |
The requested resource was not found. |