Skip to content

Latest commit

 

History

History
204 lines (124 loc) · 5.88 KB

AppApprovalsAPI.md

File metadata and controls

204 lines (124 loc) · 5.88 KB

AppApprovalsAPI

All URIs are relative to https://csp.infoblox.com/api/atcfw/v1

Method HTTP request Description
ListAppApprovals Get /app_approvals
ReplaceAppApprovals Put /app_approvals Update Application Approval.
UpdateAppApprovals Patch /app_approvals

ListAppApprovals

AppApprovalMultiResponse ListAppApprovals(ctx).Filter(filter).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/infobloxopen/bloxone-go-client/fw"
)

func main() {

	apiClient := fw.NewAPIClient()
	resp, r, err := apiClient.AppApprovalsAPI.ListAppApprovals(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AppApprovalsAPI.ListAppApprovals``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListAppApprovals`: AppApprovalMultiResponse
	fmt.Fprintf(os.Stdout, "Response from `AppApprovalsAPI.ListAppApprovals`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a AppApprovalsAPIListAppApprovalsRequest struct via the builder pattern

Name Type Description Notes
filter string A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: Op

Return type

AppApprovalMultiResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceAppApprovals

AppApprovalMultiResponse ReplaceAppApprovals(ctx).Body(body).Execute()

Update Application Approval.

Example

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/infobloxopen/bloxone-go-client/fw"
)

func main() {
	body := *fw.NewAppApprovalsReplaceRequest() // AppApprovalsReplaceRequest | 

	apiClient := fw.NewAPIClient()
	resp, r, err := apiClient.AppApprovalsAPI.ReplaceAppApprovals(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AppApprovalsAPI.ReplaceAppApprovals``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ReplaceAppApprovals`: AppApprovalMultiResponse
	fmt.Fprintf(os.Stdout, "Response from `AppApprovalsAPI.ReplaceAppApprovals`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a AppApprovalsAPIReplaceAppApprovalsRequest struct via the builder pattern

Name Type Description Notes
body AppApprovalsReplaceRequest

Return type

AppApprovalMultiResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateAppApprovals

AppApprovalMultiResponse UpdateAppApprovals(ctx).Body(body).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/infobloxopen/bloxone-go-client/fw"
)

func main() {
	body := *fw.NewAppApprovalsUpdateRequest() // AppApprovalsUpdateRequest | 

	apiClient := fw.NewAPIClient()
	resp, r, err := apiClient.AppApprovalsAPI.UpdateAppApprovals(context.Background()).Body(body).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AppApprovalsAPI.UpdateAppApprovals``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateAppApprovals`: AppApprovalMultiResponse
	fmt.Fprintf(os.Stdout, "Response from `AppApprovalsAPI.UpdateAppApprovals`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a AppApprovalsAPIUpdateAppApprovalsRequest struct via the builder pattern

Name Type Description Notes
body AppApprovalsUpdateRequest

Return type

AppApprovalMultiResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]