Update a Python upstream config for this repository.

Update a Python upstream config for this repository.

Path Params
string
required
string
required
string
required
Body Params
string
enum
Defaults to None

The authentication mode to use when accessing this upstream.

Allowed:
string | null

Secret to provide with requests to upstream.

string | null

Username to provide with requests to upstream.

string | null

The key for extra header #1 to send to upstream.

string | null

The key for extra header #2 to send to upstream.

string | null

The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.

string | null

The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.

boolean

Whether or not this upstream is active and ready for requests.

string
enum
Defaults to Proxy Only

The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.

Allowed:
string
required
length between 1 and 64

A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.

integer
1 to 32767

Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.

string
enum
Defaults to Trusted

Trust level allows for control of the visibility of upstream artifacts to native package managers. Where supported by formats, the default level (untrusted) is recommended for all upstreams, and helps to safeguard against common dependency confusion attack vectors.

Allowed:
uri
required
length between 1 and 200

The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository.

boolean

If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.

Responses

Language
Credentials
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution

With support for all major package formats, you can trust us to manage your software supply chain.


Start My Free Trial Now
Cookie Declaration (Manage Cookies)