MCPcopy Create free account
hub / github.com/auth0/auth0-cli / FetchData

Method FetchData

internal/cli/terraform_fetcher.go:780–798  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

778}
779
780func (f *triggerActionsResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
781 var data importDataList
782 triggers := []string{"post-login", "credentials-exchange", "pre-user-registration", "post-user-registration", "post-change-password", "send-phone-message", "password-reset-post-challenge", "custom-email-provider", "custom-phone-provider"}
783
784 for _, trigger := range triggers {
785 res, err := f.api.Action.Bindings(ctx, trigger)
786 if err != nil {
787 return nil, err
788 }
789 if len(res.Bindings) > 0 {
790 data = append(data, importDataItem{
791 ResourceName: "auth0_trigger_actions." + sanitizeResourceName(trigger),
792 ImportID: trigger,
793 })
794 }
795 }
796
797 return data, nil
798}
799
800func (f *userAttributeProfilesResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
801 var data importDataList

Calls 2

sanitizeResourceNameFunction · 0.85
BindingsMethod · 0.65