diff --git a/cmd/commands/cli/command.go b/cmd/commands/cli/command.go index 7a8186a143..706c35c152 100644 --- a/cmd/commands/cli/command.go +++ b/cmd/commands/cli/command.go @@ -507,7 +507,12 @@ func (c *cliApp) proposals(filter string) { country = "Unknown" } - msg := fmt.Sprintf("- provider id: %v, proposal id: %v, country: %v", proposal.ProviderID, proposal.ID, country) + var policies []string + for _, policy := range proposal.AccessPolicies { + policies = append(policies, policy.ID) + } + + msg := fmt.Sprintf("- provider id: %v\ttype: %v\tcountry: %v\taccess policies: %v", proposal.ProviderID, proposal.ServiceType, country, strings.Join(policies, ",")) if filter == "" || strings.Contains(proposal.ProviderID, filter) || diff --git a/tequilapi/client/dto.go b/tequilapi/client/dto.go index 6058559777..84759e19b4 100644 --- a/tequilapi/client/dto.go +++ b/tequilapi/client/dto.go @@ -55,6 +55,13 @@ type ProposalDTO struct { ProviderID string `json:"providerId"` ServiceType string `json:"serviceType"` ServiceDefinition ServiceDefinitionDTO `json:"serviceDefinition"` + AccessPolicies []AccessPolicy `json:"accessPolicies"` +} + +// AccessPolicy represents the access controls for proposal +type AccessPolicy struct { + ID string `json:"id"` + Source string `json:"source"` } func (p ProposalDTO) String() string {