|
| 1 | +{ |
| 2 | + "$id": "connection_config.schema.json", |
| 3 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 4 | + "type": "object", |
| 5 | + "unevaluatedProperties": false, |
| 6 | + "description": "Configuration for a connection to a data source or destination", |
| 7 | + "properties": { |
| 8 | + "project": { |
| 9 | + "type": "string", |
| 10 | + "description": "CDF project used for the connection." |
| 11 | + }, |
| 12 | + "base-url": { |
| 13 | + "type": "string", |
| 14 | + "description": "CDF base URL used for the connection, for example https://api.cognitedata.com or https://az-eastus-1.cognitedata.com" |
| 15 | + }, |
| 16 | + "integration": { |
| 17 | + "type": "object", |
| 18 | + "description": "Name of the integration to use for remote config and status reporting.", |
| 19 | + "unevaluatedProperties": false, |
| 20 | + "properties": { |
| 21 | + "external-id": { |
| 22 | + "type": "string", |
| 23 | + "description": "External ID of the integration to use for remote config and status reporting." |
| 24 | + } |
| 25 | + }, |
| 26 | + "required": [ |
| 27 | + "external-id" |
| 28 | + ] |
| 29 | + }, |
| 30 | + "authentication": { |
| 31 | + "type": "object", |
| 32 | + "unevaluatedProperties": false, |
| 33 | + "description": "Authentication configuration for the CDF connection.", |
| 34 | + "discriminatorProp": "type", |
| 35 | + "oneOf": [ |
| 36 | + { |
| 37 | + "type": "object", |
| 38 | + "description": "Configuration for connecting to CDF using client credentials.", |
| 39 | + "unevaluatedProperties": false, |
| 40 | + "title": "Client Credentials", |
| 41 | + "properties": { |
| 42 | + "type": { |
| 43 | + "type": "string", |
| 44 | + "const": "client-credentials", |
| 45 | + "description": "Type of authentication, must be 'client-credentials' for connecting to CDF using client credentials." |
| 46 | + }, |
| 47 | + "client-id": { |
| 48 | + "type": "string", |
| 49 | + "description": "Client ID" |
| 50 | + }, |
| 51 | + "scopes": { |
| 52 | + "type": "string", |
| 53 | + "description": "Space separated list of scopes to request when obtaining access tokens, for example https://api.cognitedata.com/.default." |
| 54 | + }, |
| 55 | + "client-secret": { |
| 56 | + "type": "string", |
| 57 | + "description": "Client secret" |
| 58 | + }, |
| 59 | + "token-url": { |
| 60 | + "type": "string", |
| 61 | + "description": "Token URL for obtaining access tokens, for example https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token" |
| 62 | + }, |
| 63 | + "resource": { |
| 64 | + "type": "string", |
| 65 | + "description": "Resource identifier passed along with token requests." |
| 66 | + }, |
| 67 | + "audience": { |
| 68 | + "type": "string", |
| 69 | + "description": "Audience identifier passed along with token requests." |
| 70 | + } |
| 71 | + }, |
| 72 | + "required": [ |
| 73 | + "type", |
| 74 | + "client-id", |
| 75 | + "scopes", |
| 76 | + "client-secret", |
| 77 | + "token-url" |
| 78 | + ] |
| 79 | + }, |
| 80 | + { |
| 81 | + "type": "object", |
| 82 | + "description": "Configuration for connecting to CDF using a certificate.", |
| 83 | + "unevaluatedProperties": false, |
| 84 | + "title": "Client Certificate", |
| 85 | + "properties": { |
| 86 | + "type": { |
| 87 | + "type": "string", |
| 88 | + "const": "client-certificate", |
| 89 | + "description": "Type of authentication, must be 'client-certificate' for connecting to CDF using a client certificate." |
| 90 | + }, |
| 91 | + "client-id": { |
| 92 | + "type": "string", |
| 93 | + "description": "Client ID" |
| 94 | + }, |
| 95 | + "scopes": { |
| 96 | + "type": "string", |
| 97 | + "description": "Space separated list of scopes to request when obtaining access tokens, for example https://api.cognitedata.com/.default." |
| 98 | + }, |
| 99 | + "path": { |
| 100 | + "type": "string", |
| 101 | + "description": "Path to the client certificate file." |
| 102 | + }, |
| 103 | + "authority-url": { |
| 104 | + "type": "string", |
| 105 | + "description": "Authority URL for obtaining access tokens." |
| 106 | + }, |
| 107 | + "password": { |
| 108 | + "type": "string", |
| 109 | + "description": "Password for the client certificate, if it is encrypted." |
| 110 | + } |
| 111 | + }, |
| 112 | + "required": [ |
| 113 | + "type", |
| 114 | + "client-id", |
| 115 | + "scopes", |
| 116 | + "path", |
| 117 | + "authority-url" |
| 118 | + ] |
| 119 | + } |
| 120 | + ] |
| 121 | + }, |
| 122 | + "connection": { |
| 123 | + "type": "object", |
| 124 | + "description": "Additional configuration for the connection.", |
| 125 | + "unevaluatedProperties": false, |
| 126 | + "properties": { |
| 127 | + "retries": { |
| 128 | + "$ref": "retries_config.schema.json" |
| 129 | + }, |
| 130 | + "ssl-certificates": { |
| 131 | + "type": "object", |
| 132 | + "description": "Configuration for SSL certificates to use for the connection.", |
| 133 | + "unevaluatedProperties": false, |
| 134 | + "properties": { |
| 135 | + "verify": { |
| 136 | + "type": "boolean", |
| 137 | + "description": "Whether to verify SSL certificates for the connection.", |
| 138 | + "default": true |
| 139 | + }, |
| 140 | + "allow-list": { |
| 141 | + "type": "array", |
| 142 | + "description": "List of SSL certificate thumbprints to allow for the connection, even if they are not valid according to the system's certificate store.", |
| 143 | + "items": { |
| 144 | + "type": "string" |
| 145 | + } |
| 146 | + } |
| 147 | + } |
| 148 | + } |
| 149 | + } |
| 150 | + } |
| 151 | + } |
| 152 | +} |
0 commit comments