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

Method FetchData

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

Source from the content-addressed store, hash-verified

360}
361
362func (f *emailProviderResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
363 _, err := f.api.EmailProvider.Read(ctx)
364 if err != nil {
365 if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound {
366 return nil, nil
367 }
368 return nil, err
369 }
370
371 return []importDataItem{
372 {
373 ResourceName: "auth0_email_provider.email_provider",
374 ImportID: uuid.NewString(),
375 },
376 }, nil
377}
378
379func (f *emailTemplateResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
380 var data importDataList

Calls 2

ReadMethod · 0.65
StatusMethod · 0.45