Skip to content

Latest commit

 

History

History
79 lines (48 loc) · 2.64 KB

File metadata and controls

79 lines (48 loc) · 2.64 KB

\NamespaceNetworkPolicyRuleListApi

All URIs are relative to http://localhost

Method HTTP request Description
ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet Get /apis/security.k8smgmt.io/v3/projects/{project}/namespacenetworkpolicyrules

ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet

NamespaceNetworkPolicyRuleList ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet(ctx, project).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
    project := "project_example" // string | project of the resource

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.NamespaceNetworkPolicyRuleListApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet(context.Background(), project).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `NamespaceNetworkPolicyRuleListApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet`: NamespaceNetworkPolicyRuleList
    fmt.Fprintf(os.Stdout, "Response from `NamespaceNetworkPolicyRuleListApi.ApisSecurityK8smgmtIoV3ProjectsProjectNamespacenetworkpolicyrulesGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
project string project of the resource

Other Parameters

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

Name Type Description Notes

Return type

NamespaceNetworkPolicyRuleList

Authorization

ApiKeyAuth

HTTP request headers

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

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