URL:
https://<root>/notebooks/runtimes/<runtimeID>/copy
Methods:
POST
Version Introduced:
11.5

Access requirements

Required privileges

The ArcGIS Enterprise Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.



To access notebook-related endpoints, administrators must be assigned a custom role that includes any of the privileges listed above as well as the Create and edit notebooks privilege.

Tokens

This API requires token-based authentication. A token is automatically generated for administrators who sign in to the ArcGIS Enterprise Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.

Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generateToken operation in the ArcGIS Portal Directory API. For security reasons, all POST requests made to the ArcGIS Enterprise Administrator API must include a token in the request body.


Learn how to generate a token

Description

The copy operation allows you to duplicate a system created runtime as a user created runtime with customized settings.

Request parameters

ParameterDetails

name

(Required)

The name of the new runtime created by the copy operation.

minCpu

(Required)

The minimum number of CPU cores requested for notebook deployments that use this runtime.

maxCPU

(Required)

The maximum number of CPU cores that can be used by a notebook deployment when this runtime is applied to it.

minMemory

(Required)

The minimum amount of memory requested for notebook deployments that use this runtime.

minMemoryUnit

(Required)

The unit for the minMemory value.

Values: g (gigabytes) | m (megabytes) | k (kilobytes) | b (bytes)

maxMemory

(Required)

The maximum amount of memory allowed for notebook deployments that use this runtime.

maxMemoryUnit

(Required)

The unit for the maxMemory parameter.

Values: g (gigabytes) | m (megabytes) | k (kilobytes) | b (bytes)

maxSwapMemory

(Optional)

The maximum amount of total memory, including swap space, that can be used by a notebook deployment when this runtime is applied to it. If left unspecified, the value is double that of the maxMemory value.

maxSwapMemoryUnit

(Optional)

The unit for the maxSwapMemory parameter.

Values: g (gigabytes) | m (megabytes) | k (kilobytes) | b (bytes)

sharedMemorySize

(Optional)

The amount of shared memory available for each notebook deployment.

sharedMemorySizeUnit

(Optional)

The unit specified by the sharedMemory parameter.

Values: g (gigabytes) | m (megabytes) | k (kilobytes) | b (bytes)

podPlacementPolicy

(Optional)

Specifies pod placement rules for notebook deployments, such as node affinity and tolerations, to control where pods are allowed to run in the cluster.

customResources

(Optional)

Specifies additional Kubernetes extended resource requests and limits for notebook deployments. This parameter is used to enable GPU resources.

Example:

Use dark colors for code blocksCopy
1
{"requests": {"nvidia.com/gpu": <unit-count>}, "limits": {"nvidia.com/gpu": <unit-count>}}

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the copy operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
POST /<context>/admin/notebooks/runtimes/d47350a5-e4f0-4b63-ae55-c0a5773a96bb/copy HTTP/1.1
Host: organization.example.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Length: []

------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="name"

ArcGIS Notebook Python 3 Standard with Increased Limit
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="version"

14.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="minCpu"

1.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="maxCpu"

4.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="minMemory"

3.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="minMemoryUnit"

g
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="maxMemory"

14.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="maxMemoryUnit"

g
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="maxSwapMemory"

0.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="maxSwapMemoryUnit"

g
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="sharedMemorySize"

1.0
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="sharedMemorySizeUnit"

g
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="customResources"

{}
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="podPlacementPolicy"

{}
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="f"

pjson
------WebKitFormBoundaryL5YRj9mNg555VaiA
Content-Disposition: form-data; name="token"

<ACCESS_TOKEN>
------WebKitFormBoundaryL5YRj9mNg555VaiA--

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "notebookRuntime": {
        "id": "4fff3ef8-e5de-48cd-a9c1-6fe66b0b87e7",
        "name": "ArcGIS Notebook Python 3 Standard with Increased Limit",
        "requiresAdvancedPrivileges": false,
        "copied": true,
        "version": "14.0",
        "esriProvidedRuntime": false,
        "deploymentDefaultPropertyId": "pdo9x9mjz1q8iovqs5cx3",
        "minCpu": 1,
        "maxCpu": 4,
        "minMemory": 3,
        "minMemoryUnit": "g",
        "maxMemory": 14,
        "maxMemoryUnit": "g",
        "maxSwapMemory": 0,
        "maxSwapMemoryUnit": "g",
        "sharedMemorySize": 1,
        "sharedMemorySizeUnit": "g",
        "podPlacementPolicy": {},
        "customResources": {},
        "revision": 1778498325187
    },
    "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.