Skip to content

Commit

Permalink
update error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Oct 11, 2023
1 parent 6afdd50 commit 99ac207
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .changelog/1419.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:enhancement
zero trust: Add `audit_ssh_settings` api
```
teams: Add `audit_ssh_settings` endpoints
```
6 changes: 5 additions & 1 deletion teams_audit_ssh_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ type UpdateAuditSSHSettingsParams struct {
//
// API reference: https://api.cloudflare.com/#zero-trust-get-audit-ssh-settings
func (api *API) GetAuditSSHSettings(ctx context.Context, rc *ResourceContainer, params GetAuditSSHSettingsParams) (AuditSSHSettings, ResultInfo, error) {
uri := fmt.Sprintf("/%s/%s/gateway/audit_ssh_settings", AccountRouteRoot, rc.Identifier)
if rc.Level != AccountRouteLevel {
return AuditSSHSettings{}, ResultInfo{}, fmt.Errorf(errInvalidResourceContainerAccess, rc.Level)
}

uri := fmt.Sprintf("/%s/%s/gateway/audit_ssh_settings", rc.Level, rc.Identifier)

res, err := api.makeRequestContext(ctx, http.MethodGet, uri, nil)
if err != nil {
Expand Down

0 comments on commit 99ac207

Please sign in to comment.