in internal/provider/cloudcredential_data_source.go [63:129]
func (d *cloudCredentialDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: "This data source can be used to read information about a BackupDR Cloud Credential. It displays the cloud credential ID as shown in the **Management console** > **Manage** > **Cloud Credentials** page.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Required: true,
MarkdownDescription: "Provide the ID of the cloud credentials.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the URL to access the storage pools in the management console.",
},
"stale": schema.BoolAttribute{
Computed: true,
MarkdownDescription: "It displays true or false if the data is synchronized with the management console or not.",
},
"clusterid": schema.Int64Attribute{
Computed: true,
MarkdownDescription: "It displays the backup/recovery appliance ID as shown in the Management console > Manage > Appliances page.",
},
"serviceaccount": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the service account associated with the cloud credential.",
},
"region": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the region where the cloud credential is created.",
},
"cloudtype": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the cloud type associated with the cloud credential.",
},
"projectid": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the project ID associated with the cloud credential.",
},
"domain": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the domain associated with the cloud credential.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the cloud credential.",
},
"endpoint": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the endpoint associated with the cloud credential.",
},
"clientid": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the client ID associated with the cloud credential.",
},
"srcid": schema.Int64Attribute{
Computed: true,
MarkdownDescription: "It displays the source ID on the appliance.",
},
"usedefaultsa": schema.BoolAttribute{
Computed: true,
MarkdownDescription: "It displays true or false.",
},
"immutable": schema.BoolAttribute{
Computed: true,
MarkdownDescription: "It displays the immutable values - true or false.",
},
},
}
}