go-MSRC
所属分类:系统/网络安全
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2023-10-07 16:34:24
上 传 者:
sh-1993
说明: 转到Microsoft安全响应中心(MSRC)API的openapi客户端,
(Go openapi client for the Microsoft Security Response Center (MSRC) API,)
文件列表:
LICENSE (1069, 2024-01-02)
generate.sh (559, 2024-01-02)
go.mod (42, 2024-01-02)
openapi/ (0, 2024-01-02)
openapi/.openapi-generator-ignore (1040, 2024-01-02)
openapi/.openapi-generator/ (0, 2024-01-02)
openapi/.openapi-generator/FILES (4022, 2024-01-02)
openapi/.openapi-generator/VERSION (5, 2024-01-02)
openapi/.travis.yml (71, 2024-01-02)
openapi/api/ (0, 2024-01-02)
openapi/api/openapi.yaml (54366, 2024-01-02)
openapi/api_get_security_updates.go (12281, 2024-01-02)
openapi/client.go (17077, 2024-01-02)
openapi/configuration.go (6707, 2024-01-02)
openapi/docs/ (0, 2024-01-02)
openapi/docs/AffectedFile.md (5135, 2024-01-02)
openapi/docs/BranchType.md (2717, 2024-01-02)
openapi/docs/Cvrfdoc.md (9870, 2024-01-02)
openapi/docs/CvrfdocAcknowledgment.md (4149, 2024-01-02)
openapi/docs/CvrfdocAcknowledgmentDescription.md (2495, 2024-01-02)
openapi/docs/CvrfdocAcknowledgmentName.md (2362, 2024-01-02)
openapi/docs/CvrfdocAcknowledgmentOrganization.md (2514, 2024-01-02)
openapi/docs/CvrfdocAggregateSeverity.md (3051, 2024-01-02)
openapi/docs/CvrfdocDocumentDistribution.md (2400, 2024-01-02)
openapi/docs/CvrfdocDocumentPublisher.md (4351, 2024-01-02)
openapi/docs/CvrfdocDocumentPublisherContactDetails.md (2609, 2024-01-02)
openapi/docs/CvrfdocDocumentPublisherIssuingAuthority.md (2647, 2024-01-02)
openapi/docs/CvrfdocDocumentTitle.md (2267, 2024-01-02)
openapi/docs/CvrfdocDocumentTracking.md (6849, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingGenerator.md (3492, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingGeneratorEngine.md (2609, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingIdentification.md (2929, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingIdentificationAlias.md (2685, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingIdentificationID.md (2628, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingRevision.md (3465, 2024-01-02)
openapi/docs/CvrfdocDocumentTrackingRevisionDescription.md (2685, 2024-01-02)
... ...
# go-MSRC
[![Go Reference](https://pkg.go.dev/badge/github.com/rhaist/go-MSRC/openapi.svg)](https://pkg.go.dev/github.com/rhaist/go-MSRC/openapi)
Go openapi client for the Microsoft Security Response Center (MSRC) API
## Overview
This API client was generated by using the [OpenAPI Generator](https://openapi-generator.tech) project.
Please have a look at the generated [README](openapi/README.md) for additional information.
## Usage
The following code shows how the client can be used to get the Patchday data for
a specific month.
Please refer to the [official documentation](https://pkg.go.dev/github.com/rhaist/go-MSRC/openapi)
for advanced usage of this client.
```go
package main
import (
"context"
"fmt"
"os"
"github.com/rhaist/go-MSRC/openapi"
)
const API_KEY = "CHANGEME"
func main() {
key := "2021-Feb" // string | update ID (yyyy-mmm), vulnerability ID (CVE number), or year (yyyy)
configuration := openapi.NewConfiguration()
api_client := openapi.NewAPIClient(configuration)
resp, r, err := api_client.GetSecurityUpdatesApi.UpdatesGetUpdatesByKey(context.Background(), key).ApiVersion(apiVersion).Execute()
if err.Error() != "" {
fmt.Fprintf(os.Stderr, "Error when calling `GetSecurityUpdatesApi.UpdatesGetUpdatesByKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdatesGetUpdatesByKey`: InlineResponse200
fmt.Fprintf(os.Stdout, "Response from `GetSecurityUpdatesApi.UpdatesGetUpdatesByKey`: %v\n", resp)
}
```
## License
This software is distributed under the MIT license.
Please have a look at the LICENSE file in the source distribution.
近期下载者:
相关文件:
收藏者: