in internal/provider/profiles_data_source.go [50:192]
func (d *profileAllDataSource) 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 all backup profiles. It displays the resource profile IDs as shown in the **Management console** > **Backup Plans** > **Profiles** page.",
Attributes: map[string]schema.Attribute{
"items": schema.ListNestedAttribute{
Computed: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the resource.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the OnVault pool used for resource profile.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the API URI for backup plan profile.",
},
"description": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the description for the resource profile.",
},
"stale": schema.BoolAttribute{
Computed: true,
MarkdownDescription: "It displays the possible values true or false.",
},
"syncdate": schema.Int64Attribute{
Computed: true,
MarkdownDescription: "It displays the last sync date.",
},
"srcid": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the source ID on the appliance.",
},
"cid": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the cluster - It is not the same as cluster ID.",
},
"clusterid": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the backup/recovery appliance ID.",
},
"performancepool": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the snapshot (performance) pool. The default is act_per_pool000.",
},
"remotenode": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the remote backup/recovery appliance name, when two appliances are to be configured to replicate snapshot data between them.",
},
"dedupasyncnode": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the dedupe async node name.",
},
"localnode": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the primary backup/recovery appliance name.",
},
"modifydate": schema.Int64Attribute{
Computed: true,
MarkdownDescription: "It displays the date when the resource profile details are modified.",
},
"createdate": schema.Int64Attribute{
Computed: true,
MarkdownDescription: "It displays the date when the resource profile was created.",
},
"vaultpool": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the OnVault pool.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the OnVault pool used for resource profile.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the API URI for OnVault storage pool.",
},
},
},
"vaultpool2": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the OnVault pool 2.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the OnVault pool 2 used for resource profile.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the API URI for OnVault storage pool.",
},
},
},
"vaultpool3": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the OnVault pool 3.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the OnVault pool 3 used for resource profile.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the API URI for OnVault storage pool.",
},
},
},
"vaultpool4": schema.SingleNestedAttribute{
Computed: true,
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the ID of the OnVault pool 4.",
},
"name": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the name of the OnVault pool 4 used for resource profile.",
},
"href": schema.StringAttribute{
Computed: true,
MarkdownDescription: "It displays the API URI for OnVault storage pool.",
},
},
},
},
},
},
},
}
}