All URIs are relative to https://sailpoint.api.identitynow.com/v3
Method | HTTP request | Description |
---|---|---|
BulkUpdateProvisioningPolicies | Post /sources/{sourceId}/provisioning-policies/bulk-update | Bulk Update Provisioning Policies |
CreateProvisioningPolicy | Post /sources/{sourceId}/provisioning-policies | Create Provisioning Policy |
CreateSchema | Post /sources/{sourceId}/schemas | Create Schema on a Source |
CreateSource | Post /sources | Creates a source in IdentityNow. |
DeleteProvisioningPolicy | Delete /sources/{sourceId}/provisioning-policies/{usageType} | Delete Provisioning Policy by UsageType |
DeleteSchema | Delete /sources/{sourceId}/schemas/{schemaId} | Delete Source Schema by ID |
DeleteSource | Delete /sources/{id} | Delete Source by ID |
DownloadSourceAccountsSchema | Get /sources/{id}/schemas/accounts | Downloads source accounts schema template |
DownloadSourceEntitlementsSchema | Get /sources/{id}/schemas/entitlements | Downloads source entitlements schema template |
GetProvisioningPolicy | Get /sources/{sourceId}/provisioning-policies/{usageType} | Get Provisioning Policy by UsageType |
GetSchema | Get /sources/{sourceId}/schemas/{schemaId} | Get Source Schema by ID |
GetSource | Get /sources/{id} | Get Source by ID |
GetSourceHealth | Get /sources/{sourceId}/source-health | This API fetches source health by source's id |
ListProvisioningPolicies | Get /sources/{sourceId}/provisioning-policies | Lists ProvisioningPolicies |
ListSchemas | Get /sources/{sourceId}/schemas | List Schemas on a Source |
ListSources | Get /sources | Lists all sources in IdentityNow. |
ReplaceProvisioningPolicy | Put /sources/{sourceId}/provisioning-policies/{usageType} | Update Provisioning Policy by UsageType |
ReplaceSchema | Put /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Full) |
ReplaceSource | Put /sources/{id} | Update Source (Full) |
UpdateProvisioningPolicy | Patch /sources/{sourceId}/provisioning-policies/{usageType} | Partial update of Provisioning Policy |
UpdateSchema | Patch /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Partial) |
UpdateSource | Patch /sources/{id} | Update Source (Partial) |
UploadConnectorFile | Post /sources/{sourceId}/upload-connector-file | Upload connector file to source |
UploadSourceAccountsSchema | Post /sources/{id}/schemas/accounts | Uploads source accounts schema template |
UploadSourceEntitlementsSchema | Post /sources/{id}/schemas/entitlements | Uploads source entitlements schema template |
[]ProvisioningPolicyDto BulkUpdateProvisioningPolicies(ctx, sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
Bulk Update Provisioning Policies
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
provisioningPolicyDto := []openapiclient.ProvisioningPolicyDto{*openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities")} // []ProvisioningPolicyDto |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.BulkUpdateProvisioningPolicies(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.BulkUpdateProvisioningPolicies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkUpdateProvisioningPolicies`: []ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.BulkUpdateProvisioningPolicies`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. |
Other parameters are passed through a pointer to a apiBulkUpdateProvisioningPoliciesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
provisioningPolicyDto | []ProvisioningPolicyDto | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProvisioningPolicyDto CreateProvisioningPolicy(ctx, sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
Create Provisioning Policy
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id
provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.CreateProvisioningPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateProvisioningPolicy`: ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.CreateProvisioningPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id |
Other parameters are passed through a pointer to a apiCreateProvisioningPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
provisioningPolicyDto | ProvisioningPolicyDto | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schema CreateSchema(ctx, sourceId).Schema(schema).Execute()
Create Schema on a Source
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
schema := *openapiclient.NewSchema() // Schema |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.CreateSchema(context.Background(), sourceId).Schema(schema).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.CreateSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.CreateSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. |
Other parameters are passed through a pointer to a apiCreateSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
schema | Schema | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Source CreateSource(ctx).Source(source).ProvisionAsCsv(provisionAsCsv).Execute()
Creates a source in IdentityNow.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
source := *openapiclient.NewSource() // Source |
provisionAsCsv := true // bool | Configures the source as a DelimitedFile type of source. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.CreateSource``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSource`: Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.CreateSource`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateSourceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
source | Source | ||
provisionAsCsv | bool | Configures the source as a DelimitedFile type of source. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteProvisioningPolicy(ctx, sourceId, usageType).Execute()
Delete Provisioning Policy by UsageType
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID.
usageType := openapiclient.UsageType("CREATE") // UsageType | The type of ProvisioningPolicy usage.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DeleteProvisioningPolicy``: %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. | |
sourceId | string | The Source ID. | |
usageType | UsageType | The type of ProvisioningPolicy usage. |
Other parameters are passed through a pointer to a apiDeleteProvisioningPolicyRequest 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]
DeleteSchema(ctx, sourceId, schemaId).Execute()
Delete Source Schema by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.DeleteSchema(context.Background(), sourceId, schemaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DeleteSchema``: %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. | |
sourceId | string | The Source id. | |
schemaId | string | The Schema id. |
Other parameters are passed through a pointer to a apiDeleteSchemaRequest 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]
BaseReferenceDto DeleteSource(ctx, id).Execute()
Delete Source by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "2c9180835d191a86015d28455b4a2329" // string | The Source id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.DeleteSource(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DeleteSource``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteSource`: BaseReferenceDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.DeleteSource`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiDeleteSourceRequest 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]
DownloadSourceAccountsSchema(ctx, id).Execute()
Downloads source accounts schema template
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.DownloadSourceAccountsSchema(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DownloadSourceAccountsSchema``: %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 Source id |
Other parameters are passed through a pointer to a apiDownloadSourceAccountsSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: text/csv, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DownloadSourceEntitlementsSchema(ctx, id).SchemaName(schemaName).Execute()
Downloads source entitlements schema template
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id
schemaName := "?schemaName=group" // string | Name of entitlement schema (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.DownloadSourceEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DownloadSourceEntitlementsSchema``: %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 Source id |
Other parameters are passed through a pointer to a apiDownloadSourceEntitlementsSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
schemaName | string | Name of entitlement schema |
(empty response body)
- Content-Type: Not defined
- Accept: text/csv, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProvisioningPolicyDto GetProvisioningPolicy(ctx, sourceId, usageType).Execute()
Get Provisioning Policy by UsageType
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID.
usageType := openapiclient.UsageType("CREATE") // UsageType | The type of ProvisioningPolicy usage.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.GetProvisioningPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetProvisioningPolicy`: ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.GetProvisioningPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source ID. | |
usageType | UsageType | The type of ProvisioningPolicy usage. |
Other parameters are passed through a pointer to a apiGetProvisioningPolicyRequest 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]
Schema GetSchema(ctx, sourceId, schemaId).Execute()
Get Source Schema by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.GetSchema(context.Background(), sourceId, schemaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.GetSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.GetSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. | |
schemaId | string | The Schema id. |
Other parameters are passed through a pointer to a apiGetSchemaRequest 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]
Source GetSource(ctx, id).Execute()
Get Source by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "2c9180835d191a86015d28455b4a2329" // string | The Source id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.GetSource(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.GetSource``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSource`: Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.GetSource`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiGetSourceRequest 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]
SourceHealthDto GetSourceHealth(ctx, sourceId).Execute()
This API fetches source health by source's id
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.GetSourceHealth(context.Background(), sourceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.GetSourceHealth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSourceHealth`: SourceHealthDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.GetSourceHealth`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. |
Other parameters are passed through a pointer to a apiGetSourceHealthRequest 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]
[]ProvisioningPolicyDto ListProvisioningPolicies(ctx, sourceId).Execute()
Lists ProvisioningPolicies
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ListProvisioningPolicies(context.Background(), sourceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ListProvisioningPolicies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListProvisioningPolicies`: []ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ListProvisioningPolicies`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id |
Other parameters are passed through a pointer to a apiListProvisioningPoliciesRequest 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]
[]Schema ListSchemas(ctx, sourceId).IncludeTypes(includeTypes).Execute()
List Schemas on a Source
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID.
includeTypes := "group" // string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ListSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ListSchemas``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSchemas`: []Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ListSchemas`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source ID. |
Other parameters are passed through a pointer to a apiListSchemasRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
includeTypes | string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Source ListSources(ctx).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).Execute()
Lists all sources in IdentityNow.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
limit := int32(50) // int32 | Note that for this API the maximum value for limit is 50. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 50)
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 := "name eq "#Employees"" // 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, in* **name**: *co, eq, in, sw* **type**: *eq, in* **owner.id**: *eq, in* **features**: *ca, co* **created**: *eq* **modified**: *eq* **managementWorkgroup.id**: *eq* **description**: *eq* **authoritative**: *eq* **healthy**: *eq* **status**: *eq, in* **connectionType**: *eq* **connectorName**: *eq* (optional)
sorters := "name" // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified, name, owner.name, healthy, status** (optional)
forSubadmin := "name" // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ListSources``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSources`: []Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ListSources`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListSourcesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | int32 | Note that for this API the maximum value for limit is 50. See V3 API Standard Collection Parameters for more information. | [default to 50] |
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, in name: co, eq, in, sw type: eq, in owner.id: eq, in features: ca, co created: eq modified: eq managementWorkgroup.id: eq description: eq authoritative: eq healthy: eq status: eq, in connectionType: eq connectorName: eq | |
sorters | string | Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: type, created, modified, name, owner.name, healthy, status | |
forSubadmin | string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value me indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProvisioningPolicyDto ReplaceProvisioningPolicy(ctx, sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
Update Provisioning Policy by UsageType
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source ID.
usageType := openapiclient.UsageType("CREATE") // UsageType | The type of ProvisioningPolicy usage.
provisioningPolicyDto := *openapiclient.NewProvisioningPolicyDto("example provisioning policy for inactive identities") // ProvisioningPolicyDto |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ReplaceProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ReplaceProvisioningPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceProvisioningPolicy`: ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ReplaceProvisioningPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source ID. | |
usageType | UsageType | The type of ProvisioningPolicy usage. |
Other parameters are passed through a pointer to a apiReplaceProvisioningPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
provisioningPolicyDto | ProvisioningPolicyDto | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schema ReplaceSchema(ctx, sourceId, schemaId).Schema(schema).Execute()
Update Source Schema (Full)
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id.
schema := *openapiclient.NewSchema() // Schema |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ReplaceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ReplaceSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ReplaceSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. | |
schemaId | string | The Schema id. |
Other parameters are passed through a pointer to a apiReplaceSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
schema | Schema | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Source ReplaceSource(ctx, id).Source(source).Execute()
Update Source (Full)
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "2c9180835d191a86015d28455b4a2329" // string | The Source id
source := *openapiclient.NewSource() // Source |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.ReplaceSource(context.Background(), id).Source(source).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ReplaceSource``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReplaceSource`: Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ReplaceSource`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiReplaceSourceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
source | Source | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProvisioningPolicyDto UpdateProvisioningPolicy(ctx, sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute()
Partial update of Provisioning Policy
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
usageType := openapiclient.UsageType("CREATE") // UsageType | The type of ProvisioningPolicy usage.
jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UpdateProvisioningPolicy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UpdateProvisioningPolicy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. | |
usageType | UsageType | The type of ProvisioningPolicy usage. |
Other parameters are passed through a pointer to a apiUpdateProvisioningPolicyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
jsonPatchOperation | []JsonPatchOperation | The JSONPatch payload used to update the schema. |
- Content-Type: application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schema UpdateSchema(ctx, sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute()
Update Source Schema (Partial)
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
schemaId := "2c9180835d191a86015d28455b4a2329" // string | The Schema id.
jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | The JSONPatch payload used to update the schema.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UpdateSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UpdateSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UpdateSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. | |
schemaId | string | The Schema id. |
Other parameters are passed through a pointer to a apiUpdateSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
jsonPatchOperation | []JsonPatchOperation | The JSONPatch payload used to update the schema. |
- Content-Type: application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Source UpdateSource(ctx, id).JsonPatchOperation(jsonPatchOperation).Execute()
Update Source (Partial)
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "2c9180835d191a86015d28455b4a2329" // string | The Source id
jsonPatchOperation := []openapiclient.JsonPatchOperation{*openapiclient.NewJsonPatchOperation("replace", "/description")} // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in IdentityNow.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UpdateSource``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateSource`: Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UpdateSource`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiUpdateSourceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
jsonPatchOperation | []JsonPatchOperation | A list of account update operations according to the JSON Patch standard. Any password changes are submitted as plain-text and encrypted upon receipt in IdentityNow. |
- Content-Type: application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Source UploadConnectorFile(ctx, sourceId).File(file).Execute()
Upload connector file to source
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
sourceId := "2c9180835d191a86015d28455b4a2329" // string | The Source id.
file := os.NewFile(1234, "some_file") // *os.File | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UploadConnectorFile(context.Background(), sourceId).File(file).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UploadConnectorFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadConnectorFile`: Source
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UploadConnectorFile`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceId | string | The Source id. |
Other parameters are passed through a pointer to a apiUploadConnectorFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
file | *os.File | |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schema UploadSourceAccountsSchema(ctx, id).File(file).Execute()
Uploads source accounts schema template
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id
file := os.NewFile(1234, "some_file") // *os.File | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UploadSourceAccountsSchema(context.Background(), id).File(file).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UploadSourceAccountsSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadSourceAccountsSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UploadSourceAccountsSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiUploadSourceAccountsSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
file | *os.File | |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Schema UploadSourceEntitlementsSchema(ctx, id).SchemaName(schemaName).File(file).Execute()
Uploads source entitlements schema template
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "8c190e6787aa4ed9a90bd9d5344523fb" // string | The Source id
schemaName := "?schemaName=group" // string | Name of entitlement schema (optional)
file := os.NewFile(1234, "some_file") // *os.File | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SourcesApi.UploadSourceEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UploadSourceEntitlementsSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadSourceEntitlementsSchema`: Schema
fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UploadSourceEntitlementsSchema`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The Source id |
Other parameters are passed through a pointer to a apiUploadSourceEntitlementsSchemaRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
schemaName | string | Name of entitlement schema | file | *os.File | |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]