All URIs are relative to https://sailpoint.api.identitynow.com/beta
Method | HTTP request | Description |
---|---|---|
CreateSodPolicy | Post /sod-policies | Create SOD Policy |
DeleteSodPolicyById | Delete /sod-policies/{id} | Delete SOD Policy by ID |
DeleteSodPolicyScheduleById | Delete /sod-policies/{id}/schedule | Delete SOD Policy Schedule |
DownloadCustomViolationReport | Get /sod-violation-report/{reportResultId}/download/{fileName} | Download custom violation report |
DownloadDefaultViolationReport | Get /sod-violation-report/{reportResultId}/download | Download violation report |
GetSodAllReportRunStatus | Get /sod-violation-report | Get multi-report run task status |
GetSodPolicyById | Get /sod-policies/{id} | Get SOD Policy By ID |
GetSodPolicyScheduleById | Get /sod-policies/{id}/schedule | Get SOD Policy Schedule |
GetSodViolationReportRunStatus | Get /sod-violation-report-status/{reportResultId} | Get violation report run status |
GetSodViolationReportStatus | Get /sod-policies/{id}/violation-report | Get SOD violation report status |
ListSodPolicies | Get /sod-policies | List SOD Policies |
PatchSodPolicy | Patch /sod-policies/{id} | Update a SOD Policy |
RunAllPoliciesForOrg | Post /sod-violation-report/run | Runs all policies for Org. |
RunSodPolicy | Post /sod-policies/{id}/violation-report/run | Runs SOD Policy Violation Report |
UpdatePolicyById | Put /sod-policies/{id} | Update SOD Policy By ID |
UpdatePolicyScheduleById | Put /sod-policies/{id}/schedule | Update SOD Policy schedule |
SodPolicy CreateSodPolicy(ctx).SodPolicy(sodPolicy).Execute()
Create SOD Policy
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.CreateSodPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSodPolicy`: SodPolicy
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.CreateSodPolicy`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateSodPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
sodPolicy | SodPolicy |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteSodPolicyById(ctx, id).Logical(logical).Execute()
Delete SOD Policy by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the SOD Policy to delete.
logical := true // bool | whether this is soft delete i.e. logical true or hard delete (optional) (default to true)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.DeleteSodPolicyById(context.Background(), id).Logical(logical).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.DeleteSodPolicyById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD Policy to delete. |
Other parameters are passed through a pointer to a apiDeleteSodPolicyByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
logical | bool | whether this is soft delete i.e. logical true or hard delete | [default to true]
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteSodPolicyScheduleById(ctx, id).Execute()
Delete SOD Policy Schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the SOD Policy for which the schedule needs to be deleted.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.DeleteSodPolicyScheduleById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.DeleteSodPolicyScheduleById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD Policy for which the schedule needs to be deleted. |
Other parameters are passed through a pointer to a apiDeleteSodPolicyScheduleByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadCustomViolationReport(ctx, reportResultId, fileName).Execute()
Download custom violation report
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download.
fileName := "custom-name" // string | Custom Name for the file.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.DownloadCustomViolationReport(context.Background(), reportResultId, fileName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.DownloadCustomViolationReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadCustomViolationReport`: *os.File
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.DownloadCustomViolationReport`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportResultId | string | The ID of the report reference to download. | |
fileName | string | Custom Name for the file. |
Other parameters are passed through a pointer to a apiDownloadCustomViolationReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/zip, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadDefaultViolationReport(ctx, reportResultId).Execute()
Download violation report
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportResultId := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the report reference to download.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.DownloadDefaultViolationReport(context.Background(), reportResultId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.DownloadDefaultViolationReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DownloadDefaultViolationReport`: *os.File
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.DownloadDefaultViolationReport`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportResultId | string | The ID of the report reference to download. |
Other parameters are passed through a pointer to a apiDownloadDefaultViolationReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/zip, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportResultReference GetSodAllReportRunStatus(ctx).Execute()
Get multi-report run task status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.GetSodAllReportRunStatus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.GetSodAllReportRunStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSodAllReportRunStatus`: ReportResultReference
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.GetSodAllReportRunStatus`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetSodAllReportRunStatusRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SodPolicy GetSodPolicyById(ctx, id).Execute()
Get SOD Policy By ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.GetSodPolicyById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.GetSodPolicyById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSodPolicyById`: SodPolicy
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.GetSodPolicyById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the object reference to retrieve. |
Other parameters are passed through a pointer to a apiGetSodPolicyByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SodPolicySchedule GetSodPolicyScheduleById(ctx, id).Execute()
Get SOD Policy Schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.GetSodPolicyScheduleById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.GetSodPolicyScheduleById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSodPolicyScheduleById`: SodPolicySchedule
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.GetSodPolicyScheduleById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the object reference to retrieve. |
Other parameters are passed through a pointer to a apiGetSodPolicyScheduleByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportResultReference GetSodViolationReportRunStatus(ctx, reportResultId).Execute()
Get violation report run status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
reportResultId := "2e8d8180-24bc-4d21-91c6-7affdb473b0d" // string | The ID of the report reference to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.GetSodViolationReportRunStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSodViolationReportRunStatus`: ReportResultReference
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.GetSodViolationReportRunStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reportResultId | string | The ID of the report reference to retrieve. |
Other parameters are passed through a pointer to a apiGetSodViolationReportRunStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportResultReference GetSodViolationReportStatus(ctx, id).Execute()
Get SOD violation report status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the object reference to retrieve.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.GetSodViolationReportStatus(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.GetSodViolationReportStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSodViolationReportStatus`: ReportResultReference
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.GetSodViolationReportStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the object reference to retrieve. |
Other parameters are passed through a pointer to a apiGetSodViolationReportStatusRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]SodPolicy ListSodPolicies(ctx).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute()
List SOD Policies
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
limit := int32(250) // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
offset := int32(0) // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false)
filters := "id eq "bc693f07e7b645539626c25954c58554"" // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **state**: *eq* (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.ListSodPolicies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSodPolicies`: []SodPolicy
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.ListSodPolicies`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListSodPoliciesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | int32 | Max number of results to return. See V3 API Standard Collection Parameters for more information. | [default to 250] |
offset | int32 | Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information. | [default to 0] |
count | bool | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information. | [default to false] |
filters | string | Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: id: eq name: eq state: eq |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SodPolicy PatchSodPolicy(ctx, id).RequestBody(requestBody).Execute()
Update a SOD Policy
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "2c9180835d191a86015d28455b4a2329" // string | The ID of the SOD Policy being modified.
requestBody := []map[string]interface{}{map[string]interface{}(123)} // []map[string]interface{} | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.PatchSodPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchSodPolicy`: SodPolicy
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.PatchSodPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD Policy being modified. |
Other parameters are passed through a pointer to a apiPatchSodPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
requestBody | []map[string]interface{} | A list of SOD Policy update operations according to the JSON Patch standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria |
- Content-Type: application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportResultReference RunAllPoliciesForOrg(ctx).MultiPolicyRequest(multiPolicyRequest).Execute()
Runs all policies for Org.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
multiPolicyRequest := *openapiclient.NewMultiPolicyRequest() // MultiPolicyRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.RunAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.RunAllPoliciesForOrg``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RunAllPoliciesForOrg`: ReportResultReference
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.RunAllPoliciesForOrg`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiRunAllPoliciesForOrgRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
multiPolicyRequest | MultiPolicyRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportResultReference RunSodPolicy(ctx, id).Execute()
Runs SOD Policy Violation Report
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the SOD Policy to run.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.RunSodPolicy(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.RunSodPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RunSodPolicy`: ReportResultReference
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.RunSodPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD Policy to run. |
Other parameters are passed through a pointer to a apiRunSodPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SodPolicy UpdatePolicyById(ctx, id).SodPolicy(sodPolicy).Execute()
Update SOD Policy By ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the SOD policy to update.
sodPolicy := *openapiclient.NewSodPolicy() // SodPolicy |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.UpdatePolicyById(context.Background(), id).SodPolicy(sodPolicy).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.UpdatePolicyById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdatePolicyById`: SodPolicy
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.UpdatePolicyById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD policy to update. |
Other parameters are passed through a pointer to a apiUpdatePolicyByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
sodPolicy | SodPolicy | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SodPolicySchedule UpdatePolicyScheduleById(ctx, id).SodPolicySchedule(sodPolicySchedule).Execute()
Update SOD Policy schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "ef38f94347e94562b5bb8424a56397d8" // string | The ID of the SOD policy to update its schedule.
sodPolicySchedule := *openapiclient.NewSodPolicySchedule() // SodPolicySchedule |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SODPolicyApi.UpdatePolicyScheduleById(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SODPolicyApi.UpdatePolicyScheduleById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdatePolicyScheduleById`: SodPolicySchedule
fmt.Fprintf(os.Stdout, "Response from `SODPolicyApi.UpdatePolicyScheduleById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The ID of the SOD policy to update its schedule. |
Other parameters are passed through a pointer to a apiUpdatePolicyScheduleByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
sodPolicySchedule | SodPolicySchedule | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]