Create a referencesTo
post
https://{your_site_interface}/opa-hub/api/12.2.34/deployments/{deployment-name}/referencesTo
This operation will create a referencesTo.
Request
Path Parameters
-
deployment-name(required): string
The name of the deployment.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
scope(required): string
Allowed Values:
[ "active", "latest", "all" ]
The scope of the references to be reported. -
targets(required): string
Allowed Values:
[ "deployments", "projects", "all" ]
The requested targets for this report.
Security
-
Authorization: apiKey
Type:
apiKey
Description:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/{API_version}/auth and use it in the Authorization header as: Bearer {token}.
-
oauth2_opa: oauth2
Type:
oauth2
Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/{API_version}/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
201 Response
The request has been fulfilled and resulted in a new resource being created.
Nested Schema : referencesToDeployments
Type:
Show Source
object
-
entries: array
entries
Read Only:
true
An array of deployment references, - hiddenEntries: integer (int64)
-
totalEntries: integer
(int64)
Read Only:
true
The total number of references to this deployment.
Nested Schema : referencesToProjects
Type:
Show Source
object
-
entries: array
entries
Read Only:
true
An array of project references, - hiddenEntries: integer (int64)
-
totalEntries: integer
(int64)
Read Only:
true
The total number of references to this project.
Nested Schema : referencesToDeploymentItem
Type:
Show Source
object
-
activeFlag: boolean
Read Only:
true
Whether this deployment version is the active version. -
environment: string
Read Only:
true
The environment for this deployment version. Only populated when environments are active. -
fingerprint: string
Read Only:
true
The fingerprint of this deployment version. -
kind: string
Read Only:
true
Allowed Values:[ "opm", "flow", "decision" ]
The kind of the deployment version. -
name: string
Read Only:
true
The name of the deployment. -
versionNo: integer
(int64)
Read Only:
true
The deployment version. -
workspace: string
The workspace which the deployment is a member.
Nested Schema : referencesToProjectItem
Type:
Show Source
object
-
environment: string
Read Only:
true
The environment for this project version. Only populated when environments are active. -
fingerprint: string
Read Only:
true
The fingerprint of this project version. -
kind: string
Read Only:
true
Allowed Values:[ "opm", "flow", "decision" ]
The kind of the project version. -
name: string
Read Only:
true
The name of the project. -
versionNo: integer
(int64)
Read Only:
true
The project version. -
workspace: string
The workspace which the project is a member.
400 Response
The request could not be processed because it contains missing or invalid information.