GetPackageManager
Fetches the package manager identified by the UUID.
GET
/
v1
/
namespaces
/
{tenant_meta.namespace}
/
package-managers
/
{uuid}
GetPackageManager
curl --request GET \
--url https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}import requests
url = "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"name": "<string>",
"annotations": {},
"create_time": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"index_data": {
"data": [
"<string>"
],
"search_score": 123,
"tenant": "<string>",
"will_be_deleted_at": "2023-11-07T05:31:56Z"
},
"kind": "<string>",
"parent_kind": "<string>",
"parent_uuid": "<string>",
"references": {},
"tags": [
"<string>"
],
"update_time": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"upsert_time": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"spec": {
"auth_provider": {
"package_manager_type": "PACKAGE_MANAGER_TYPE_UNSPECIFIED",
"aws": {
"allowed_audience": "<string>",
"domain": "<string>",
"domain_owner": "<string>",
"region": "<string>",
"repository": "<string>",
"target_role_arn": "<string>"
},
"gar": {
"location": "<string>",
"project_id": "<string>",
"repository": "<string>",
"service_account_key": "<string>"
}
},
"cargo": {
"priority": 123,
"token": "<string>",
"url": "<string>"
},
"cocoapod": {
"priority": 123,
"url": "<string>"
},
"conan": {
"priority": 123,
"aws": {
"allowed_audience": "<string>",
"domain": "<string>",
"domain_owner": "<string>",
"region": "<string>",
"repository": "<string>",
"target_role_arn": "<string>"
},
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"remote_name": "<string>",
"url": "<string>"
},
"gem": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"gradle": {
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"property_key_name": "<string>",
"property_key_value": "<string>"
},
"mvn": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"id": "<string>",
"is_plugin_repository": true,
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"name": "<string>",
"password": "<string>",
"public_repository": true,
"region": "<string>",
"snapshots": true,
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"npm": {
"priority": 123,
"auth_token": "<string>",
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"scope": "<string>",
"token": "<string>",
"url": "<string>"
},
"nuget": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"package_manager_status": {
"error_message": "<string>",
"last_tested_at": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED"
},
"packagist": {
"auth_kind": "AUTH_KIND_UNSPECIFIED",
"host": "<string>",
"password": "<string>",
"user": "<string>"
},
"pypi": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"swift": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"scope": "<string>",
"token": "<string>",
"url": "<string>"
}
},
"propagate": true,
"tenant_meta": {
"namespace": "<string>"
},
"uuid": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Path Parameters
Query Parameters
Response
A successful response.
PackageManager holds the data for the various package managers of the enterprise. Mainly locations and access credentials when needed to resolve/scan packages from private package managers. An enterprise can create one or more package managers in a namespace. All the package managers of the given namespace will be taken into account when resolving.
Was this page helpful?
GetPackageManager
curl --request GET \
--url https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}import requests
url = "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/package-managers/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"name": "<string>",
"annotations": {},
"create_time": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"index_data": {
"data": [
"<string>"
],
"search_score": 123,
"tenant": "<string>",
"will_be_deleted_at": "2023-11-07T05:31:56Z"
},
"kind": "<string>",
"parent_kind": "<string>",
"parent_uuid": "<string>",
"references": {},
"tags": [
"<string>"
],
"update_time": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"upsert_time": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"spec": {
"auth_provider": {
"package_manager_type": "PACKAGE_MANAGER_TYPE_UNSPECIFIED",
"aws": {
"allowed_audience": "<string>",
"domain": "<string>",
"domain_owner": "<string>",
"region": "<string>",
"repository": "<string>",
"target_role_arn": "<string>"
},
"gar": {
"location": "<string>",
"project_id": "<string>",
"repository": "<string>",
"service_account_key": "<string>"
}
},
"cargo": {
"priority": 123,
"token": "<string>",
"url": "<string>"
},
"cocoapod": {
"priority": 123,
"url": "<string>"
},
"conan": {
"priority": 123,
"aws": {
"allowed_audience": "<string>",
"domain": "<string>",
"domain_owner": "<string>",
"region": "<string>",
"repository": "<string>",
"target_role_arn": "<string>"
},
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"remote_name": "<string>",
"url": "<string>"
},
"gem": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"gradle": {
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"property_key_name": "<string>",
"property_key_value": "<string>"
},
"mvn": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"id": "<string>",
"is_plugin_repository": true,
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"name": "<string>",
"password": "<string>",
"public_repository": true,
"region": "<string>",
"snapshots": true,
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"npm": {
"priority": 123,
"auth_token": "<string>",
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"scope": "<string>",
"token": "<string>",
"url": "<string>"
},
"nuget": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"package_manager_status": {
"error_message": "<string>",
"last_tested_at": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED"
},
"packagist": {
"auth_kind": "AUTH_KIND_UNSPECIFIED",
"host": "<string>",
"password": "<string>",
"user": "<string>"
},
"pypi": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"mtls": {
"client_cert": "<string>",
"client_key": "<string>",
"ca_cert": "<string>",
"server_cert": "<string>"
},
"password": "<string>",
"token_auth": {
"token": "<string>"
},
"url": "<string>",
"user": "<string>"
},
"swift": {
"priority": 123,
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"scope": "<string>",
"token": "<string>",
"url": "<string>"
}
},
"propagate": true,
"tenant_meta": {
"namespace": "<string>"
},
"uuid": "<string>"
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}