Open 1sweet98912 opened 1 year ago
@1sweet98912 I've never heard of this "unrestricted api" before. Is that just the name of your job?
I am very glad to receive your reply! I want to create global credentials through the api to hold the account and password information, which are used in the pipeline via the 'jenkins-harbor-creds' mode.
@1sweet98912 well ... if you can find that API defined somewhere, or know the URL's to hit, than we could certainly support it here.
hello! I am very glad to receive your reply!I am sorry to trouble you.
I in this website: "https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc" to find the information I want is as follows:
Creating a credentials
The URL for creating a domain is: http://jenkins root url/path to context/credentials/store/store id/domain/domain name/createCredentials. This URL expects a POST request with a Content-Type header of type application/xml. The body of the POST request should be the XML configuration of the credentials domain.
Managing an existing credentials instance
The URL for managing the an existing credentials instance is: http://jenkins root url/path to context/credentials/store/store id/domain/domain name/credential/credentials id/config.xml. This URL expects GET, POST or DELETE request.
A GET request will retrieve the existing configuration. The expected response is:
Listing credentials within a credentials domain.
The most basic URLs for listing the credentials in a domain are:
http://jenkins root url/path to context/credentials/store/store id/domain/domain name/api/xml?tree=credentials[id] for the XML representation
http://jenkins root url/path to context/credentials/store/store id/domain/domain name/api/json?tree=credentials[id] for the JSON representation
This URL expects a GET request. You can modify the tree=… query parameter to fetch additional data.
------------------ 原始邮件 ------------------ 发件人: "cdancy/jenkins-rest" @.>; 发送时间: 2023年1月30日(星期一) 晚上11:00 @.>; @.**@.>; 主题: Re: [cdancy/jenkins-rest] Hello, I would like to ask whether we support the jenkins unrestricted api related to add, query, delete, update, etc. (Issue #274)
@1sweet98912 well ... if you can find that API defined somewhere, or know the URL's to hit, than we could certainly support it here.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Support manage jenkins credentials is very necessary. Use "configuration as code " api to manage jenkins credentials is not good.
Is anyone from the community willing to step up and code these? I currently don't have the time and wont be able to get around to it at least for a little while
安装插件 configuration as code ,获取jenkins.yaml 。后面的就需要自己写代码生成自己的Jenkins.yaml 。在这里可以查看凭据信息
Hello, I would like to ask whether we support the jenkins unrestricted api related to add, query, delete, update, etc.As shown in the picture below!