SmsPackageManagerConfigService
Update Package Manager Auth Config
Update an existing package manager authentication configuration.
patch/api/agent/deployments/{deploymentId}/packagemanagerauthconfigs/{packageManagerConfigId}
Request
- The document declares no server URL.
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
deploymentIdinteger required
The unique identifier for the deployment.
packageManagerConfigIdinteger required
The unique identifier for the package manager configuration to update.
Example:123
Request body
Example request
{
"packageManagerConfigId": 123,
"packageManagerConfigForInsert": {
"config": {
"id": 123,
"name": "Corporate Maven Repository",
"url": "https://repo.mycompany.com/maven2",
"requiresAuth": true,
"ecosystem": "maven",
"deploymentId": 456,
"additionalConfig": {
"maven": {
"repositoryType": "MAVEN_REPOSITORY_TYPE_RELEASE"
}
}
},
"maven": {
"username": "my-username",
"password": "my-password"
},
"pypi": {
"username": "my-username",
"password": "my-password"
},
"codeArtifact": {
"assumeRoleArn": "arn:aws:iam::123456789012:role/my-codeartifact-role"
},
"npm": {
"token": "<registry auth token>",
"basicAuth": {
"username": "my-username",
"password": "my-password"
}
}
}
}Response
OK
Example response
{
"packageManagerConfig": {
"id": 123,
"name": "Corporate Maven Repository",
"url": "https://repo.mycompany.com/maven2",
"requiresAuth": true,
"ecosystem": "maven",
"deploymentId": 456,
"additionalConfig": {
"maven": {
"repositoryType": "MAVEN_REPOSITORY_TYPE_RELEASE"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.