POST api/OfflineEnvironments
Creates a new offline environment.
Request Information
URI Parameters
None.
Body Parameters
Data to use for the new offline environment.
NewOfflineEnvironment| Name | Description | Type | Additional information |
|---|---|---|---|
| TpmSupported |
Indicate whether the environment supports TPM hardware. Default is false. |
boolean |
None. |
Request Formats
application/json, text/json
{
"TpmSupported": true
}
Response Information
Resource Description
OfflineEnvironment| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The ID of the offline environment. |
globally unique identifier |
Required |
| TpmSupported |
Indicates if offline environment is for a TPM supported environment. |
boolean |
Required |
| EncryptedMasterEncryptionKey |
If TpmSupported is true, then this field is present and has a constant value of [EXPORTABLE] which indicates a master encryption key can be exported. |
string |
None. |
| EncryptedMasterEncryptionIv |
If TpmSupported is true, then this field is present and has a constant value of [EXPORTABLE] which indicates a master encryption IV can be exported. |
string |
Required |
| EncryptedEncryptionKey |
The encrypted offline environment encryption key. |
Collection of byte |
Required |
| Created |
The date when the offline environment was created (in the ISO 8601 format). |
date |
Required |
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- Created (201) - The offline environment is successfully added.
- BadRequest (400) - The data for a new offline environment is invalid.
Response Formats
application/json, text/json
{
"Id": "ea525999-89dc-48ab-a63c-64322d8bc80e",
"TpmSupported": true,
"EncryptedMasterEncryptionKey": "sample string 3",
"EncryptedMasterEncryptionIv": "sample string 4",
"EncryptedEncryptionKey": "QEA=",
"Created": "2025-10-28T08:43:00.4975006+00:00"
}